Skip to main content
DELETE
Cancel a document

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is an API key from the API Integration section of your dashboard. Keys are scoped to the company they are generated in — for testing, add a separate test company and generate the key there, so requests never touch your real books.

Path Parameters

doc_hash_id
string
required

The hash id of the document to be cancelled

Query Parameters

cancel_einvoice
integer
default:0

Set to 1 if you want to cancel a document with e-invoice

Response

Success

success
boolean

Success

Example:

true

message
string

Message

Example:

"Document created successfully"

serialNumber
string

Serial Number

Example:

"SL123"

hashId
string

Hash ID

Example:

"SL123"