Get or download a receipt of a sent document (SAPI+)
SAPI+ extension. Returns one stored receipt of a document submitted through POST /document/send.
Default JSON representation (Accept: application/json, absent Accept, or /): metadata + payload + payloadFormat - the payload is the exact stored artifact content (UTF-8 XML string): the original UBL MLS XML (ApplicationResponse) for type=MLS, or the stored SOAP receipt for type=AS4_RECEIPT.
Direct download: Accept: application/xml returns the original MLS XML (type=MLS only), Accept: application/soap+xml returns the stored SOAP envelope of the AS4 receipt (type=AS4_RECEIPT only) with Content-Disposition attachment. The bytes are the original stored artifact - no reserialization, pretty-print or namespace normalization. Unsupported representation for the given receipt type returns 406; all error responses are JSON (send Accept: application/xml, application/json;q=0.1 to still receive a structured error).
curl -X GET "https://einvoice-v1-ynyiur6quq-ey.a.run.app/v1/sapi-plus/document/send/doc_a1b2c3d4e5f6g7h8/receipts/rcpt_c3_mls" \
-H "Content-Type: application/json" \
-H "X-Peppol-Participant-Id: 0245:1234567890" \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN (JWT)"
import requests
import json
url = "https://einvoice-v1-ynyiur6quq-ey.a.run.app/v1/sapi-plus/document/send/doc_a1b2c3d4e5f6g7h8/receipts/rcpt_c3_mls"
headers = {
"Content-Type": "application/json",
"X-Peppol-Participant-Id": "0245:1234567890",
"Accept": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN (JWT)"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://einvoice-v1-ynyiur6quq-ey.a.run.app/v1/sapi-plus/document/send/doc_a1b2c3d4e5f6g7h8/receipts/rcpt_c3_mls", {
method: "GET",
headers: {
"Content-Type": "application/json",
"X-Peppol-Participant-Id": "0245:1234567890",
"Accept": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN (JWT)"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://einvoice-v1-ynyiur6quq-ey.a.run.app/v1/sapi-plus/document/send/doc_a1b2c3d4e5f6g7h8/receipts/rcpt_c3_mls", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("X-Peppol-Participant-Id", "0245:1234567890")
req.Header.Set("Accept", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN (JWT)")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://einvoice-v1-ynyiur6quq-ey.a.run.app/v1/sapi-plus/document/send/doc_a1b2c3d4e5f6g7h8/receipts/rcpt_c3_mls')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
request['X-Peppol-Participant-Id'] = '0245:1234567890'
request['Accept'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN (JWT)'
response = http.request(request)
puts response.body
{
"metadata": {
"receiptId": "rcpt_c3_mls",
"providerDocumentId": "doc_123",
"scope": "DELIVERY",
"type": "MLS",
"transmissionId": "tx_789",
"receivedAt": "2026-10-27T10:00:10Z",
"responseCode": "AP",
"reportId": "tdd_456"
},
"payload": "example_string",
"payloadFormat": "XML"
}
{
"error": {
"category": "VALIDATION",
"code": "SAPI-VAL-001",
"message": "Document payload is invalid",
"details": [
{
"field": "document.type",
"issue": "Unsupported value"
}
],
"retryable": false,
"correlation_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
{
"error": {
"category": "VALIDATION",
"code": "SAPI-VAL-001",
"message": "Document payload is invalid",
"details": [
{
"field": "document.type",
"issue": "Unsupported value"
}
],
"retryable": false,
"correlation_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
{
"error": {
"category": "VALIDATION",
"code": "SAPI-VAL-001",
"message": "Document payload is invalid",
"details": [
{
"field": "document.type",
"issue": "Unsupported value"
}
],
"retryable": false,
"correlation_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
{
"error": {
"category": "VALIDATION",
"code": "SAPI-VAL-001",
"message": "Document payload is invalid",
"details": [
{
"field": "document.type",
"issue": "Unsupported value"
}
],
"retryable": false,
"correlation_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
{
"error": {
"category": "VALIDATION",
"code": "SAPI-VAL-001",
"message": "Document payload is invalid",
"details": [
{
"field": "document.type",
"issue": "Unsupported value"
}
],
"retryable": false,
"correlation_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
{
"error": {
"category": "VALIDATION",
"code": "SAPI-VAL-001",
"message": "Document payload is invalid",
"details": [
{
"field": "document.type",
"issue": "Unsupported value"
}
],
"retryable": false,
"correlation_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
{
"error": {
"category": "VALIDATION",
"code": "SAPI-VAL-001",
"message": "Document payload is invalid",
"details": [
{
"field": "document.type",
"issue": "Unsupported value"
}
],
"retryable": false,
"correlation_id": "550e8400-e29b-41d4-a716-446655440000"
}
}
/v1/sapi-plus/document/send/{providerDocumentId}/receipts/{receiptId}Target server for requests. Edit to use your own host.
Bearer token (JWT) - just enter the token, "Bearer" prefix will be added automatically
Access Point identifier of the original submission (providerDocumentId from POST /document/send).
Identifier of the stored receipt (from the status response or the receipts list). Opaque; reachable only within the authorized document context.
Sender's Peppol Participant ID of the original document (organization context).
Negotiated representation: application/json (default), application/xml (original MLS XML, type=MLS only) or application/soap+xml (stored SOAP AS4 receipt, type=AS4_RECEIPT only).
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token (JWT). Authentication token required.
Path Parameters
Access Point identifier of the original submission (providerDocumentId from POST /document/send).
doc_a1b2c3d4e5f6g7h8Identifier of the stored receipt (from the status response or the receipts list). Opaque; reachable only within the authorized document context.
rcpt_c3_mlsHeaders
Sender's Peppol Participant ID of the original document (organization context).
0245:1234567890Negotiated representation: application/json (default), application/xml (original MLS XML, type=MLS only) or application/soap+xml (stored SOAP AS4 receipt, type=AS4_RECEIPT only).
Responses
Public metadata of one stored receipt. receiptId is published only after the artifact content is stored.
Original stored artifact content (UBL MLS ApplicationResponse XML for type=MLS, stored SOAP receipt for type=AS4_RECEIPT), unaltered
Format of the payload content
XML