Skip to main content

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.

StatusFinalDescription
processedNoThe document has been handed over to the Peppol network and is being delivered to the recipient's provider.
sending_failedNoThe 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.
deliveredNoThe recipient's provider confirmed the reception of the document.
delivery_failedNoThe document could not be delivered to the recipient's provider. A-Cube sends it again, so you do not need to resubmit it.
acceptedYesThe recipient's provider accepted the document with a Message Level Status (MLS) response.
rejectedYesThe 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​

StatusFinalDescription
receivedYesThe 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.