Invoice lifecycle
Every invoice and credit note has a status property that describes its processing stage. Invoices and credit notes share the same statuses. The meaning of a status depends on the document direction: outgoing for the documents you send, incoming for the documents you receive.
A final status doesn't change anymore.
Outgoing documents
When you send a document with POST /invoices or POST /credit-notes, A-Cube validates it, stores it and hands it over to the Peppol network in the same request. The response already contains processed, or sending_failed if the handover failed.
| Status | Final | Description |
|---|---|---|
processed | No | The document has been handed over to the Peppol network and is being delivered to the recipient's provider. |
sending_failed | No | The document is stored, but it could not be handed over to the Peppol network. A-Cube sends it again, so you do not need to resubmit it. |
delivered | No | The recipient's provider confirmed the reception of the document. |
delivery_failed | No | The document could not be delivered to the recipient's provider. A-Cube sends it again, so you do not need to resubmit it. |
accepted | Yes | The recipient's provider accepted the document with a Message Level Status (MLS) response. |
rejected | Yes | The recipient's provider rejected the document with an MLS response. Fix the document and send it again. |
A document normally goes through processed → delivered → accepted.
A document can reach accepted or rejected directly from processed when the MLS response arrives before the delivery confirmation.
Incoming documents
| Status | Final | Description |
|---|---|---|
received | Yes | The document has been received, validated and stored by A-Cube. You can download it and import it. |
A document that fails validation is not stored yet, so it does not appear in your list.
Webhooks
A-Cube sends a webhook when an outgoing document becomes delivered, delivery_failed, accepted or rejected, and when an incoming document is received. Check the status of the event to tell them apart. A failed delivery is not final: another event follows when the retry is delivered. See Event types.
processed and sending_failed are not notified: they are returned by the POST request.
Other statuses
The API schema also lists new, valid, sending_started and sending_queued: they are intermediate steps of the POST request and are not returned. withdrawn and action_required are not used at the moment.