Sending

Send Document

Send a document to a customer over the Peppol network, by email, or both.

POST
/api/v1/{companyId}/send

Send a document to a customer over the Peppol network, by email, or both. The document type identifier and process are resolved against the recipient unless you name both yourself. The document is stored under the company and returned document ID, and it counts towards your subscription usage. When Peppol delivery fails and no email fallback applies, the request fails with a 422 and nothing is stored.

Authorization

AuthorizationBasic <token>

Basic API key authentication. Create a new API key and secret in the Recommand dashboard.

In: header

Path Parameters

companyId*string

The ID of the company sending the document. The document is sent from this company's Peppol identifier.

Example"c_01JQZ8X0M4T7RB6K9V2NDHW3PA"

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/c_01JQZ8X0M4T7RB6K9V2NDHW3PA/send" \  -H "Content-Type: application/json" \  -d '{    "recipient": "0208:987654321",    "documentType": "invoice",    "document": {      "invoiceNumber": "INV-2024-001",      "buyer": {        "name": "Example Company",        "street": "Example Street 1",        "city": "Brussels",        "postalZone": "1000",        "country": "BE"      },      "lines": [        {          "netPriceAmount": "12.40",          "vat": {            "percentage": "21.00"          }        }      ]    }  }'
{  "success": true,  "sentOverPeppol": true,  "sentOverEmail": false,  "emailRecipients": [],  "teamId": "team_01JQZ8X0M4T7RB6K9V2NDHW3PA",  "companyId": "c_01JQZ8X0M4T7RB6K9V2NDHW3PA",  "id": "doc_01JQZ8X0M4T7RB6K9V2NDHW3PA",  "peppolMessageId": "b7c2f0a4-3d1e-4a58-9c6d-0f2e8a1b4c73@recommand.eu",  "envelopeId": "9f1b3c7e-52a4-4d68-8b0f-6c9d2e4a17b5",  "deliveryStatus": "delivered",  "deliveries": [    {      "id": "dlv_01JQZ8X0M4T7RB6K9V2NDHW3PA",      "channel": "peppol",      "address": "0208:0428643097",      "status": "delivered",      "statusChangedAt": "2019-08-24T14:15:22Z",      "failure": {        "category": "validation",        "message": "string",        "providerCode": "TXE-1005"      },      "references": {        "peppolMessageId": "string",        "peppolConversationId": "string",        "envelopeId": "string",        "messageId": "string"      }    }  ]}