Sales invoice events
Six events follow a sales invoice you sent until the tax authority or the Peppol network answers. Use them to update your records without checking the document's status in a loop.
These events describe sales documents, such as the invoices and credit notes you send to your customers. Each one fires when the document’s status changes in a way you can act on: it was sent on, accepted, delivered or rejected, or it could not be sent. Purchase invoices you receive raise purchase invoice events instead.
Events
| Label | Event | Fires when |
|---|---|---|
| Sales invoice submitted | sales.invoice.submitted | The document was sent to the tax authority or to the buyer’s Peppol access point. |
| Sales invoice accepted by authority | sales.invoice.accepted_by_authority | The tax authority accepted the document. |
| Sales invoice delivered | sales.invoice.delivered | The document reached the buyer’s Peppol access point. |
| Sales invoice compliant | sales.invoice.compliant | The document’s status became Compliant: every step its country requires is done. |
| Sales invoice rejected | sales.invoice.rejected | The tax authority or the buyer’s Peppol access point rejected the document. |
| Sales invoice submission failed | sales.invoice.submission_failed | The document could not be sent to the tax authority or to the buyer’s Peppol access point. |
One status change can raise more than one event. When the Federal Tax Authority accepts a UAE invoice that the buyer’s access point has already accepted, for example, you receive both sales.invoice.accepted_by_authority and sales.invoice.compliant.
A document that fails validation is not sent on, so it raises no sales event. The invoice.failed event reports it; see Webhook events.
What each country sends
The events below leave out the sales.invoice. prefix.
| Country | Events, in the usual order |
|---|---|
| Saudi Arabia | submitted when the invoice goes to ZATCA. Then accepted_by_authority and compliant together when ZATCA clears or reports it, or rejected when ZATCA rejects it. submission_failed when the invoice could not be sent to ZATCA; the document goes back to Ready. |
| Malaysia | submitted when the invoice goes to LHDN. Then accepted_by_authority and compliant together when LHDN accepts it, or rejected when LHDN rejects it. submission_failed when the invoice could not be sent to LHDN. When the invoice is also delivered over Peppol, delivered, rejected or submission_failed report that delivery, and can come after compliant. |
| United Arab Emirates | submitted when the invoice goes to the buyer’s Peppol access point, and again when it is reported to the Federal Tax Authority. delivered when the buyer’s access point accepts it, accepted_by_authority when the Federal Tax Authority accepts it, and compliant together with whichever of the two comes last. rejected when either side rejects it. submission_failed when it could not be sent to either. |
| Belgium and Germany | submitted and delivered together when the document reaches the buyer’s Peppol access point. That is the last step in these countries: the document stays Submitted, and no compliant event follows. submission_failed when delivery fails. |
Read the payload
Read the fields below from data.data in the delivery body.
{
"eventId": "sales:f99eca84e4562464aefc5da8b530f4f3dff6c402428e4180b47b82ba39ed9e7a",
"data": {
"id": "sales:f99eca84e4562464aefc5da8b530f4f3dff6c402428e4180b47b82ba39ed9e7a",
"type": "sales.invoice.compliant",
"timestamp": "2026-09-22T10:00:04.000Z",
"data": {
"documentId": "01K5EXAMPLE00000000000142",
"documentNumber": "INV-2026-000184",
"documentType": "tax_invoice",
"country": "AE",
"status": "COMPLIANT",
"previousStatus": "PROCESSING",
"deliveryStatus": "DELIVERED",
"previousDeliveryStatus": "PENDING",
"lifecycleEvent": "ACCEPTED_BY_C5",
"totalAmount": 2100,
"currency": "AED",
"buyerName": "Gulf Retail FZ-LLC",
"issueDate": "2026-09-18",
"occurredAt": "2026-09-22T10:00:04.000Z"
},
"metadata": {
"correlationId": "01K5EXAMPLECORRELATION0142"
}
}
}| Field | Meaning |
|---|---|
documentId | The document’s ID, as in the submit response. Use it to check the document’s status. |
documentNumber | Your number for the document |
documentType | The base of the document type, for example tax_invoice or credit_note |
country | AE, SA, MY, BE or DE |
status | The document’s Document status after the change, for example COMPLIANT |
previousStatus | The Document status before the change |
deliveryStatus | The Delivery status after the change, for example DELIVERED. NOT_APPLICABLE in Saudi Arabia, which has no delivery status. |
previousDeliveryStatus | The Delivery status before the change |
lifecycleEvent | The step that caused the change, as the document’s Status History names it: ACCEPTED_BY_C5 there reads ACCEPTED BY C5. Log it, but decide what to do from the event type and status. |
totalAmount | The invoice total including tax |
currency | ISO 4217 code, for example AED |
buyerName | The buyer |
issueDate | The date on the invoice |
occurredAt | When the status changed. The same as data.timestamp. |
The status fields hold the Invoice Portal’s statuses in capitals: COMPLIANT is Compliant. Document statuses lists every value. A field with no value is left out; only documentId, country, status, lifecycleEvent and occurredAt are always there.
What to do with them
- compliant: record the outcome. The invoice is done. In Belgium and Germany,
deliveredis the last event, so record the outcome then. - rejected: the tax authority or the buyer’s side refused the document. Check its status and read
errorsfor the reason. - submission_failed: the document could not be sent. Check its status:
errorssays why, and Peppol delivery errors explains the Peppol ones. - submitted, accepted_by_authority and delivered: progress. Show it to your users, or ignore it.
Events can arrive in a different order from the one in which they happened, and the same event can arrive more than once. Use eventId to skip an event you have already handled, and occurredAt to keep the latest status.
Subscribe
In Set up a webhook, expand Sales on the Invoicing Portal or Developer Portal tab and choose the events you want. The Financial Events preset selects them too. A Sandbox webhook receives the events for documents you send in Sandbox, and a Production webhook those for Production.
Next: Payload and delivery, to write the receiver.
Last updated