Cancellation of Invoices or NCD
If any invoice or NCD was issued incorrectly or was created with some erroneous data, then this must be cancelled.
The EMIZOR API has a service that allows cancelling fiscal documents (Invoice or NCD) that the taxpayer issued.
Consider that there are two factors why an invoice cannot be cancelled:
- Time limit: The SIN only allows cancelling up to the 9th day of the month following the issuance of the invoice.
- Use of tax credit: Once the invoice is issued, if the client declared it and used the tax credit, even if it is within the term, the invoice cannot be cancelled.
To consume the service refer to the documentation link:
DELETE/api/v1/facturas/{cuf_ackTicket_uniqueCode}/anularCancel an invoice.URL Parameter:
ack_ticket_uniqueCode: Represents the data that will be used to identify the invoice to be cancelled; this can be thecuforack_ticketdata, or the unique codeUniqueCodethat is registered at the time of creating the invoice.
Request body:
{
"codigoMotivoAnulacion": 0
}
Where:
codigoMotivoAnulacion: It is the code of the cancellation reason for which the invoice is being cancelled, as shown in the parameters.
Successful response (Code 200)
{
"status": "string",
"data": {
"cuf": "string",
"ack_ticket": "string",
"urlSin": "string",
"emision_type_code": 0,
"fechaEmision": "string",
"numeroFactura": 0,
"shortLink": "string",
"codigoEstado": 0
}
}
Where:
cuf: Unique code of the cancelled invoice, managed by Impuestos Nacionales.ack_ticket: Identification code of the invoice in the EMIZOR system.numeroFactura: Number registered on the invoice.urlSin: Link of each invoice to the SIN portal (Impuestos Nacionales).emission_type_code: 1 for ONLINE, 2 for OFFLINE.fechaEmision: Date with which each invoice was issued.shortLink: Short link of the invoice record.codigoEstado: Code of the invoice status returned by Impuestos.
Possible erroneous responses:
{
"status": "error",
"errors": {
"codigoMotivoAnulacion": [
"Invalid cancellation reason code"
]
}
}
{
"status": "error",
"errors": [
"Invoice not found"
]
}
Note: After receiving the 200 response, it is recommended to use the Invoice or NCD Status check service again.
Status codes for the cancelled invoice in the SIN:
691: INVOICE SUCCESSFULLY CANCELLED905: CANCELLATION RECEIVED906: CANCELLATION REJECTED