Documents lifecycle
Every invoice, credit note, Tax Data Document (TDD) and Message Level Status (MLS) has a status property that describes its processing stage.
The meaning of a status can depend on the document direction: outgoing for documents you send, incoming for documents you receive.
A final status doesn't change anymore: no further processing happens on the document.
Invoice and credit note status list
Invoices and credit notes share the same statuses.
Outgoing
| Status | Final | Description |
|---|---|---|
CREATED | No | The document has been accepted by A-Cube and is queued to be sent. |
PROCESSING | No | The document is being sent. |
SENT | No | The document has been sent and its transmission has been acknowledged by the recipient's provider. |
DELIVERED | Yes | The document has been delivered: the recipient's provider returned a positive MLS. |
REPORT_ONLY | Yes | The "substitute participant" (0245:9970300001) has been chosen as the document recipient: the document is stored but not sent, and it is reported to the Tax Authority only. |
REJECTED | Yes | The recipient's provider rejected the document with a negative MLS. Check the document MLS for the reason, fix the document and send it again. If the document had already been reported to the Tax Authority, A-Cube cancels that report with a DISREGARD TDD. |
MLS_FAILURE | Yes | The document has been sent, but its MLS was not received within the time allowed, or it was received but could not be read. The outcome is unknown: check with the recipient whether they received the document and, if an MLS was received, check its content with them, before sending the document again. |
FAILED | Yes | The recipient's provider didn't acknowledge the transmission. Send the document again. |
ERROR | Yes | An error occurred while processing the document. Send the document again. |
Incoming
| Status | Final | Description |
|---|---|---|
RECEIVED | No | The document has been received by A-Cube. |
PROCESSING | No | The document is being processed: its MLS and TDD are being produced. |
ACCEPTED | Yes | The document has been processed successfully and no further action is needed. If the sender requested it, a positive MLS has been sent back. |
REFUSED | Yes | The document is not valid: it didn't pass validation, and a negative MLS has been sent back to the sender. |
FAILED | Yes | The Tax Authority did not confirm the TDD of the document: the TDD was rejected or could not be sent, or its MLS was not received within the time allowed or could not be read. A negative MLS for the document has been sent back to the sender. |
ERROR | Yes | An error occurred while sending the MLS back to the sender. |
Tax Data Document (TDD) status list
The TDD reports a document exchange to the Tax Authority.
| Status | Final | Description |
|---|---|---|
CREATED | No | The TDD has been created and is ready to be sent. |
PROCESSING | No | The TDD is queued to be sent. |
SENT | No | The TDD has been sent. |
DELIVERED | Yes | The TDD has been delivered and a positive MLS has been received. |
NON_DOMESTIC | Yes | The document exchange is not domestic: the TDD has been created but not sent, as it isn't required. |
REJECTED | Yes | The TDD has been delivered but a negative MLS has been received. Check the TDD MLS for the reason. When the problem is solved, you can resend the TDD. |
MLS_FAILURE | Yes | The TDD has been sent, but its MLS was not received from the Tax Authority within the time allowed, or it was received but could not be read. You can resend the TDD. |
FAILED | Yes | The transmission of the TDD wasn't acknowledged. You can resend the TDD. |
ERROR | Yes | An error occurred while sending the TDD. You can resend the TDD. |
Only the TDDs of outgoing documents can be resent. When the TDD of an incoming document is not confirmed by the Tax Authority, the incoming document is set as FAILED.
TDD type
The taxDataTypeCode of a TDD tells the Tax Authority what the TDD is for.
| Type | Description |
|---|---|
SUBMIT | The first report of a document. |
RESUBMIT | A new report of a document that may have already reached the Tax Authority, for example after you resend a TDD. |
DISREGARD | Asks the Tax Authority to disregard an earlier report of the document, for example because the recipient rejected the document. A-Cube sends it automatically. |
Resend a TDD
If the TDD of an outgoing document is REJECTED, MLS_FAILURE, FAILED or ERROR, you can send it again with the POST /tax-data-documents/{uuid}/resend endpoint. The request has no body.
A-Cube creates a new TDD for the same document and sends it. The response contains the new TDD, and you can follow it with the tax_data_document.outbound webhook.
- The new TDD is
RESUBMITif an earlier TDD may have reached the Tax Authority, otherwiseSUBMIT. - A
DISREGARDTDD is resent asDISREGARD.
{
"uuid": "01a1a2b4-5c6d-7e8f-9a0b-1c2d3e4f5a6b",
"scope": "DOMESTIC",
"reporterRole": "SENDER",
"taxDataTypeCode": "RESUBMIT",
"status": "PROCESSING",
"downloaded": false,
"downloadedAt": null,
"invoiceUuid": "01a1a279-0eed-7d63-8f48-98ee505c5cf4",
"creditNoteUuid": null
}
The request is refused if:
- the TDD is not in one of the statuses above, or a newer TDD exists for the same document (
409): resend the newest TDD instead; - the TDD refers to an incoming document (
422).
Message Level Status (MLS) status list
The MLS is the response that confirms or rejects a document exchange. Its mlsCode tells the outcome: AP (accepted), AB (acknowledged) or RE (rejected).
Outgoing
| Status | Final | Description |
|---|---|---|
CREATED | No | The MLS has been created and is ready to be sent. |
PROCESSING | No | The MLS is queued to be sent. |
SENT | Yes | The MLS has been sent and its transmission has been acknowledged. |
FAILED | Yes | The MLS transmission failed. |
ERROR | Yes | An error occurred while sending the MLS. |
Incoming
| Status | Final | Description |
|---|---|---|
RECEIVED | Yes | An MLS has been received. |
INVALID | Yes | An MLS has been received, but its response could not be read, so the outcome is unknown. The MLS is stored: download it and contact the recipient of the document to report the problem, or open a ticket to the A-Cube support team if it is the MLS of a TDD. |