The CancelDeliveryNote POST API call is used to cancel a previously issued delivery note by submitting its unique identifying details.
This ensures that the cancellation is formally registered and acknowledged by the tax authority system (myDATA).
{
"vat": "string", // VAT number of the entity requesting the cancellation
"mark": "string", // MARK of the delivery note to be canceled
"notificationEmails": ["string"] // Email addresses to notify about the cancellation
}
Note: Email notifications regarding cancellations are optional.
When a valid request is submitted, the system processes the cancellation of the specified delivery note.
The response includes confirmation along with detailed metadata related to both the original document and the cancellation action.
Cancellation is not allowed if the document is not a Delivery Note (type 9.3).
Cancellation is not allowed if the document is already canceled.
Cancellation is not allowed if the document was not submitted via Provider.
| Field | Type | Description |
|---|---|---|
| mark | integer | The MARK of the original delivery note that was canceled. |
| cancellationMark | integer | A new unique identifier representing the cancellation action. |
| authenticationCode | string | A code confirming the authenticity and integrity of the cancellation. |
| myDataResponse | string | The raw response or message from the myDATA system. |
| status | enum | Indicates the outcome of the cancellation request (e.g., "Success", "Failed") |
| series | string | The series code of the original delivery note. |
| number | string | The document number of the original delivery note. |
| dateIssued | string (date-time) | The date when the original delivery note was issued. |
| erpQrCode | string | A URL returned by myDATA that redirects to the official document entry on the IAPR website. |
| success | boolean | Boolean flag indicating whether the cancellation was successful. |
| message | string | Additional message describing the request outcome or error details. |