Skip to main content

Webhook Event Types

Event types​

A-Cube sends a POST request to your webhook for these events:

EventSent when
invoice.outboundAn invoice you sent is delivered, delivery_failed, accepted or rejected.
credit_note.outboundA credit note you sent is delivered, delivery_failed, accepted or rejected.
invoice.inboundAn invoice has been received for one of your legal entities.
credit_note.inboundA credit note has been received for one of your legal entities.
legal_entity.synchronizedA 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 2xx status as soon as you have stored the event, and process it afterwards. Any other reply is retried: see Webhook Setup for the retries.
  • eventId is unique for each event. The same event can reach you more than once, so ignore an eventId you have already handled.
  • Events can arrive out of order, for example accepted before delivered. The status of the resource is the source of truth: when in doubt, read it with GET.

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​

FieldDescription
eventIdIdentifier of the event. Use it to ignore repeated events.
eventTypeOne of the document events above.
statusStatus of the document when the event was sent.
invoiceUuid or creditNoteUuidIdentifier of the document: invoiceUuid for invoices, creditNoteUuid for credit notes.

What each status confirms​

EventstatusWhat it confirmsWhat it does not confirm
*.outbounddeliveredThe recipient's provider received the document on Peppol.That the recipient accepted it. It says nothing about tax reporting.
*.outbounddelivery_failedThe 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.
*.outboundacceptedThe 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.
*.outboundrejectedThe recipient's provider refused the document with a negative MLS.Anything about the FTA. Fix the document and send a new one.
*.inboundreceivedA-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​

  • processed and sending_failed are returned by POST /invoices and POST /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 with GET /invoices/{uuid}/tdd or GET /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:

actionStatus beforeStatus afterMeaning
LINKReservedActiveThe taxpayer linked the TIN to A-Cube.
REVERIFYActiveActiveThe taxpayer data has been refreshed.
DELINKActiveInactiveThe 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"
}
FieldDescription
legalEntityUuidIdentifier of the legal entity.
tinTax Identification Number of the taxpayer.
nameEnglish name of the taxpayer, as registered in EmaraTax.
statusStatus of the legal entity after the action.
actionLINK, REVERIFY or DELINK; SYNC when the event comes from a manual sync.
timestampWhen 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​

EventSent when
document.receivedAn invoice or a credit note has been received for one of your legal entities.
document.deliveredAn 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 2026Now
document.receivedinvoice.inbound and credit_note.inbound
document.deliveredinvoice.outbound and credit_note.outbound, also sent for accepted and rejected
documentIdinvoiceUuid or creditNoteUuid, with the same value
documentNumberRead the document with GET /invoices/{uuid} or GET /credit-notes/{uuid}
documentTypeThe event type: invoice.* or credit_note.*
legalEntityIdlegalEntityUuid, 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.