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

LabelEventFires when
Sales invoice submittedsales.invoice.submittedThe document was sent to the tax authority or to the buyer’s Peppol access point.
Sales invoice accepted by authoritysales.invoice.accepted_by_authorityThe tax authority accepted the document.
Sales invoice deliveredsales.invoice.deliveredThe document reached the buyer’s Peppol access point.
Sales invoice compliantsales.invoice.compliantThe document’s status became Compliant: every step its country requires is done.
Sales invoice rejectedsales.invoice.rejectedThe tax authority or the buyer’s Peppol access point rejected the document.
Sales invoice submission failedsales.invoice.submission_failedThe 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.

CountryEvents, in the usual order
Saudi Arabiasubmitted 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.
Malaysiasubmitted 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 Emiratessubmitted 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 Germanysubmitted 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.

A sales.invoice.compliant deliveryjson
{
  "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"
    }
  }
}
FieldMeaning
documentIdThe document’s ID, as in the submit response. Use it to check the document’s status.
documentNumberYour number for the document
documentTypeThe base of the document type, for example tax_invoice or credit_note
countryAE, SA, MY, BE or DE
statusThe document’s Document status after the change, for example COMPLIANT
previousStatusThe Document status before the change
deliveryStatusThe Delivery status after the change, for example DELIVERED. NOT_APPLICABLE in Saudi Arabia, which has no delivery status.
previousDeliveryStatusThe Delivery status before the change
lifecycleEventThe 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.
totalAmountThe invoice total including tax
currencyISO 4217 code, for example AED
buyerNameThe buyer
issueDateThe date on the invoice
occurredAtWhen 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, delivered is 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 errors for the reason.
  • submission_failed: the document could not be sent. Check its status: errors says 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