Webhook Event Types
Event types
A-Cube sends a POST request to your webhook for these events:
| Event | Sent when |
|---|---|
invoice.outbound | An invoice you sent is delivered, delivery_failed, accepted or rejected. |
credit_note.outbound | A credit note you sent is delivered, delivery_failed, accepted or rejected. |
invoice.inbound | An invoice has been received for one of your legal entities. |
credit_note.inbound | A credit note has been received for one of your legal entities. |
legal_entity.synchronized | A legal entity has been linked, re-verified or unlinked, or its capabilities have been synced to Peppol. |
The event type follows the document type: a credit note never sends an invoice.* event, and an invoice never sends a credit_note.* event. Self-billed invoices use the invoice.* events and self-billed credit notes use the credit_note.* events. Each webhook listens to one event type, so create one webhook for each event you handle. See Webhook Setup.
Delivery
- The request body is JSON, with the authentication you set on the webhook.
- Reply with a
2xxstatus as soon as you have stored the event, and process it afterwards. Any other reply is retried: see Webhook Setup for the retries. eventIdis unique for each event. The same event can reach you more than once, so ignore aneventIdyou have already handled.- Events can arrive out of order, for example
acceptedbeforedelivered. The status of the resource is the source of truth: when in doubt, read it withGET.
Document events
The payload tells you which document changed and its new status. It does not contain the document data: read it with GET /invoices/{uuid} or GET /credit-notes/{uuid}.
All document events have the same payload. Only the event type, the status and the name of the identifier change.
invoice.outbound
Sent with status delivered, delivery_failed, accepted or rejected.
{
"eventId": "01a0ab23-2611-7c3e-9d41-5b7e8f0a1c22",
"eventType": "invoice.outbound",
"status": "delivered",
"invoiceUuid": "01a0ab23-24d8-7787-bd01-883b1b089b00"
}
credit_note.outbound
Sent with status delivered, delivery_failed, accepted or rejected.
{
"eventId": "01a0aec8-80a2-7f14-b6d5-3c9e1a7b2d40",
"eventType": "credit_note.outbound",
"status": "rejected",
"creditNoteUuid": "01a0aec8-7f31-7b17-9122-26ded8285826"
}
invoice.inbound
Sent with status received.
{
"eventId": "01a0c453-5512-7a0d-8c3f-2e6b9d4f7a18",
"eventType": "invoice.inbound",
"status": "received",
"invoiceUuid": "01a0c453-5398-728c-8b10-84dd471cd797"
}
credit_note.inbound
Sent with status received.
{
"eventId": "01a0c471-e0b5-7c62-a9d8-4f1b3e6c8a07",
"eventType": "credit_note.inbound",
"status": "received",
"creditNoteUuid": "01a0c471-de8f-7799-aa30-4d090d257d49"
}
Fields
| Field | Description |
|---|---|
eventId | Identifier of the event. Use it to ignore repeated events. |
eventType | One of the document events above. |
status | Status of the document when the event was sent. |
invoiceUuid or creditNoteUuid | Identifier of the document: invoiceUuid for invoices, creditNoteUuid for credit notes. |
What each status confirms
| Event | status | What it confirms | What it does not confirm |
|---|---|---|---|
*.outbound | delivered | The recipient's provider received the document on Peppol. | That the recipient accepted it. It says nothing about tax reporting. |
*.outbound | delivery_failed | The recipient's provider could not be reached. A-Cube sends the document again. | That the document is lost: do not send it again. Another event follows. |
*.outbound | accepted | The recipient's provider processed the document and sent back a positive Message Level Status (MLS). | That the buyer approved the invoice or will pay it. It says nothing about tax reporting. |
*.outbound | rejected | The recipient's provider refused the document with a negative MLS. | Anything about the FTA. Fix the document and send a new one. |
*.inbound | received | A-Cube received, validated and stored the document. You can download it. | Anything about the sender's tax reporting. |
See Invoice lifecycle for all the statuses.
What is not notified
processedandsending_failedare returned byPOST /invoicesandPOST /credit-notes: no event is sent.- Tax reporting sends no event. A-Cube reports the Tax Data Document (TDD) to the FTA for every document, separately from the Peppol exchange, and its outcome is not part of the document
status. You can download the TDD withGET /invoices/{uuid}/tddorGET /credit-notes/{uuid}/tdd.
Onboarding events
The taxpayer starts the onboarding on EmaraTax and completes it on the A-Cube onboarding page, without an A-Cube login. A-Cube sends legal_entity.synchronized to the account that owns the legal entity, so you don't have to check the status by hand.
The event is sent once, when the whole action has completed and the central registry has been updated:
action | Status before | Status after | Meaning |
|---|---|---|---|
LINK | Reserved | Active | The taxpayer linked the TIN to A-Cube. |
REVERIFY | Active | Active | The taxpayer data has been refreshed. |
DELINK | Active | Inactive | The taxpayer removed the link to A-Cube. |
If the action fails, no event is sent. No event is sent either while a legal entity is Pending: see Errors and retries. Events are sent only to the webhooks of the account that owns the legal entity.
The same event is also sent after POST /legal-entities/{uuid}/sync. In this case action is SYNC.
{
"eventId": "019e91b7-f799-7df7-a469-4824b2656b0e",
"eventType": "legal_entity.synchronized",
"legalEntityUuid": "019e91b7-0a3c-7b1e-9f2d-5c8a1b4e6d70",
"tin": "1758250844",
"name": "Legal Entity Name",
"status": "Active",
"action": "LINK",
"timestamp": "2026-08-14T06:19:14+00:00"
}
| Field | Description |
|---|---|
legalEntityUuid | Identifier of the legal entity. |
tin | Tax Identification Number of the taxpayer. |
name | English name of the taxpayer, as registered in EmaraTax. |
status | Status of the legal entity after the action. |
action | LINK, REVERIFY or DELINK; SYNC when the event comes from a manual sync. |
timestamp | When the event was created, in ISO 8601 format. |
To read the full current state, call GET /legal-entities/{uuid} and check its status, enabled capabilities, and synchronization timestamps.
The event tells you that something changed; the legal entity resource tells you the current state.
Webhooks created before 20 November 2026
Webhooks created before 20 November 2026 work as before, with the same event types, statuses and payloads. You don't
need to change them. These events and fields are deprecated: a new webhook cannot use document.received or
document.delivered, and gets the event types and fields above.
Deprecated document events
| Event | Sent when |
|---|---|
document.received | An invoice or a credit note has been received for one of your legal entities. |
document.delivered | An invoice or a credit note you sent is delivered or delivery_failed. |
{
"eventId": "01a0c453-5512-7a0d-8c3f-2e6b9d4f7a18",
"eventType": "document.received",
"documentId": "01a0c453-5398-728c-8b10-84dd471cd797",
"documentNumber": "INV-2026-0042",
"documentType": "invoice",
"status": "received"
}
documentType is invoice, credit-note, self-billed-invoice or self-billed-credit-note.
The webhooks created before 20 November 2026 with legal_entity.synchronized get legalEntityId instead of
legalEntityUuid, with the same value. The other fields are the same.
From the deprecated events to the new ones
| Before 20 November 2026 | Now |
|---|---|
document.received | invoice.inbound and credit_note.inbound |
document.delivered | invoice.outbound and credit_note.outbound, also sent for accepted and rejected |
documentId | invoiceUuid or creditNoteUuid, with the same value |
documentNumber | Read the document with GET /invoices/{uuid} or GET /credit-notes/{uuid} |
documentType | The event type: invoice.* or credit_note.* |
legalEntityId | legalEntityUuid, with the same value |
To move to the new events, create a webhook for each new event type you handle, then delete the old webhook. Until you delete it, the old webhook keeps getting its events too.
Recovery
If your endpoint stays down longer than the retries, the events of that period are lost. Read the documents with GET /invoices and GET /credit-notes, filtering by direction, and compare their status with what you stored. Do the same for legal entities with GET /legal-entities.