Send status and receipts
Technical status of eInvoice delivery, result of TDD reporting and download of MLS or AS4 receipts via SAPI+.
After sending the document save providerDocumentId from the reply POST /v1/sapi/document/send. Three SAPI+ operations allow you to read the sending status and available receipts. They are an extension of Doklado beyond the SAPI-SK v1.0 standard and do not change the state of the process.
| Method | Endpoint | The result |
|---|---|---|
GET | /v1/sapi-plus/document/send/{providerDocumentId}/status | Delivery status and separate TDD reporting result |
GET | /v1/sapi-plus/document/send/{providerDocumentId}/receipts | Paginated receipt metadata |
GET | /v1/sapi-plus/document/send/{providerDocumentId}/receipts/{receiptId} | Content of a receipt in JSON or direct XML/SOAP file |
Definitions of new operations and data schemas are based on Swagger Doklado SAPI PLUS.
credentials and identifiers
All three operations require:
Authorization: Bearer <access_token>with authorizationdocument:send,X-Peppol-Participant-Idof the original sender of the document for whom the document was sent,providerDocumentIdassigned by Doklado when sent.
providerDocumentId is not an invoice number or value metadata.documentId assigned by the client. When reading receipts, use receiptId from the status response or from the list of receipts; the identifier belongs to a specific document and organizational context.
The examples use the variables from the first call. SAPI_BASE_URL already contains /v1. Set the ID of the actual sent document:
SAPI_PROVIDER_DOCUMENT_ID='PROVIDER_DOCUMENT_ID_FROM_RESPONSE'
Status of the sent document
curl --fail-with-body --silent --show-error \
"$SAPI_BASE_URL/sapi-plus/document/send/$SAPI_PROVIDER_DOCUMENT_ID/status" \
--header "Authorization: Bearer $SAPI_ACCESS_TOKEN" \
--header "X-Peppol-Participant-Id: $SAPI_PARTICIPANT_ID" \
--header 'Accept: application/json'
HTTP 200 means successfully loaded status. It is also returned when a document is rejected, a submission fails, or TDD reporting is rejected. Evaluate the result of the document according to the body of the answer; HTTP errors 4xx/5xx describe a problem with the current GET call.
The answer distinguishes two branches:
delivery: technical delivery of the original business document,taxReporting: result of related Slovak TaxDataDocument (TDD) reporting to C5.
Each branch has its own summary status and details transport (AS4) and mls (Peppol Message Level Status). Delivery of the invoice and the result of TDD reporting are evaluated separately. These statuses do not confirm business approval, accounting or invoice payment.
What MLS Codes Mean
MLS (Message Level Status) is a Peppol network status report on the result of document processing and delivery. The values AP, AB and RE in the mls.responseCode field are codes from the official MLS reference lists:
| MLS code | Significance when delivering a document |
|---|---|
AP | Delivery towards recipient system (C4) has been confirmed. |
AB | The document has been forwarded to the recipient's system (C4), but successful delivery is not confirmed. |
RE | The document was rejected or delivery to the recipient system (C4) failed. |
For details, see the official Peppol specification MLS and the reference lists MLS Response Codes. The responseCode field in the receipts metadata of type MLS also contains the same codes.
Illustrative successful response:
{
"providerDocumentId": "doc_a1b2c3d4e5f6g7h8",
"documentId": "INV-2026-0001",
"receivedAt": "2026-10-27T10:00:00Z",
"delivery": {
"status": "DELIVERED_CONFIRMED",
"transport": {
"status": "ACKNOWLEDGED",
"receiptId": "rcpt_c3_as4"
},
"mls": {
"status": "RECEIVED",
"responseCode": "AP",
"receiptId": "rcpt_c3_mls"
}
},
"taxReporting": {
"status": "ACCEPTED",
"reportId": "tdd_456",
"taxDataTypeCode": "S",
"transport": {
"status": "ACKNOWLEDGED",
"receiptId": "rcpt_c5_as4"
},
"mls": {
"status": "RECEIVED",
"responseCode": "AP",
"receiptId": "rcpt_c5_mls"
}
},
"updatedAt": "2026-10-27T10:00:10Z",
"timestamp": "2026-10-27T10:05:00Z"
}
Summary states
delivery.status | taxReporting.status | Meaning |
|---|---|---|
QUEUED | QUEUED | Awaiting processing |
PROCESSING | PROCESSING | Preparing or sending |
RETRYING | RETRYING | Doklado automatically retries a temporarily failed attempt |
SENT | SENT | There is a positive AS4 receipt, the MLS result has not yet arrived |
DELIVERED_CONFIRMED | ACCEPTED | Correlated MLS with code AP |
DELIVERED_UNCONFIRMED | ACCEPTED_UNCONFIRMED | Correlated MLS with code AB |
REJECTED | REJECTED | MLS with code RE |
FAILED | FAILED | Processing ended with a known error without automatic retry |
UNKNOWN | UNKNOWN | The result is not reliably known, for example after an ambiguous timeout |
NOT_APPLICABLE | NOT_REQUIRED | The given branch does not apply to the document |
taxReporting.status=ACCEPTED indicates the technical result of a specific TDD operation. reportId identifies the current report; taxDataTypeCode is currently in use by S (Submit). The values R and D are reserved.
transport.status=ACKNOWLEDGED is based on verified positive AS4 receipts. The remote server's HTTP 200 alone is not sufficient for this state.
mls.status has the values PENDING, RECEIVED, or NOT_APPLICABLE. Code AB is not considered AP. mls.receivedAt is the time of receipt of the MLS in Doklado, not the time of delivery of the invoice to the recipient. State OVERDUE is not used in this implementation.
If the failure diagnostic is available, it contains the code SEND_FAILED or NEGATIVE_AS4_RECEIPT and a description of the error. Diagnostics is not an instruction to resend the invoice via POST /document/send.
List of receipts
curl --fail-with-body --silent --show-error --get \
"$SAPI_BASE_URL/sapi-plus/document/send/$SAPI_PROVIDER_DOCUMENT_ID/receipts" \
--header "Authorization: Bearer $SAPI_ACCESS_TOKEN" \
--header "X-Peppol-Participant-Id: $SAPI_PARTICIPANT_ID" \
--header 'Accept: application/json' \
--data-urlencode 'scope=DELIVERY' \
--data-urlencode 'type=MLS' \
--data-urlencode 'limit=20'
All query parameters are optional:
| Parameter | Values and meaning |
|---|---|
scope | DELIVERY or TAX_REPORTING; without filter both branches. This is a processing branch, not an OAuth scope. |
type | MLS or AS4_RECEIPT; without filter, both types |
reportId | receipts of a specific TDD report; combination with scope=DELIVERY will return 400 |
pageToken | Unchanged cursor nextPageToken from the previous answer |
limit | 1–100 items, by default 20 |
The list contains only metadata, no XML content. For example:
{
"receipts": [
{
"receiptId": "rcpt_c3_mls",
"providerDocumentId": "doc_a1b2c3d4e5f6g7h8",
"scope": "DELIVERY",
"type": "MLS",
"receivedAt": "2026-10-27T10:00:10Z",
"responseCode": "AP"
}
]
}
The results are sorted by receivedAt ascending and then by receiptId. If the response contains nextPageToken, continue with the same document, organizational context, and filters; submit the token without modification. If there is no next page, nextPageToken is missing.
HTTP 200 with receipts: [] means that there is no receipt yet or nothing matches the filter. receiptId will be published only after saving the receipts content. Waiting for a receipt is not reported with the error 409.
The list also includes rejecting MLS with code RE. With AS4, stored positive transport receipts are made available; negative AS4 error responses remain internal.
Detail and download receipts
Set receiptId from the previous answer:
SAPI_RECEIPT_ID='RECEIPT_ID_FROM_RESPONSE'
curl --fail-with-body --silent --show-error \
"$SAPI_BASE_URL/sapi-plus/document/send/$SAPI_PROVIDER_DOCUMENT_ID/receipts/$SAPI_RECEIPT_ID" \
--header "Authorization: Bearer $SAPI_ACCESS_TOKEN" \
--header "X-Peppol-Participant-Id: $SAPI_PARTICIPANT_ID" \
--header 'Accept: application/json'
The default JSON representation contains metadata, payload and payloadFormat: "XML". payload is the exact stored receipts content as a UTF-8 XML string.
| Type of receipts | The header Accept | Content of the response |
|---|---|---|
MLS or AS4_RECEIPT | application/json, without Accept or */* | JSON with metadata and payload |
MLS | application/xml | Original UBL MLS XML (ApplicationResponse) |
AS4_RECEIPT | application/soap+xml | Stored SOAP envelope AS4 receipts |
A direct download returns the original saved bytes with Content-Disposition: attachment, without XML reformatting or namespace normalization. An unsupported representation for the given type returns 406. Error responses are JSON.
Example of direct download of MLS to file:
curl --fail --silent --show-error \
"$SAPI_BASE_URL/sapi-plus/document/send/$SAPI_PROVIDER_DOCUMENT_ID/receipts/$SAPI_RECEIPT_ID" \
--header "Authorization: Bearer $SAPI_ACCESS_TOKEN" \
--header "X-Peppol-Participant-Id: $SAPI_PARTICIPANT_ID" \
--header 'Accept: application/xml, application/json;q=0.1' \
--output receipt.xml
For AS4 receipt use Accept: application/soap+xml, application/json;q=0.1 and corresponding receiptId.
Errors and rereading
| HTTP | Meaning |
|---|---|
400 | Invalid input, filter, combination reportId and scope, limit or cursor |
401 | Invalid or expired token |
403 | Missing authorization for participant or document |
404 | The document or receipt does not exist in the authorized context; the receipt of another document is not available through this route |
406 | The requested format is not supported for the receipts type; refers to the detail of receipts |
429 | Call limit exceeded. Look rate limits according to endpoints. |
503 | Temporary unavailability, for example the receipts storage is unavailable |
Error responses use a error object with fields category, code, message, retryable, and correlation_id; optionally also details. Control request retry according to error.retryable and use exponential backoff. Do not evaluate the unavailability of storage (503) as the absence of receipts (404).
When the state changes, you can also start loading based on webhook. Reading the status or receipts does not change the status of the document and does not require acknowledge used when receiving eInvoices.