Documents (SAPI)Send Peppol invoice

Send Peppol invoice

Technical acceptance of an XML e-invoice. HTTP 202 does not confirm delivery to the recipient. Reuse the same Idempotency-Key when retrying the same document with the same metadata. The Idempotency-Key is valid for a maximum of 24 hours. After it expires, do not rely on duplicate-submission protection; check the status of the original submission before trying again.

curl -X POST "https://einvoice-v1-ynyiur6quq-ey.a.run.app/v1/sapi/document/send" \
  -H "Content-Type: application/json" \
  -H "X-Peppol-Participant-Id: example_string" \
  -H "Idempotency-Key: example_string" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -d '{
  "metadata": {
    "documentId": "example_string",
    "documentTypeId": "example_string",
    "processId": "example_string",
    "senderParticipantId": "example_string",
    "receiverParticipantId": "example_string",
    "creationDateTime": "2024-12-25T10:00:00Z"
  },
  "payload": "example_string",
  "payloadFormat": "XML",
  "payloadEncoding": "example_string",
  "checksum": "example_string"
}'
{
  "providerDocumentId": "example_string",
  "status": "ACCEPTED",
  "receivedAt": "2024-12-25T10:00:00Z",
  "timestamp": "2024-12-25T10:00:00Z"
}
POST
/v1/sapi/document/send
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token (JWT)
Bearer Tokenstring
Required

Bearer token (JWT) - just enter the token, "Bearer" prefix will be added automatically

Content-Typestring
Required

The media type of the request body

Options: application/json
header
X-Peppol-Participant-Idstring
Required

The company authorized for this operation; when sending, it matches metadata.senderParticipantId.

header
Idempotency-Keystring
Required

Stable key for one logical submission; UUID v4 is recommended. The key is valid for a maximum of 24 hours. After it expires, do not rely on duplicate-submission protection.

payloadstring
Required

XML as a JSON string, not base64.

checksumstring

Optional SHA-256 checksum of the payload.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). Authentication token required.

Headers

X-Peppol-Participant-Idstring
Required

The company authorized for this operation; when sending, it matches metadata.senderParticipantId.

Idempotency-Keystring
Required

Stable key for one logical submission; UUID v4 is recommended. The key is valid for a maximum of 24 hours. After it expires, do not rely on duplicate-submission protection.

Body

application/json
metadataobject
Required
payloadstring
Required

XML as a JSON string, not base64.

payloadFormatstring
Required
Allowed values:XML
checksumstring

Optional SHA-256 checksum of the payload.

Responses