Skip to main content
POST
Cancel an e-invoice (IRN)

Path Parameters

Body Parameters

Cancel Codes

Example Request

Response

The response carries only the confirmation message. The invoice’s e-invoice status flips to CANCELLED — read it back with Get e-invoice status.

Notes

  • E-invoices can only be canceled within 24 hours of generation, as per IRP regulations.
  • A canceled e-invoice cannot be reinstated. You must generate a new invoice and submit it for e-invoicing.
  • The reason field is transmitted to the IRP and becomes part of the permanent compliance record.
Cancellation is permanent and governed by IRP rules. Attempting to cancel an e-invoice older than 24 hours will return a 422 Unprocessable Entity error.

Authorizations

Authorization
string
header
required

Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.

Path Parameters

id
string<uuid>
required

Body

application/json
cancel_code
integer
required

IRP cancellation code (e.g. 1 = duplicate, 3 = data entry mistake).

reason
string
required

Response

E-invoice cancelled.

message
string