Working with e-invoicesSend status and receipts

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.

MethodEndpointThe result
GET/v1/sapi-plus/document/send/{providerDocumentId}/statusDelivery status and separate TDD reporting result
GET/v1/sapi-plus/document/send/{providerDocumentId}/receiptsPaginated 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 authorization document:send,
  • X-Peppol-Participant-Id of the original sender of the document for whom the document was sent,
  • providerDocumentId assigned 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 codeSignificance when delivering a document
APDelivery towards recipient system (C4) has been confirmed.
ABThe document has been forwarded to the recipient's system (C4), but successful delivery is not confirmed.
REThe 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.statustaxReporting.statusMeaning
QUEUEDQUEUEDAwaiting processing
PROCESSINGPROCESSINGPreparing or sending
RETRYINGRETRYINGDoklado automatically retries a temporarily failed attempt
SENTSENTThere is a positive AS4 receipt, the MLS result has not yet arrived
DELIVERED_CONFIRMEDACCEPTEDCorrelated MLS with code AP
DELIVERED_UNCONFIRMEDACCEPTED_UNCONFIRMEDCorrelated MLS with code AB
REJECTEDREJECTEDMLS with code RE
FAILEDFAILEDProcessing ended with a known error without automatic retry
UNKNOWNUNKNOWNThe result is not reliably known, for example after an ambiguous timeout
NOT_APPLICABLENOT_REQUIREDThe 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:

ParameterValues and meaning
scopeDELIVERY or TAX_REPORTING; without filter both branches. This is a processing branch, not an OAuth scope.
typeMLS or AS4_RECEIPT; without filter, both types
reportIdreceipts of a specific TDD report; combination with scope=DELIVERY will return 400
pageTokenUnchanged cursor nextPageToken from the previous answer
limit1–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 receiptsThe header AcceptContent of the response
MLS or AS4_RECEIPTapplication/json, without Accept or */*JSON with metadata and payload
MLSapplication/xmlOriginal UBL MLS XML (ApplicationResponse)
AS4_RECEIPTapplication/soap+xmlStored 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

HTTPMeaning
400Invalid input, filter, combination reportId and scope, limit or cursor
401Invalid or expired token
403Missing authorization for participant or document
404The document or receipt does not exist in the authorized context; the receipt of another document is not available through this route
406The requested format is not supported for the receipts type; refers to the detail of receipts
429Call limit exceeded. Look rate limits according to endpoints.
503Temporary 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.