API reference
Every call of the PeppolKit API, with its fields, code samples and responses. Enter your test key and try it right on this page.
Contents
Use your test key (pk_test_…): nothing real happens with it. Make one in the dashboard under API. The key stays in this tab only and is only sent to app.peppolkit.com.
Getting started
All calls go to https://app.peppolkit.com/api/v1, over https. You send and receive JSON. Enter your key above, open a call and click Send: you see the response right away.
Rather read the guide with examples first? See Connect PeppolKit through the API. This page is made from the OpenAPI description (OpenAPI 3.1), which you can load into your own tools as well.
Authentication
Every call carries your key in the Authorization header. A plugin connecting a shop (POST /connect) is the only call without a key.
You make your keys in the dashboard under API. A live key starts with pk_, a test key with pk_test_. A key is shown once: keep it like a password.
Authorization: Bearer pk_test_your_keyTest environment
With a test key every call works as live, on the same addresses with the same checks, but in a test environment of its own. That is why trying calls on this page is safe:
- Nothing goes over Peppol or by e-mail to customers, and nothing counts towards your plan.
- Test invoices have their own numbering (
TEST-2026-00001) and a PDF with a watermark. - VAT number
BE0000000097plays a business customer that receives over Peppol,BE0000000196one that rejects.peppolStatusmoves todeliveredorfailedwithin a minute. - Your webhook gets the same events as live, with
"test": true. - Test data is deleted after 30 days.
A few calls touch your account or your money (plan, webhook settings, dashboard link, disconnecting). They only work with your live key; those calls say so.
Orders
POST /api/v1/orders Send a paid order
/api/v1/orders Send a paid orderMakes the invoice for a paid order, mails it to the customer and sends it over Peppol when the customer has a Peppol address. Idempotent per order id: the same id again returns the existing invoice with status "exists".
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/orders" \
-H "Authorization: Bearer pk_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"id": 1001,
"name": "#1001",
"currency": "EUR",
"taxes_included": true,
"created_at": "2026-11-18T10:00:00+01:00",
"email": "inkoop@example.com",
"billing_address": {
"name": "An Peeters",
"company": "Testbedrijf BV",
"address1": "Kerkstraat 1",
"zip": "9000",
"city": "Gent",
"country_code": "BE"
},
"line_items": [
{
"id": 1,
"title": "Kettingset 11-speed",
"sku": "KS-11",
"quantity": 1,
"price": "121.00",
"tax_lines": [
{
"rate": 0.21,
"price": "21.00"
}
]
}
],
"shipping_lines": [],
"note_attributes": [
{
"name": "VAT number",
"value": "BE0000000097"
}
],
"total_price": "121.00"
}'JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/orders", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
"id": 1001,
"name": "#1001",
"currency": "EUR",
"taxes_included": true,
"created_at": "2026-11-18T10:00:00+01:00",
"email": "inkoop@example.com",
"billing_address": {
"name": "An Peeters",
"company": "Testbedrijf BV",
"address1": "Kerkstraat 1",
"zip": "9000",
"city": "Gent",
"country_code": "BE"
},
"line_items": [
{
"id": 1,
"title": "Kettingset 11-speed",
"sku": "KS-11",
"quantity": 1,
"price": "121.00",
"tax_lines": [
{
"rate": 0.21,
"price": "21.00"
}
]
}
],
"shipping_lines": [],
"note_attributes": [
{
"name": "VAT number",
"value": "BE0000000097"
}
],
"total_price": "121.00"
}),
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/orders');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"id": 1001,
"name": "#1001",
"currency": "EUR",
"taxes_included": true,
"created_at": "2026-11-18T10:00:00+01:00",
"email": "inkoop@example.com",
"billing_address": {
"name": "An Peeters",
"company": "Testbedrijf BV",
"address1": "Kerkstraat 1",
"zip": "9000",
"city": "Gent",
"country_code": "BE"
},
"line_items": [
{
"id": 1,
"title": "Kettingset 11-speed",
"sku": "KS-11",
"quantity": 1,
"price": "121.00",
"tax_lines": [
{
"rate": 0.21,
"price": "21.00"
}
]
}
],
"shipping_lines": [],
"note_attributes": [
{
"name": "VAT number",
"value": "BE0000000097"
}
],
"total_price": "121.00"
}
JSON,
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/orders",
headers={"Authorization": "Bearer pk_test_your_key"},
json={
"id": 1001,
"name": "#1001",
"currency": "EUR",
"taxes_included": True,
"created_at": "2026-11-18T10:00:00+01:00",
"email": "inkoop@example.com",
"billing_address": {
"name": "An Peeters",
"company": "Testbedrijf BV",
"address1": "Kerkstraat 1",
"zip": "9000",
"city": "Gent",
"country_code": "BE",
},
"line_items": [
{
"id": 1,
"title": "Kettingset 11-speed",
"sku": "KS-11",
"quantity": 1,
"price": "121.00",
"tax_lines": [
{
"rate": 0.21,
"price": "21.00",
},
],
},
],
"shipping_lines": [],
"note_attributes": [
{
"name": "VAT number",
"value": "BE0000000097",
},
],
"total_price": "121.00",
},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
lang | string · query | Language of the warnings. One of: "nl", "fr", "en", "de" |
Request body
A paid order in the PeppolKit order format: the Shopify REST order shape. Money fields are decimal strings with a dot ("39.00"). Fields PeppolKit does not know are ignored.
| Field | Type | Required | Description |
|---|---|---|---|
id | integer | yesrequired | The order id in your system. The same id again makes no second invoice (status "exists"). |
name | string | yesrequired | The order number as the customer sees it, e.g. #1042. |
currency | string | yesrequired | |
taxes_included | boolean | yesrequired | true when prices include VAT. |
created_at | string | yesrequired | Date and time of the order (ISO 8601). |
processed_at | string | null | ||
email | string | null | Where the invoice is mailed. | |
financial_status | string | null | ||
billing_address | object | null | ||
billing_address.name | string | null | ||
billing_address.company | string | null | ||
billing_address.address1 | string | null | ||
billing_address.address2 | string | null | ||
billing_address.city | string | null | ||
billing_address.zip | string | null | ||
billing_address.country_code | string | null | Two letters, e.g. BE. | |
shipping_address | object | null | ||
shipping_address.name | string | null | ||
shipping_address.company | string | null | ||
shipping_address.address1 | string | null | ||
shipping_address.address2 | string | null | ||
shipping_address.city | string | null | ||
shipping_address.zip | string | null | ||
shipping_address.country_code | string | null | Two letters, e.g. BE. | |
customer | object | null | ||
customer.first_name | string | null | ||
customer.last_name | string | null | ||
customer.email | string | null | ||
customer.tax_exempt | boolean | ||
line_items | object[] | yesrequired | |
line_items[].id | integer | yesrequired | |
line_items[].title | string | yesrequired | |
line_items[].variant_title | string | null | ||
line_items[].sku | string | null | ||
line_items[].quantity | integer | yesrequired | |
line_items[].price | string | yesrequired | Unit price before discounts; includes VAT when taxes_included. |
line_items[].requires_shipping | boolean | ||
line_items[].taxable | boolean | ||
line_items[].tax_lines | object[] | The VAT of the whole line. | |
line_items[].tax_lines[].title | string | ||
line_items[].tax_lines[].rate | number | yesrequired | A fraction: 0.21 is 21 %. |
line_items[].tax_lines[].price | string | yesrequired | |
line_items[].discount_allocations | object[] | ||
line_items[].discount_allocations[].amount | string | yesrequired | |
shipping_lines | object[] | ||
shipping_lines[].title | string | yesrequired | |
shipping_lines[].price | string | yesrequired | |
shipping_lines[].discounted_price | string | ||
shipping_lines[].tax_lines | object[] | ||
shipping_lines[].tax_lines[].title | string | ||
shipping_lines[].tax_lines[].rate | number | yesrequired | A fraction: 0.21 is 21 %. |
shipping_lines[].tax_lines[].price | string | yesrequired | |
note_attributes | object[] | The VAT number of a business customer goes here, with the name "VAT number". Test key: BE0000000097 accepts over Peppol, BE0000000196 rejects. | |
note_attributes[].name | string | yesrequired | |
note_attributes[].value | string | null | ||
note | string | null | The order's note; a VAT number written here is found too. | |
customer_locale | string | null | The language the customer shopped in, e.g. fr-BE. | |
total_price | string | yesrequired | |
total_tax | string |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Always true |
test | boolean | Only present on answers to a test key (pk_test_…). Always true | |
status | string | yesrequired | One of: "issued", "exists" |
warnings | string[] | yesrequired | |
invoice | object | null | yesrequired | |
invoice.number | string | yesrequired | The invoice number. Test documents: TEST-2026-00001 and on. |
invoice.type | string | yesrequired | One of: "invoice", "credit_note" |
invoice.orderId | string | yesrequired | The order id you sent; a credit note has "<order id>/refund/<refund id>". |
invoice.issueDate | string (date) | yesrequired | |
invoice.total | number | yesrequired | Total including VAT, in the currency. |
invoice.currency | string | yesrequired | |
invoice.peppolStatus | string | null | yesrequired | How the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol" |
invoice.emailedAt | string | null (date-time) | yesrequired | When the document was mailed to the customer. |
invoice.emailTo | string | null | yesrequired | |
invoice.emailError | string | null | yesrequired | Why the mail did not go out, when it did not. |
invoice.pdfUrl | string (uri) | yesrequired | |
invoice.ublUrl | string (uri) | yesrequired | |
invoice.warnings | string[] | yesrequired | Points to check (VAT, VIES), in the language of ?lang=. |
invoice.test | boolean | Only present on answers to a test key (pk_test_…). Always true |
Responses
200 The invoice was made (issued) or already existed (exists).
{
"ok": true,
"test": true,
"status": "issued",
"warnings": [],
"invoice": {
"number": "TEST-2026-00001",
"type": "invoice",
"orderId": "1001",
"issueDate": "2026-11-18",
"total": 121,
"currency": "EUR",
"peppolStatus": "pending",
"emailedAt": null,
"emailTo": null,
"emailError": null,
"pdfUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…",
"ublUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…?format=xml",
"warnings": [],
"test": true
}
}400 The body is not JSON.
{
"error": "Body must be JSON"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}402 The plan's monthly limit is reached; the order waits.
{
"ok": false,
"waiting": true,
"error": "Monthly limit of 20 invoices reached. The order waits and gets its invoice after an upgrade or at the start of next month."
}405 Wrong HTTP method.
{
"error": "POST only"
}409 Company details are missing. A live order waits; a test order does not.
{
"ok": false,
"waiting": true,
"error": "Save your company details first. The order waits and gets its invoice as soon as they are saved."
}422 The order is not valid.
{
"ok": false,
"error": "Invalid order",
"issues": [
{
"expected": "number",
"code": "invalid_type",
"path": [
"id"
],
"message": "Invalid input: expected number, received string"
}
]
}POST /api/v1/refunds Send a refund
/api/v1/refunds Send a refundMakes a credit note against the order's invoice. Idempotent per refund id. orderTotal (optional) is the order's total as your shop charged it, used to scale the credit when the invoice total differs (reverse charge).
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/refunds" \
-H "Authorization: Bearer pk_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"refund": {
"id": 7001,
"order_id": 1001,
"created_at": "2026-11-20T14:00:00+01:00",
"refund_line_items": [
{
"line_item_id": 1,
"quantity": 1
}
],
"transactions": [
{
"kind": "refund",
"status": "success",
"amount": "121.00"
}
]
}
}'JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/refunds", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
"refund": {
"id": 7001,
"order_id": 1001,
"created_at": "2026-11-20T14:00:00+01:00",
"refund_line_items": [
{
"line_item_id": 1,
"quantity": 1
}
],
"transactions": [
{
"kind": "refund",
"status": "success",
"amount": "121.00"
}
]
}
}),
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/refunds');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"refund": {
"id": 7001,
"order_id": 1001,
"created_at": "2026-11-20T14:00:00+01:00",
"refund_line_items": [
{
"line_item_id": 1,
"quantity": 1
}
],
"transactions": [
{
"kind": "refund",
"status": "success",
"amount": "121.00"
}
]
}
}
JSON,
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/refunds",
headers={"Authorization": "Bearer pk_test_your_key"},
json={
"refund": {
"id": 7001,
"order_id": 1001,
"created_at": "2026-11-20T14:00:00+01:00",
"refund_line_items": [
{
"line_item_id": 1,
"quantity": 1,
},
],
"transactions": [
{
"kind": "refund",
"status": "success",
"amount": "121.00",
},
],
},
},
)
data = res.json()Schema
Request body
| Field | Type | Required | Description |
|---|---|---|---|
refund | object | yesrequired | |
refund.id | integer | yesrequired | The refund id. The same id again makes no second credit note. |
refund.order_id | integer | yesrequired | The id of the order you sent to POST /orders. |
refund.created_at | string | yesrequired | |
refund.processed_at | string | null | ||
refund.refund_line_items | object[] | ||
refund.refund_line_items[].line_item_id | integer | yesrequired | The id of the line in the order. |
refund.refund_line_items[].quantity | integer | yesrequired | |
refund.transactions | object[] | What was paid back: transactions with kind "refund" and status "success" count. | |
refund.transactions[].kind | string | yesrequired | |
refund.transactions[].status | string | null | ||
refund.transactions[].amount | string | number | yesrequired | |
orderTotal | number |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Always true |
test | boolean | Only present on answers to a test key (pk_test_…). Always true | |
status | string | yesrequired | One of: "issued", "exists", "no_settings", "nothing_refunded" |
creditNote | object | null | yesrequired | |
creditNote.number | string | yesrequired | The invoice number. Test documents: TEST-2026-00001 and on. |
creditNote.type | string | yesrequired | One of: "invoice", "credit_note" |
creditNote.orderId | string | yesrequired | The order id you sent; a credit note has "<order id>/refund/<refund id>". |
creditNote.issueDate | string (date) | yesrequired | |
creditNote.total | number | yesrequired | Total including VAT, in the currency. |
creditNote.currency | string | yesrequired | |
creditNote.peppolStatus | string | null | yesrequired | How the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol" |
creditNote.emailedAt | string | null (date-time) | yesrequired | When the document was mailed to the customer. |
creditNote.emailTo | string | null | yesrequired | |
creditNote.emailError | string | null | yesrequired | Why the mail did not go out, when it did not. |
creditNote.pdfUrl | string (uri) | yesrequired | |
creditNote.ublUrl | string (uri) | yesrequired | |
creditNote.warnings | string[] | yesrequired | Points to check (VAT, VIES), in the language of ?lang=. |
creditNote.test | boolean | Only present on answers to a test key (pk_test_…). Always true |
Responses
200 The credit note was made, or already existed.
{
"ok": true,
"test": true,
"status": "issued",
"creditNote": {
"number": "TEST-2026-00002",
"type": "credit_note",
"orderId": "1001/refund/7001",
"issueDate": "2026-11-20",
"total": 121,
"currency": "EUR",
"peppolStatus": "pending",
"emailedAt": null,
"emailTo": null,
"emailError": null,
"pdfUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…",
"ublUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…?format=xml",
"warnings": [],
"test": true
}
}400 The body is not JSON.
{
"error": "Body must be JSON"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}404 There is no invoice for this order.
{
"ok": false,
"error": "No invoice for this order"
}405 Wrong HTTP method.
{
"error": "POST only"
}422 The refund is not valid.
{
"ok": false,
"error": "Invalid refund",
"issues": [
{
"expected": "number",
"code": "invalid_type",
"path": [
"id"
],
"message": "Invalid input: expected number, received string"
}
]
}POST /api/v1/invoices Send an invoice in JSON
/api/v1/invoices Send an invoice in JSONFor software that bills on its own (a booking system, a SaaS, an ERP) rather than through a webshop order: your reference, the buyer, lines with VAT rates, optional shipping, paid or with a due date. PeppolKit numbers it, applies the VAT rules, checks it against EN 16931 and Peppol BIS, mails it and sends it over Peppol when the buyer is on it, exactly as for an order. An unpaid invoice gets a due date (default 30 days), your IBAN with the invoice number as payment reference, and the payment QR on the PDF. Idempotent per reference.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/invoices" \
-H "Authorization: Bearer pk_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"reference": "SUB-2026-11-0042",
"buyer": {
"company": "Afnemer NV",
"vatNumber": "BE0202239951",
"email": "facturen@afnemer.be",
"address": {
"line1": "Markt 1",
"postcode": "9000",
"city": "Gent",
"country": "BE"
}
},
"lines": [
{
"description": "Abonnement november",
"quantity": 1,
"unitPrice": 49,
"vatRate": 21
},
{
"description": "Extra gebruikers",
"quantity": 3,
"unitPrice": "5.00",
"vatRate": 21
}
]
}'JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/invoices", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
"reference": "SUB-2026-11-0042",
"buyer": {
"company": "Afnemer NV",
"vatNumber": "BE0202239951",
"email": "facturen@afnemer.be",
"address": {
"line1": "Markt 1",
"postcode": "9000",
"city": "Gent",
"country": "BE"
}
},
"lines": [
{
"description": "Abonnement november",
"quantity": 1,
"unitPrice": 49,
"vatRate": 21
},
{
"description": "Extra gebruikers",
"quantity": 3,
"unitPrice": "5.00",
"vatRate": 21
}
]
}),
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/invoices');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"reference": "SUB-2026-11-0042",
"buyer": {
"company": "Afnemer NV",
"vatNumber": "BE0202239951",
"email": "facturen@afnemer.be",
"address": {
"line1": "Markt 1",
"postcode": "9000",
"city": "Gent",
"country": "BE"
}
},
"lines": [
{
"description": "Abonnement november",
"quantity": 1,
"unitPrice": 49,
"vatRate": 21
},
{
"description": "Extra gebruikers",
"quantity": 3,
"unitPrice": "5.00",
"vatRate": 21
}
]
}
JSON,
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/invoices",
headers={"Authorization": "Bearer pk_test_your_key"},
json={
"reference": "SUB-2026-11-0042",
"buyer": {
"company": "Afnemer NV",
"vatNumber": "BE0202239951",
"email": "facturen@afnemer.be",
"address": {
"line1": "Markt 1",
"postcode": "9000",
"city": "Gent",
"country": "BE",
},
},
"lines": [
{
"description": "Abonnement november",
"quantity": 1,
"unitPrice": 49,
"vatRate": 21,
},
{
"description": "Extra gebruikers",
"quantity": 3,
"unitPrice": "5.00",
"vatRate": 21,
},
],
},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
lang | string · query | Language of the warnings. One of: "nl", "fr", "en", "de" |
Request body
An invoice in JSON (POST /invoices). PeppolKit numbers it, applies the VAT rules and makes the PDF and UBL, as for an order.
| Field | Type | Required | Description |
|---|---|---|---|
reference | string | yesrequired | Your own reference (your invoice or order id). The same reference never gives a second invoice. Shares one namespace with the order ids of POST /orders. |
issueDate | string (date) | Default today. Not in the future, at most 31 days back. | |
dueDate | string (date) | Only for an unpaid invoice; default 30 days after the issue date. | |
paid | boolean | false: still to be paid (due date, your IBAN and the payment QR). true: printed as paid, nothing payable. | |
currency | string | ||
pricesIncludeVat | boolean | Whether unitPrice, discount and the shipping price include VAT. | |
language | string | Invoice language; default your setting. One of: "nl", "fr", "en", "de" | |
buyerReference | string | The buyer's purchase order or reference (Peppol BT-10); default your reference. | |
note | string | Free text on the invoice. | |
buyer | object | yesrequired | Give name or company (or both). With a valid VAT number of a company the invoice goes over Peppol when the company is on it. |
buyer.name | string | ||
buyer.company | string | ||
buyer.vatNumber | string | ||
buyer.email | string (email) | Where the invoice is mailed (when mailing customers is on). | |
buyer.address | object | yesrequired | |
buyer.address.line1 | string | yesrequired | |
buyer.address.line2 | string | ||
buyer.address.postcode | string | yesrequired | |
buyer.address.city | string | yesrequired | |
buyer.address.country | string | yesrequired | ISO 3166 code, e.g. BE. |
lines | object[] | yesrequired | |
lines[].description | string | yesrequired | |
lines[].quantity | integer | yesrequired | |
lines[].unitPrice | number | string | yesrequired | At most 2 decimals; a number or a decimal string. |
lines[].vatRate | number | yesrequired | VAT in percent, e.g. 21 or 5.5. PeppolKit still applies the rules (reverse charge, OSS, export) as for an order. |
lines[].sku | string | ||
lines[].discount | number | string | Discount on the whole line, same basis as unitPrice. | |
shipping | object | ||
shipping.description | string | ||
shipping.price | number | string | yesrequired | At most 2 decimals; a number or a decimal string. |
shipping.vatRate | number | yesrequired |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Always true |
test | boolean | Only present on answers to a test key (pk_test_…). Always true | |
status | string | yesrequired | One of: "issued", "exists" |
warnings | string[] | yesrequired | |
invoice | object | null | yesrequired | |
invoice.number | string | yesrequired | The invoice number. Test documents: TEST-2026-00001 and on. |
invoice.type | string | yesrequired | One of: "invoice", "credit_note" |
invoice.orderId | string | yesrequired | The order id you sent; a credit note has "<order id>/refund/<refund id>". |
invoice.issueDate | string (date) | yesrequired | |
invoice.total | number | yesrequired | Total including VAT, in the currency. |
invoice.currency | string | yesrequired | |
invoice.peppolStatus | string | null | yesrequired | How the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol" |
invoice.emailedAt | string | null (date-time) | yesrequired | When the document was mailed to the customer. |
invoice.emailTo | string | null | yesrequired | |
invoice.emailError | string | null | yesrequired | Why the mail did not go out, when it did not. |
invoice.pdfUrl | string (uri) | yesrequired | |
invoice.ublUrl | string (uri) | yesrequired | |
invoice.warnings | string[] | yesrequired | Points to check (VAT, VIES), in the language of ?lang=. |
invoice.test | boolean | Only present on answers to a test key (pk_test_…). Always true |
Responses
200 The invoice was made (issued) or already existed for this reference (exists).
{
"ok": true,
"test": true,
"status": "issued",
"warnings": [],
"invoice": {
"number": "TEST-2026-00001",
"type": "invoice",
"orderId": "SUB-2026-11-0042",
"issueDate": "2026-11-18",
"total": 77.44,
"currency": "EUR",
"peppolStatus": "pending",
"emailedAt": null,
"emailTo": null,
"emailError": null,
"pdfUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…",
"ublUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…?format=xml",
"warnings": [],
"test": true
}
}400 The body is not JSON.
{
"error": "Body must be JSON"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}402 The plan's monthly limit is reached; the invoice waits.
{
"ok": false,
"waiting": true,
"error": "Monthly limit of 20 invoices reached. The order waits and gets its invoice after an upgrade or at the start of next month."
}405 Wrong HTTP method.
{
"error": "POST only"
}409 Company details are missing. A live invoice waits; a test one does not.
{
"ok": false,
"waiting": true,
"error": "Save your company details first. The order waits and gets its invoice as soon as they are saved."
}422 The invoice is not valid; issues name each field.
{
"ok": false,
"error": "Invalid invoice",
"issues": [
{
"path": "lines.0.unitPrice",
"message": "expected a non-negative amount with at most 2 decimals"
}
]
}Invoices
GET /api/v1/invoices List invoices
/api/v1/invoices List invoicesInvoices and credit notes, newest first. With orderId: every document of that order (its invoice and credit notes), unpaged. Otherwise one page (50 by default, at most 100) filtered by issue date, type, customer, Peppol and e-mail state, attention or a search; total and pageCount say how many match. A wrong filter value answers 400 and names the parameter.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/invoices?orderId=1001&from=2026-11-01&to=2026-11-30&q=Peeters" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/invoices?orderId=1001&from=2026-11-01&to=2026-11-30&q=Peeters", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/invoices?orderId=1001&from=2026-11-01&to=2026-11-30&q=Peeters');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/invoices?orderId=1001&from=2026-11-01&to=2026-11-30&q=Peeters",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
orderId | string · query | The order id (or invoice reference) you sent. | |
page | integer · query | ||
limit | integer · query | ||
from | string (date) · query | Earliest issue date (inclusive). | |
to | string (date) · query | Latest issue date (inclusive). | |
type | string · query | One of: "invoice", "credit_note" | |
customer | string · query | business: the buyer has a VAT number. One of: "business", "consumer" | |
peppol | string · query | none: no Peppol delivery applies. One of: "pending", "sent", "delivered", "failed", "not_on_peppol", "none" | |
email | string · query | One of: "sent", "failed", "none" | |
attention | boolean · query | Only documents that need attention (warning, failed rule check, failed mail or Peppol delivery). | |
q | string · query | Search in number, order and customer name. | |
lang | string · query | Language of the warnings. One of: "nl", "fr", "en", "de" |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
invoices | object[] | yesrequired | |
invoices[].number | string | yesrequired | The invoice number. Test documents: TEST-2026-00001 and on. |
invoices[].type | string | yesrequired | One of: "invoice", "credit_note" |
invoices[].orderId | string | yesrequired | The order id you sent; a credit note has "<order id>/refund/<refund id>". |
invoices[].issueDate | string (date) | yesrequired | |
invoices[].total | number | yesrequired | Total including VAT, in the currency. |
invoices[].currency | string | yesrequired | |
invoices[].peppolStatus | string | null | yesrequired | How the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol" |
invoices[].emailedAt | string | null (date-time) | yesrequired | When the document was mailed to the customer. |
invoices[].emailTo | string | null | yesrequired | |
invoices[].emailError | string | null | yesrequired | Why the mail did not go out, when it did not. |
invoices[].pdfUrl | string (uri) | yesrequired | |
invoices[].ublUrl | string (uri) | yesrequired | |
invoices[].warnings | string[] | yesrequired | Points to check (VAT, VIES), in the language of ?lang=. |
invoices[].test | boolean | Only present on answers to a test key (pk_test_…). Always true | |
page | integer | Not with orderId. | |
limit | integer | ||
total | integer | Documents matching the filters. | |
pageCount | integer | ||
hasMore | boolean | There is a next page. |
Responses
200 The documents.
{
"invoices": [
{
"number": "TEST-2026-00001",
"type": "invoice",
"orderId": "1001",
"issueDate": "2026-11-18",
"total": 121,
"currency": "EUR",
"peppolStatus": "pending",
"emailedAt": null,
"emailTo": null,
"emailError": null,
"pdfUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…",
"ublUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…?format=xml",
"warnings": [],
"test": true
}
],
"page": 1,
"limit": 50,
"total": 1,
"pageCount": 1,
"hasMore": false
}400 A filter has a wrong value (named in the error).
{
"error": "Invalid peppol: expected pending, sent, delivered, failed, not_on_peppol, none"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}GET /api/v1/invoices/{number} Get one invoice with its status
/api/v1/invoices/{number} Get one invoice with its statusOne invoice or credit note by its number: the fields of GET /invoices plus buyer, amounts, the EN 16931 / Peppol BIS rule check, the e-mail and the Peppol delivery (status, time, error) and attentionReasons, the same rules as the dashboard's "needs attention". A test key sees test documents only.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
number | string · path | yesrequired | The invoice or credit note number, as in GET /invoices. |
lang | string · query | Language of the warnings. One of: "nl", "fr", "en", "de" |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
number | string | yesrequired | The invoice number. Test documents: TEST-2026-00001 and on. |
type | string | yesrequired | One of: "invoice", "credit_note" |
orderId | string | yesrequired | The order id you sent; a credit note has "<order id>/refund/<refund id>". |
issueDate | string (date) | yesrequired | |
total | number | yesrequired | Total including VAT, in the currency. |
currency | string | yesrequired | |
peppolStatus | string | null | yesrequired | How the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol" |
emailedAt | string | null (date-time) | yesrequired | When the document was mailed to the customer. |
emailTo | string | null | yesrequired | |
emailError | string | null | yesrequired | Why the mail did not go out, when it did not. |
pdfUrl | string (uri) | yesrequired | |
ublUrl | string (uri) | yesrequired | |
warnings | string[] | yesrequired | Points to check (VAT, VIES), in the language of ?lang=. |
test | boolean | Only present on answers to a test key (pk_test_…). Always true | |
orderName | string | yesrequired | The order number as the customer saw it. |
buyerName | string | yesrequired | |
buyerVatNumber | string | null | yesrequired | |
buyerCountry | string | null | yesrequired | Two letters, e.g. BE. |
business | boolean | yesrequired | The buyer gave a VAT number. |
net | number | yesrequired | Total without VAT. |
vat | number | yesrequired | The VAT amount. |
needsAttention | boolean | yesrequired | As the dashboard's "needs attention": a warning, a failed rule check or a failed delivery. |
attentionReasons | string[] | yesrequired | Why it needs attention, one line per reason; empty when it does not. |
validation | object | yesrequired | |
validation.checked | boolean | yesrequired | The EN 16931 / Peppol BIS rule check ran. |
validation.valid | boolean | yesrequired | |
validation.issues | object[] | yesrequired | |
validation.issues[].id | string | yesrequired | The rule, e.g. BR-CO-15. |
validation.issues[].text | string | yesrequired | |
delivery | object | yesrequired | |
delivery.email | object | yesrequired | |
delivery.email.to | string | null | yesrequired | |
delivery.email.sentAt | string | null (date-time) | yesrequired | |
delivery.email.error | string | null | yesrequired | |
delivery.email.viaShopMail | string | null | yesrequired | With "the shop mails the invoice": waiting for the shop's own mail, sent with it (shop), or mailed by PeppolKit as the fallback. null otherwise. One of: "waiting", "shop", "peppolkit" |
delivery.peppol | object | yesrequired | |
delivery.peppol.status | string | null | yesrequired | One of: "pending", "sent", "delivered", "failed", "not_on_peppol" |
delivery.peppol.sentAt | string | null (date-time) | yesrequired | |
delivery.peppol.error | string | null | yesrequired | Why Peppol refused it, when it did. |
Responses
200 The document.
{
"number": "TEST-2026-00001",
"type": "invoice",
"orderId": "1001",
"issueDate": "2026-11-18",
"total": 121,
"currency": "EUR",
"peppolStatus": "delivered",
"emailedAt": null,
"emailTo": null,
"emailError": null,
"pdfUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…",
"ublUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…?format=xml",
"warnings": [],
"test": true,
"orderName": "#1001",
"buyerName": "Testbedrijf BV",
"buyerVatNumber": "BE0000000097",
"buyerCountry": "BE",
"business": true,
"net": 100,
"vat": 21,
"needsAttention": false,
"attentionReasons": [],
"validation": {
"checked": true,
"valid": true,
"issues": []
},
"delivery": {
"email": {
"to": null,
"sentAt": null,
"error": null,
"viaShopMail": null
},
"peppol": {
"status": "delivered",
"sentAt": "2026-11-18T10:00:05.000Z",
"error": null
}
}
}401 The key is missing or not valid.
{
"error": "Missing API key"
}404 No document with this number in this shop.
{
"error": "Invoice not found"
}GET /api/v1/invoices/{number}/pdf Download the PDF
/api/v1/invoices/{number}/pdf Download the PDFThe PDF of one invoice or credit note, the same file as the signed pdfUrl. With ?mail=1 a plugin says it attaches the PDF to the shop's own order mail now (409 if PeppolKit already mailed the customer); ?mail=again is a resend the merchant asked for.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001/pdf" \
-H "Authorization: Bearer pk_test_your_key" \
-o TEST-2026-00001.pdfJavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001/pdf", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const file = await res.blob();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001/pdf');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
file_put_contents('TEST-2026-00001.pdf', curl_exec($ch));Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001/pdf",
headers={"Authorization": "Bearer pk_test_your_key"},
)
open("TEST-2026-00001.pdf", "wb").write(res.content)Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
number | string · path | yesrequired | The invoice or credit note number, as in GET /invoices. |
mail | string · query | One of: "1", "again" |
Responses
200 The PDF.
application/pdf
401 The key is missing or not valid.
{
"error": "Missing API key"
}404 No document with this number.
{
"error": "Invoice not found"
}409 ?mail=1, and PeppolKit already mailed the customer.
{
"error": "Already mailed by PeppolKit"
}POST /api/v1/invoices/{number}/email Mail the invoice again
/api/v1/invoices/{number}/email Mail the invoice againMails the document to the customer again. Test documents are never mailed: the answer says so.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001/email" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001/email", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001/email');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001/email",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
number | string · path | yesrequired | The invoice or credit note number, as in GET /invoices. |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | |
test | boolean | Only present on answers to a test key (pk_test_…). Always true | |
emailed | boolean | ||
note | string | ||
error | string | ||
noAddress | boolean |
Responses
200 Mailed (or, for a test document, not).
{
"ok": true,
"test": true,
"emailed": false,
"note": "Test documents are never mailed to customers."
}401 The key is missing or not valid.
{
"error": "Missing API key"
}404 No document with this number.
{
"error": "Invoice not found"
}405 Wrong HTTP method.
{
"error": "POST only"
}502 The mail could not be sent.
{
"ok": false,
"error": "Geen e-mailadres bij deze bestelling",
"noAddress": true
}POST /api/v1/invoices/{number}/peppol Send over Peppol again
/api/v1/invoices/{number}/peppol Send over Peppol again(Re)sends the document over Peppol. With a test key the delivery is simulated.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001/peppol" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001/peppol", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001/peppol');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/invoices/TEST-2026-00001/peppol",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
number | string · path | yesrequired | The invoice or credit note number, as in GET /invoices. |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | |
test | boolean | Only present on answers to a test key (pk_test_…). Always true | |
status | string | yesrequired | One of: "sent", "pending", "failed", "skipped", "not_on_peppol" |
error | string | ||
invoice | object | null | yesrequired | |
invoice.number | string | yesrequired | The invoice number. Test documents: TEST-2026-00001 and on. |
invoice.type | string | yesrequired | One of: "invoice", "credit_note" |
invoice.orderId | string | yesrequired | The order id you sent; a credit note has "<order id>/refund/<refund id>". |
invoice.issueDate | string (date) | yesrequired | |
invoice.total | number | yesrequired | Total including VAT, in the currency. |
invoice.currency | string | yesrequired | |
invoice.peppolStatus | string | null | yesrequired | How the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol" |
invoice.emailedAt | string | null (date-time) | yesrequired | When the document was mailed to the customer. |
invoice.emailTo | string | null | yesrequired | |
invoice.emailError | string | null | yesrequired | Why the mail did not go out, when it did not. |
invoice.pdfUrl | string (uri) | yesrequired | |
invoice.ublUrl | string (uri) | yesrequired | |
invoice.warnings | string[] | yesrequired | Points to check (VAT, VIES), in the language of ?lang=. |
invoice.test | boolean | Only present on answers to a test key (pk_test_…). Always true |
Responses
200 What happened; ok is true when it was sent.
{
"ok": true,
"test": true,
"status": "sent",
"invoice": {
"number": "TEST-2026-00001",
"type": "invoice",
"orderId": "1001",
"issueDate": "2026-11-18",
"total": 121,
"currency": "EUR",
"peppolStatus": "sent",
"emailedAt": null,
"emailTo": null,
"emailError": null,
"pdfUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…",
"ublUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…?format=xml",
"warnings": [],
"test": true
}
}401 The key is missing or not valid.
{
"error": "Missing API key"
}404 No document with this number.
{
"error": "Invoice not found"
}405 Wrong HTTP method.
{
"error": "POST only"
}GET /api/v1/stats Invoice statistics
/api/v1/stats Invoice statisticsCounts and amounts for a period by issue date: invoices and credit notes, business and consumer, totals and VAT per currency, Peppol and e-mail states, documents that need attention and documents received, with a row per month. Without dates: this month so far. At most 3 years in one call. For a dashboard of your own, or an agency with one key per shop.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/stats" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/stats", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/stats');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/stats",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
from | string (date) · query | Default the first day of this month. | |
to | string (date) · query | Default today. |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
from | string (date) | yesrequired | |
to | string (date) | yesrequired | |
invoices | integer | yesrequired | Invoices issued in the period (issue date). |
creditNotes | integer | yesrequired | |
business | integer | yesrequired | Invoices to a buyer with a VAT number. |
consumer | integer | yesrequired | |
attention | integer | yesrequired | Documents that need attention (a warning, a failed rule check, mail or Peppol delivery), as in the dashboard. |
totals | object[] | yesrequired | Per currency, EUR first. Amounts incl. VAT; net = invoiced - credited. |
totals[].currency | string | yesrequired | |
totals[].invoiced | number | yesrequired | |
totals[].credited | number | yesrequired | |
totals[].net | number | yesrequired | |
totals[].vat | number | yesrequired | |
peppol | object | yesrequired | |
peppol.pending | integer | yesrequired | |
peppol.sent | integer | yesrequired | |
peppol.delivered | integer | yesrequired | |
peppol.failed | integer | yesrequired | |
peppol.notOnPeppol | integer | yesrequired | |
email | object | yesrequired | |
email.sent | integer | yesrequired | |
email.failed | integer | yesrequired | |
received | integer | yesrequired | Documents received from suppliers over Peppol in the period. |
months | object[] | yesrequired | |
months[].month | string | yesrequired | |
months[].invoices | integer | yesrequired | |
months[].creditNotes | integer | yesrequired | |
months[].totals | object[] | yesrequired | |
months[].totals[].currency | string | yesrequired | |
months[].totals[].net | number | yesrequired | |
months[].totals[].vat | number | yesrequired | |
test | boolean | Only present on answers to a test key (pk_test_…). Always true |
Responses
200 The numbers.
{
"from": "2026-11-01",
"to": "2026-11-18",
"invoices": 42,
"creditNotes": 2,
"business": 9,
"consumer": 33,
"attention": 1,
"totals": [
{
"currency": "EUR",
"invoiced": 6230.5,
"credited": 121,
"net": 6109.5,
"vat": 1060.29
}
],
"peppol": {
"pending": 0,
"sent": 1,
"delivered": 8,
"failed": 0,
"notOnPeppol": 1
},
"email": {
"sent": 40,
"failed": 1
},
"received": 3,
"months": [
{
"month": "2026-11",
"invoices": 42,
"creditNotes": 2,
"totals": [
{
"currency": "EUR",
"net": 6109.5,
"vat": 1060.29
}
]
}
]
}400 from or to is not a date YYYY-MM-DD, from is after to, or the period is longer than 3 years.
{
"error": "from must be a date YYYY-MM-DD."
}401 The key is missing or not valid.
{
"error": "Missing API key"
}Documents
GET /api/v1/documents List your own documents
/api/v1/documents List your own documentsThe UBL documents you sent through POST /documents, newest first, 50 a page.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/documents" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/documents", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/documents');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/documents",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
page | integer · query |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
documents | object[] | yesrequired | |
documents[].id | string | yesrequired | |
documents[].type | string | yesrequired | One of: "invoice", "credit_note" |
documents[].number | string | yesrequired | cbc:ID of your document. |
documents[].issueDate | string (date) | yesrequired | |
documents[].currency | string | yesrequired | |
documents[].total | number | yesrequired | PayableAmount. |
documents[].buyerName | string | yesrequired | |
documents[].receiver | string | yesrequired | The buyer's Peppol address, scheme:value. |
documents[].status | string | yesrequired | sent: handed to the Peppol network; delivered: the buyer's access point took it; not_on_peppol: the buyer cannot receive it (nothing sent). One of: "sent", "delivered", "failed", "not_on_peppol" |
documents[].error | string | null | yesrequired | |
documents[].sentAt | string (date-time) | null | yesrequired | |
documents[].createdAt | string (date-time) | yesrequired | |
documents[].test | boolean | Only present on answers to a test key (pk_test_…). Always true | |
page | integer | yesrequired | |
pageCount | integer | yesrequired | |
total | integer | yesrequired | |
hasMore | boolean | yesrequired | |
test | boolean | Only present on answers to a test key (pk_test_…). Always true |
Responses
200 One page.
{
"documents": [
{
"id": "cmx1u9p2k0003abcd5678wxyz",
"type": "invoice",
"number": "F-2026-0042",
"issueDate": "2026-11-18",
"currency": "EUR",
"total": 121,
"buyerName": "Afnemer NV",
"receiver": "0208:0202239951",
"status": "delivered",
"error": null,
"sentAt": "2026-11-18T10:00:00.000Z",
"createdAt": "2026-11-18T10:00:00.000Z",
"test": true
}
],
"page": 1,
"pageCount": 1,
"total": 1,
"hasMore": false,
"test": true
}400 page is not a whole number from 1.
{
"error": "page must be a whole number from 1."
}401 The key is missing or not valid.
{
"error": "Missing API key"
}POST /api/v1/documents Send your own UBL over Peppol
/api/v1/documents Send your own UBL over PeppolA Peppol BIS Billing 3.0 UBL invoice or credit note made in your own software, as the request body (Content-Type: application/xml) or as JSON {"xml": "<Invoice …>"}, at most 2 MB. PeppolKit checks that the supplier is your company (Peppol address and VAT number), that the EN 16931 and Peppol BIS rules pass and that the buyer has a Peppol address, then sends the document unchanged through your access point (SUPER PDP or your Peppyrus account). PeppolKit does not number it, make a PDF or mail it. An invoice counts toward your plan's monthly number. Idempotent per type and number. When it cannot be sent at all (no access point, Peppol off) nothing is stored: fix that and send again. Delivery states follow in GET /documents/{id}. With a test key the checks are the same and the delivery is simulated at once (the buyer 0208:0000000196 rejects).
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/documents" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/documents", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/documents');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/documents",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Request body
| Field | Type | Required | Description |
|---|---|---|---|
xml | string | yesrequired | The UBL document. |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Always true |
status | string | yesrequired | Always "exists" |
document | object | yesrequired | |
document.id | string | yesrequired | |
document.type | string | yesrequired | One of: "invoice", "credit_note" |
document.number | string | yesrequired | cbc:ID of your document. |
document.issueDate | string (date) | yesrequired | |
document.currency | string | yesrequired | |
document.total | number | yesrequired | PayableAmount. |
document.buyerName | string | yesrequired | |
document.receiver | string | yesrequired | The buyer's Peppol address, scheme:value. |
document.status | string | yesrequired | sent: handed to the Peppol network; delivered: the buyer's access point took it; not_on_peppol: the buyer cannot receive it (nothing sent). One of: "sent", "delivered", "failed", "not_on_peppol" |
document.error | string | null | yesrequired | |
document.sentAt | string (date-time) | null | yesrequired | |
document.createdAt | string (date-time) | yesrequired | |
document.test | boolean | Only present on answers to a test key (pk_test_…). Always true |
Response 201
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | |
status | string | yesrequired | One of: "sent", "delivered", "failed", "not_on_peppol" |
document | object | yesrequired | |
document.id | string | yesrequired | |
document.type | string | yesrequired | One of: "invoice", "credit_note" |
document.number | string | yesrequired | cbc:ID of your document. |
document.issueDate | string (date) | yesrequired | |
document.currency | string | yesrequired | |
document.total | number | yesrequired | PayableAmount. |
document.buyerName | string | yesrequired | |
document.receiver | string | yesrequired | The buyer's Peppol address, scheme:value. |
document.status | string | yesrequired | sent: handed to the Peppol network; delivered: the buyer's access point took it; not_on_peppol: the buyer cannot receive it (nothing sent). One of: "sent", "delivered", "failed", "not_on_peppol" |
document.error | string | null | yesrequired | |
document.sentAt | string (date-time) | null | yesrequired | |
document.createdAt | string (date-time) | yesrequired | |
document.test | boolean | Only present on answers to a test key (pk_test_…). Always true |
Responses
200 A document with this type and number was sent before; nothing new is sent.
{
"ok": true,
"status": "exists",
"document": {
"id": "cmx1u9p2k0003abcd5678wxyz",
"type": "invoice",
"number": "F-2026-0042",
"issueDate": "2026-11-18",
"currency": "EUR",
"total": 121,
"buyerName": "Afnemer NV",
"receiver": "0208:0202239951",
"status": "delivered",
"error": null,
"sentAt": "2026-11-18T10:00:00.000Z",
"createdAt": "2026-11-18T10:00:00.000Z",
"test": true
}
}201 Checked and handed to the Peppol network (ok false when the access point refused it; the reason is in document.error).
{
"ok": true,
"status": "delivered",
"document": {
"id": "cmx1u9p2k0003abcd5678wxyz",
"type": "invoice",
"number": "F-2026-0042",
"issueDate": "2026-11-18",
"currency": "EUR",
"total": 121,
"buyerName": "Afnemer NV",
"receiver": "0208:0202239951",
"status": "delivered",
"error": null,
"sentAt": "2026-11-18T10:00:00.000Z",
"createdAt": "2026-11-18T10:00:00.000Z",
"test": true
}
}400 No body, or JSON without xml.
{
"error": "Send the UBL document as the request body (Content-Type: application/xml)."
}401 The key is missing or not valid.
{
"error": "Missing API key"
}402 The plan's monthly number is reached.
{
"ok": false,
"error": "Monthly limit of 20 invoices reached. Upgrade, or send again next month."
}405 Wrong HTTP method.
{
"error": "POST only"
}409 Company details missing, Peppol off or no access point connected; nothing was sent.
{
"ok": false,
"error": "Peppol sending is off in your settings; nothing was sent."
}413 Larger than 2 MB.
{
"ok": false,
"error": "The document is larger than 2 MB."
}422 Not a Peppol BIS UBL, the supplier is not your company, the buyer has no Peppol address, or the rules fail. Nothing was sent.
{
"ok": false,
"error": "The document fails the EN 16931 or Peppol BIS rules; nothing was sent.",
"issues": [
{
"id": "BR-CO-15",
"ruleset": "EN16931",
"text": "Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110)."
}
]
}GET /api/v1/documents/{id} Get one of your documents
/api/v1/documents/{id} Get one of your documentsOne document from POST /documents with its current Peppol state.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/documents/cmx1u9p2k0003abcd5678wxyz" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/documents/cmx1u9p2k0003abcd5678wxyz", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/documents/cmx1u9p2k0003abcd5678wxyz');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/documents/cmx1u9p2k0003abcd5678wxyz",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | string · path | yesrequired | The id from POST or GET /documents. |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
document | object | yesrequired | |
document.id | string | yesrequired | |
document.type | string | yesrequired | One of: "invoice", "credit_note" |
document.number | string | yesrequired | cbc:ID of your document. |
document.issueDate | string (date) | yesrequired | |
document.currency | string | yesrequired | |
document.total | number | yesrequired | PayableAmount. |
document.buyerName | string | yesrequired | |
document.receiver | string | yesrequired | The buyer's Peppol address, scheme:value. |
document.status | string | yesrequired | sent: handed to the Peppol network; delivered: the buyer's access point took it; not_on_peppol: the buyer cannot receive it (nothing sent). One of: "sent", "delivered", "failed", "not_on_peppol" |
document.error | string | null | yesrequired | |
document.sentAt | string (date-time) | null | yesrequired | |
document.createdAt | string (date-time) | yesrequired | |
document.test | boolean | Only present on answers to a test key (pk_test_…). Always true |
Responses
200 The document.
{
"document": {
"id": "cmx1u9p2k0003abcd5678wxyz",
"type": "invoice",
"number": "F-2026-0042",
"issueDate": "2026-11-18",
"currency": "EUR",
"total": 121,
"buyerName": "Afnemer NV",
"receiver": "0208:0202239951",
"status": "delivered",
"error": null,
"sentAt": "2026-11-18T10:00:00.000Z",
"createdAt": "2026-11-18T10:00:00.000Z",
"test": true
}
}401 The key is missing or not valid.
{
"error": "Missing API key"
}404 No document with this id in this shop.
{
"error": "Document not found"
}GET /api/v1/documents/{id}/xml Download the UBL
/api/v1/documents/{id}/xml Download the UBLThe document exactly as it was sent.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/documents/cmx1u9p2k0003abcd5678wxyz/xml" \
-H "Authorization: Bearer pk_test_your_key" \
-o cmx1u9p2k0003abcd5678wxyz-originalJavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/documents/cmx1u9p2k0003abcd5678wxyz/xml", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const file = await res.blob();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/documents/cmx1u9p2k0003abcd5678wxyz/xml');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
file_put_contents('cmx1u9p2k0003abcd5678wxyz-original', curl_exec($ch));Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/documents/cmx1u9p2k0003abcd5678wxyz/xml",
headers={"Authorization": "Bearer pk_test_your_key"},
)
open("cmx1u9p2k0003abcd5678wxyz-original", "wb").write(res.content)Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | string · path | yesrequired | The id from POST or GET /documents. |
Responses
200 The UBL.
application/xml
401 The key is missing or not valid.
{
"error": "Missing API key"
}404 No document with this id in this shop.
{
"error": "Document not found"
}Settings
GET /api/v1/settings Get settings and plan
/api/v1/settings Get settings and planCompany details, plan and this month's usage. With a test key: the live settings (read only), the usage of the test documents, and test: true.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/settings" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/settings", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/settings');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/settings",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
shop | string | yesrequired | Your shop's key at PeppolKit. |
test | boolean | Only present on answers to a test key (pk_test_…). Always true | |
configured | boolean | yesrequired | Company details are saved. |
seller | object | null | yesrequired | |
seller.name | string | yesrequired | |
seller.address | object | yesrequired | |
seller.address.street | string | yesrequired | |
seller.address.city | string | yesrequired | |
seller.address.postalCode | string | yesrequired | |
seller.address.country | string | yesrequired | |
seller.vatNumber | string | ||
seller.registrationNumber | string | ||
seller.taxNumber | string | German sellers: the Steuernummer. | |
seller.email | string (email) | ||
seller.endpoint | object | The Peppol address (ISO 6523 scheme and value). | |
seller.endpoint.schemeId | string | yesrequired | |
seller.endpoint.value | string | yesrequired | |
plan | object | yesrequired | |
plan.name | string | yesrequired | |
plan.invoicesPerMonth | integer | null | yesrequired | null: unlimited. |
plan.peppolIncluded | integer | null | yesrequired | |
plan.peppolEveryInvoice | boolean | yesrequired | |
emailCustomers | boolean | yesrequired | |
customerMailVia | string | yesrequired | One of: "peppolkit", "shop" |
pdfReady | boolean | yesrequired | Always true |
iban | string | yesrequired | |
invoicePrefix | string | yesrequired | |
ossRegistered | boolean | yesrequired | |
belowMicroThreshold | boolean | yesrequired | |
language | string | yesrequired | One of: "auto", "nl", "fr", "en", "de" |
peppolSend | boolean | yesrequired | |
smallBusiness | boolean | yesrequired | |
cashAccounting | boolean | yesrequired | |
peppolVia | string | yesrequired | "recommand" means: no access point connected yet. "dokapi": Peppol through PeppolKit for shops in the Netherlands, Germany and Luxembourg. One of: "recommand", "peppyrus", "superpdp", "dokapi" |
peppolActive | boolean | yesrequired | |
peppyrusParticipant | string | null | yesrequired | |
usage | object | yesrequired | |
usage.invoicesThisMonth | integer | yesrequired | |
usage.peppolThisMonth | integer | yesrequired | |
threshold | object | null | yesrequired | |
threshold.year | integer | yesrequired | |
threshold.thisYearCents | integer | yesrequired | |
threshold.lastYearCents | integer | yesrequired | |
threshold.state | string | yesrequired | One of: "below", "near", "over", "over_last_year" |
Responses
200 The settings.
{
"shop": "api:veloatelier.be",
"test": true,
"configured": true,
"seller": {
"name": "Velo Atelier BV",
"address": {
"street": "Dorpsstraat 1",
"city": "Gent",
"postalCode": "9000",
"country": "BE"
},
"vatNumber": "BE0202239951",
"registrationNumber": "0202239951",
"email": "info@veloatelier.be",
"endpoint": {
"schemeId": "0208",
"value": "0202239951"
}
},
"plan": {
"name": "Gratis",
"invoicesPerMonth": 20,
"peppolIncluded": 0,
"peppolEveryInvoice": false
},
"emailCustomers": true,
"customerMailVia": "peppolkit",
"pdfReady": true,
"iban": "BE68539007547034",
"invoicePrefix": "",
"ossRegistered": false,
"belowMicroThreshold": true,
"language": "auto",
"peppolSend": true,
"smallBusiness": false,
"cashAccounting": false,
"peppolVia": "recommand",
"peppolActive": false,
"peppyrusParticipant": null,
"usage": {
"invoicesThisMonth": 0,
"peppolThisMonth": 0
},
"threshold": {
"year": 2026,
"thisYearCents": 0,
"lastYearCents": 0,
"state": "below"
}
}401 The key is missing or not valid.
{
"error": "Missing API key"
}PUT /api/v1/settings Save company details
/api/v1/settings Save company detailsSaves the company details and invoice settings, with the same checks as the dashboard. With a test key the body is checked exactly as live and nothing is saved.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X PUT "https://app.peppolkit.com/api/v1/settings" \
-H "Authorization: Bearer pk_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"name": "Velo Atelier BV",
"street": "Dorpsstraat 1",
"postalCode": "9000",
"city": "Gent",
"country": "BE",
"vatNumber": "BE0202239951",
"registrationNumber": "0202239951",
"email": "info@veloatelier.be",
"iban": "BE68539007547034",
"language": "auto",
"emailCustomers": true,
"peppolSend": true
}'JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/settings", {
method: "PUT",
headers: {
Authorization: "Bearer pk_test_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
"name": "Velo Atelier BV",
"street": "Dorpsstraat 1",
"postalCode": "9000",
"city": "Gent",
"country": "BE",
"vatNumber": "BE0202239951",
"registrationNumber": "0202239951",
"email": "info@veloatelier.be",
"iban": "BE68539007547034",
"language": "auto",
"emailCustomers": true,
"peppolSend": true
}),
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/settings');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"name": "Velo Atelier BV",
"street": "Dorpsstraat 1",
"postalCode": "9000",
"city": "Gent",
"country": "BE",
"vatNumber": "BE0202239951",
"registrationNumber": "0202239951",
"email": "info@veloatelier.be",
"iban": "BE68539007547034",
"language": "auto",
"emailCustomers": true,
"peppolSend": true
}
JSON,
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.put(
"https://app.peppolkit.com/api/v1/settings",
headers={"Authorization": "Bearer pk_test_your_key"},
json={
"name": "Velo Atelier BV",
"street": "Dorpsstraat 1",
"postalCode": "9000",
"city": "Gent",
"country": "BE",
"vatNumber": "BE0202239951",
"registrationNumber": "0202239951",
"email": "info@veloatelier.be",
"iban": "BE68539007547034",
"language": "auto",
"emailCustomers": True,
"peppolSend": True,
},
)
data = res.json()Schema
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yesrequired | |
street | string | yesrequired | |
postalCode | string | yesrequired | |
city | string | yesrequired | |
country | string | yesrequired | |
vatNumber | string | Required, except for a German seller that sends taxNumber instead. | |
taxNumber | string | German sellers: the Steuernummer, instead of or next to the VAT number. | |
registrationNumber | string | KvK or enterprise number; in BE and NL it becomes your Peppol address. | |
email | string (email) | ||
iban | string | ||
invoicePrefix | string | ||
ossRegistered | boolean | ||
belowMicroThreshold | boolean | Cross-border sales to consumers stay below EUR 10 000 a year. | |
emailCustomers | boolean | ||
language | string | One of: "auto", "nl", "fr", "en", "de" | |
peppolSend | boolean | ||
smallBusiness | boolean | Small-business scheme (BE, NL, DE, LU): invoices without VAT with the scheme's mention. | |
cashAccounting | boolean | Luxembourg shops under the cash-accounting regime (art. 25 LTVA): invoices state "Comptabilité de caisse". Ignored for other countries. | |
customerMailVia | string | "shop" only for the plugin platforms. One of: "peppolkit", "shop" |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Always true |
test | boolean | Only present on answers to a test key (pk_test_…). Always true | |
saved | boolean | false with a test key: nothing was saved. |
Responses
200 Saved (live) or checked (test).
{
"ok": true,
"test": true,
"saved": false
}400 The body is not JSON.
{
"error": "Body must be JSON"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}405 Wrong HTTP method.
{
"error": "PUT only"
}422 The details are not valid; errors names each field.
{
"ok": false,
"test": true,
"errors": [
"vatNumber: \"0123\" is not a valid BE VAT number format"
]
}GET /api/v1/billing Get plan and prices
/api/v1/billing Get plan and pricesThe current plan and the paid plans with their prices for this shop (euro cents, VAT for the shop's country).
Try it
Works with your live key only; a test key gets 403.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/billing" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/billing", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/billing');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/billing",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
available | boolean | yesrequired | Paid plans can be started now. |
current | string | yesrequired | The plan the shop is on. |
status | string | null | yesrequired | The subscription's state, null without one. |
interval | string | Only once yearly plans are live. One of: "month", "year" | |
renewsAt | string | null (date-time) | Only once yearly plans are live. | |
plans | object[] | yesrequired | |
plans[].name | string | yesrequired | |
plans[].invoicesPerMonth | integer | null | yesrequired | |
plans[].peppolIncluded | integer | null | yesrequired | |
plans[].peppolEveryInvoice | boolean | yesrequired | |
plans[].net | integer | yesrequired | Price a month in euro cents, without VAT. |
plans[].vat | integer | yesrequired | |
plans[].gross | integer | yesrequired | |
plans[].yearly | object | ||
plans[].yearly.net | integer | yesrequired | |
plans[].yearly.vat | integer | yesrequired | |
plans[].yearly.gross | integer | yesrequired | |
plans[].currency | string | yesrequired | Always "EUR" |
Responses
200 Plan and prices.
{
"available": true,
"current": "Gratis",
"status": null,
"plans": [
{
"name": "Starter",
"invoicesPerMonth": 100,
"peppolIncluded": 25,
"peppolEveryInvoice": true,
"net": 900,
"vat": 0,
"gross": 900,
"currency": "EUR"
},
{
"name": "Groei",
"invoicesPerMonth": 500,
"peppolIncluded": 100,
"peppolEveryInvoice": true,
"net": 1900,
"vat": 0,
"gross": 1900,
"currency": "EUR"
},
{
"name": "Pro",
"invoicesPerMonth": null,
"peppolIncluded": 300,
"peppolEveryInvoice": true,
"net": 4900,
"vat": 0,
"gross": 4900,
"currency": "EUR"
}
]
}401 The key is missing or not valid.
{
"error": "Missing API key"
}403 A test key (pk_test_…) on a call that needs the live key.
{
"error": "This call is not available with a test key (pk_test_…). Use your live key."
}POST /api/v1/billing Start or cancel a paid plan
/api/v1/billing Start or cancel a paid planStarts a paid plan: the answer has the Mollie checkout to send the merchant to. {"plan": "Gratis"} cancels; a paid year runs until endsAt.
Try it
Works with your live key only; a test key gets 403.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/billing" \
-H "Authorization: Bearer pk_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"plan": "Starter",
"redirectUrl": "https://shop.example/admin/peppolkit"
}'JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/billing", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
"plan": "Starter",
"redirectUrl": "https://shop.example/admin/peppolkit"
}),
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/billing');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"plan": "Starter",
"redirectUrl": "https://shop.example/admin/peppolkit"
}
JSON,
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/billing",
headers={"Authorization": "Bearer pk_test_your_key"},
json={
"plan": "Starter",
"redirectUrl": "https://shop.example/admin/peppolkit",
},
)
data = res.json()Schema
Request body
| Field | Type | Required | Description |
|---|---|---|---|
plan | string | yesrequired | |
redirectUrl | string (uri) | ||
interval | string | One of: "month", "year" |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Always true |
checkoutUrl | string (uri) | ||
plan | string | ||
endsAt | string (date-time) |
Responses
200 The checkout to open, or the plan after cancelling.
{
"ok": true,
"checkoutUrl": "https://www.mollie.com/checkout/…"
}400 plan or redirectUrl missing.
{
"error": "plan and redirectUrl required"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}403 A test key (pk_test_…) on a call that needs the live key.
{
"error": "This call is not available with a test key (pk_test_…). Use your live key."
}405 Wrong HTTP method.
{
"error": "POST only"
}422 The plan cannot be started.
{
"ok": false,
"error": "Save your company details first"
}503 Paid plans are switched off.
{
"ok": false,
"error": "Paid plans are not available yet"
}Lookups
GET /api/v1/peppol/lookup Is a company on Peppol?
/api/v1/peppol/lookup Is a company on Peppol?Looks a company up in the public Peppol network (SML and SMP): can it receive invoices, under which participant ID, at which SMP, for which document types. Give vat (a Belgian or Dutch VAT number: the usual IDs are tried) or id (any participant ID). Answers are cached for 6 hours. At most 20 lookups a minute per key. A test key asks the real network too: a lookup only reads public data and sends nothing.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/peppol/lookup?vat=BE0403170701" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/peppol/lookup?vat=BE0403170701", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/peppol/lookup?vat=BE0403170701');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/peppol/lookup?vat=BE0403170701",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
vat | string · query | A Belgian (BE…) or Dutch (NL…) VAT number. Not together with id. | |
id | string · query | A Peppol participant ID "<scheme>:<value>". Not together with vat. |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
reachable | boolean | yesrequired | The company can receive invoices over Peppol under one of the IDs. |
participantId | string | null | yesrequired | The ID to send to: the first that receives invoices, else the first registered one; null when none is registered. |
checked | object | object | object[] | yesrequired | Each ID that was tried. A VAT number tries the usual IDs: BE 0208:<enterprise number> and 9925:BE…, NL 9944:NL…. |
checked[].participantId | string | yesrequired | |
checked[].registered | boolean | yesrequired | Always true |
checked[].accessPointSmp | string | yesrequired | The SMP host that publishes the ID (its access point's). |
checked[].receivesInvoices | boolean | yesrequired | Accepts Peppol BIS Billing 3.0 invoices. |
checked[].receivesCreditNotes | boolean | yesrequired | |
checked[].documentTypes | string[] | Every document type ID the SMP publishes for the ID, as written there. | |
test | boolean | Only present on answers to a test key (pk_test_…). Always true |
Responses
200 The answer; reachable false when no ID receives invoices.
{
"reachable": true,
"participantId": "0208:0202239951",
"checked": [
{
"participantId": "0208:0202239951",
"registered": true,
"accessPointSmp": "smp.example.eu",
"receivesInvoices": true,
"receivesCreditNotes": true,
"documentTypes": [
"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0::2.1",
"urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2::CreditNote##urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0::2.1"
]
},
{
"participantId": "9925:BE0202239951",
"registered": false
}
],
"test": true
}400 Neither or both of vat and id, an id that is not a participant ID, or a VAT number that is not valid or not Belgian or Dutch.
{
"error": "Give either vat or id, not both."
}401 The key is missing or not valid.
{
"error": "Missing API key"
}429 More than 20 lookups of this kind in a minute with this key. Wait retryAfter seconds (Retry-After header).
{
"error": "Too many lookups in the last minute. Try again after retryAfter seconds.",
"retryAfter": 42
}503 The SML or the SMP did not answer, so the answer is unknown (never shown as not on Peppol).
{
"error": "The Peppol network could not be reached. Try again after retryAfter seconds.",
"retryAfter": 60
}GET /api/v1/vat/check Check a VAT number in VIES
/api/v1/vat/check Check a VAT number in VIESChecks an EU VAT number in the European Commission's VIES service: valid or not, the registered name and address when the member state discloses them, and VIES's time stamp. Answers are cached for 10 minutes. At most 20 checks a minute per key. A test key asks the real VIES too: a check only reads public data.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/vat/check?vat=BE0403170701" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/vat/check?vat=BE0403170701", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/vat/check?vat=BE0403170701');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/vat/check?vat=BE0403170701",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
vat | string · query | yesrequired | The VAT number with its two-letter prefix; spaces and dots are fine. |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
vatNumber | string | yesrequired | The number as VIES knows it, with its prefix (EL for Greece). |
valid | boolean | yesrequired | |
status | string | yesrequired | One of: "valid", "invalid" |
name | string | null | yesrequired | The registered name, when the member state discloses it. |
address | string | null | yesrequired | The registered address, when the member state discloses it. |
checkedAt | string | null (date-time) | yesrequired | VIES's time stamp of the check: keep it as proof. Answers are cached for 10 minutes, so it can be up to 10 minutes old. |
test | boolean | Only present on answers to a test key (pk_test_…). Always true |
Responses
200 The VIES answer.
{
"vatNumber": "BE0202239951",
"valid": true,
"status": "valid",
"name": "BV VELO ATELIER",
"address": "Dorpsstraat 1\n9000 Gent",
"checkedAt": "2026-11-18T10:00:00.000+01:00",
"test": true
}400 vat is missing or not in the format of its country.
{
"error": "Not a valid VAT number: \"12\" is not a valid BE VAT number format",
"status": "syntax_error"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}429 More than 20 lookups of this kind in a minute with this key. Wait retryAfter seconds (Retry-After header).
{
"error": "Too many lookups in the last minute. Try again after retryAfter seconds.",
"retryAfter": 42
}503 VIES or the member state's service is down (this happens, mostly at night and in weekends). Try again later.
{
"error": "VIES or the member state's service is not answering right now. Try again after retryAfter seconds.",
"status": "unavailable",
"reason": "MS_UNAVAILABLE",
"retryAfter": 60
}Received invoices
GET /api/v1/received List received invoices
/api/v1/received List received invoicesThe invoices and credit notes your suppliers sent you over Peppol, newest issue date first, 50 a page. Receiving works for Belgian shops connected to SUPER PDP; receiving says whether the shop receives through PeppolKit. A shop that does not gets an empty list. A test key reads the test environment, which never receives: an empty list with receiving false.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/received" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/received", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/received');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/received",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
from | string (date) · query | Earliest issue date (inclusive). | |
to | string (date) · query | Latest issue date (inclusive). | |
page | integer · query | A page past the last gives the last page. |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
receiving | boolean | yesrequired | The shop receives Peppol invoices through PeppolKit. |
total | integer | yesrequired | Documents matching from/to. |
page | integer | yesrequired | |
pageCount | integer | yesrequired | |
pageSize | integer | yesrequired | Always 50 |
received | object[] | yesrequired | |
received[].number | string | yesrequired | |
received[].type | string | yesrequired | One of: "invoice", "credit_note" |
received[].issueDate | string | yesrequired | |
received[].dueDate | string | null | yesrequired | |
received[].supplier | object | yesrequired | |
received[].supplier.name | string | yesrequired | |
received[].supplier.vatNumber | string | null | yesrequired | |
received[].total | number | null | yesrequired | |
received[].totalNet | number | null | yesrequired | |
received[].totalVat | number | null | yesrequired | |
received[].currency | string | yesrequired | |
received[].receivedAt | string (date-time) | yesrequired | |
received[].id | string | yesrequired | |
received[].originalType | string | yesrequired | xml: UBL or CII; pdf: a Factur-X PDF. One of: "xml", "pdf" |
received[].originalUrl | string (uri) | yesrequired | GET /received/{id}/original: the file as it arrived, the legal document. |
received[].pdfUrl | string | null (uri) | yesrequired | GET /received/{id}/pdf: a readable PDF; null when there is none. |
received[].forwardedToAccountingAt | string | null (date-time) | Only in GET /received/{id}: when it went to the bookkeeping inbox. | |
test | boolean | Only present on answers to a test key (pk_test_…). Always true |
Responses
200 One page.
{
"receiving": true,
"total": 1,
"page": 1,
"pageCount": 1,
"pageSize": 50,
"received": [
{
"id": "cmx0r3c9e0001abcd1234efgh",
"number": "F2026-118",
"type": "invoice",
"issueDate": "2026-11-17",
"dueDate": "2026-12-17",
"supplier": {
"name": "Leverancier NV",
"vatNumber": "BE0123456749"
},
"total": 242,
"totalNet": 200,
"totalVat": 42,
"currency": "EUR",
"receivedAt": "2026-11-18T09:12:00.000Z",
"originalType": "xml",
"originalUrl": "https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh/original",
"pdfUrl": "https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh/pdf"
}
]
}400 from or to is not a date YYYY-MM-DD, from is after to, or page is not a whole number from 1.
{
"error": "from must be a date YYYY-MM-DD."
}401 The key is missing or not valid.
{
"error": "Missing API key"
}GET /api/v1/received/{id} Get one received invoice
/api/v1/received/{id} Get one received invoiceOne received document, as in GET /received, plus when it was forwarded to your bookkeeping inbox.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | string · path | yesrequired | The id from GET /received. |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
number | string | yesrequired | |
type | string | yesrequired | One of: "invoice", "credit_note" |
issueDate | string | yesrequired | |
dueDate | string | null | yesrequired | |
supplier | object | yesrequired | |
supplier.name | string | yesrequired | |
supplier.vatNumber | string | null | yesrequired | |
total | number | null | yesrequired | |
totalNet | number | null | yesrequired | |
totalVat | number | null | yesrequired | |
currency | string | yesrequired | |
receivedAt | string (date-time) | yesrequired | |
id | string | yesrequired | |
originalType | string | yesrequired | xml: UBL or CII; pdf: a Factur-X PDF. One of: "xml", "pdf" |
originalUrl | string (uri) | yesrequired | GET /received/{id}/original: the file as it arrived, the legal document. |
pdfUrl | string | null (uri) | yesrequired | GET /received/{id}/pdf: a readable PDF; null when there is none. |
forwardedToAccountingAt | string | null (date-time) | Only in GET /received/{id}: when it went to the bookkeeping inbox. |
Responses
200 The document.
{
"id": "cmx0r3c9e0001abcd1234efgh",
"number": "F2026-118",
"type": "invoice",
"issueDate": "2026-11-17",
"dueDate": "2026-12-17",
"supplier": {
"name": "Leverancier NV",
"vatNumber": "BE0123456749"
},
"total": 242,
"totalNet": 200,
"totalVat": 42,
"currency": "EUR",
"receivedAt": "2026-11-18T09:12:00.000Z",
"originalType": "xml",
"originalUrl": "https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh/original",
"pdfUrl": "https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh/pdf",
"forwardedToAccountingAt": "2026-11-18T09:12:05.000Z"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}404 No received document with this id in this shop.
{
"error": "Received invoice not found"
}GET /api/v1/received/{id}/original Download the original file
/api/v1/received/{id}/original Download the original fileThe file as your supplier sent it, the legal document: the UBL or CII XML (originalType xml), or a Factur-X PDF (originalType pdf).
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh/original" \
-H "Authorization: Bearer pk_test_your_key" \
-o cmx0r3c9e0001abcd1234efgh-originalJavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh/original", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const file = await res.blob();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh/original');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
file_put_contents('cmx0r3c9e0001abcd1234efgh-original', curl_exec($ch));Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh/original",
headers={"Authorization": "Bearer pk_test_your_key"},
)
open("cmx0r3c9e0001abcd1234efgh-original", "wb").write(res.content)Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | string · path | yesrequired | The id from GET /received. |
Responses
200 The file.
application/xml, application/pdf
401 The key is missing or not valid.
{
"error": "Missing API key"
}404 No received document with this id in this shop.
{
"error": "Received invoice not found"
}GET /api/v1/received/{id}/pdf Download a readable PDF
/api/v1/received/{id}/pdf Download a readable PDFA PDF of the received document: the original when it is one, otherwise rendered by SUPER PDP. 404 when there is none (pdfUrl is null then).
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh/pdf" \
-H "Authorization: Bearer pk_test_your_key" \
-o cmx0r3c9e0001abcd1234efgh.pdfJavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh/pdf", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const file = await res.blob();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh/pdf');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
file_put_contents('cmx0r3c9e0001abcd1234efgh.pdf', curl_exec($ch));Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/received/cmx0r3c9e0001abcd1234efgh/pdf",
headers={"Authorization": "Bearer pk_test_your_key"},
)
open("cmx0r3c9e0001abcd1234efgh.pdf", "wb").write(res.content)Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | string · path | yesrequired | The id from GET /received. |
Responses
200 The PDF.
application/pdf
401 The key is missing or not valid.
{
"error": "Missing API key"
}404 No received document with this id in this shop, or it has no PDF.
{
"error": "This received invoice has no PDF; get the original"
}POST /api/v1/received/test Receive a test invoice
/api/v1/received/test Receive a test invoiceTest key only: a made-up purchase invoice (Leverancier Test BV, EUR 121.00) arrives in your test environment and the invoice.received webhook goes out with test: true, to your webhook and to Zapier and Make subscriptions. At most 10 in 10 minutes.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/received/test" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/received/test", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/received/test');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/received/test",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Always true |
test | boolean | yesrequired | Only present on answers to a test key (pk_test_…). Always true |
received | object | yesrequired |
Responses
200 Received in the test environment.
{
"ok": true,
"test": true,
"received": {
"id": "cmx0r3c9e0001abcd1234efgh",
"number": "TEST-IN-0001",
"type": "invoice",
"issueDate": "2026-11-22",
"dueDate": "2026-12-22",
"supplier": {
"name": "Leverancier Test BV",
"vatNumber": "BE0000000097"
},
"total": 121,
"totalNet": 100,
"totalVat": 21,
"currency": "EUR",
"receivedAt": "2026-11-22T10:00:00.000Z"
}
}401 The key is missing or not valid.
{
"error": "Missing API key"
}403 A live key.
{
"error": "Only with a test key (pk_test_…): a live shop receives real invoices over Peppol."
}405 Wrong HTTP method.
{
"error": "POST only"
}429 Too many test invoices.
{
"error": "Too many test invoices, try again in a few minutes"
}Webhooks
GET /api/v1/webhook Get the webhook
/api/v1/webhook Get the webhookThe shop's webhook endpoint, or null. The signing secret is never returned here.
Try it
Works with your live key only; a test key gets 403.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/webhook" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/webhook", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/webhook');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/webhook",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
webhook | object | null | yesrequired | |
webhook.url | string (uri) | yesrequired | |
webhook.events | string[] | yesrequired | |
webhook.enabled | boolean | yesrequired | |
webhook.createdAt | string (date-time) | yesrequired |
Responses
200 The endpoint.
{
"webhook": {
"url": "https://jouwserver.example/peppolkit",
"events": [
"invoice.created",
"invoice.failed"
],
"enabled": true,
"createdAt": "2026-11-18T10:00:00.000Z"
}
}401 The key is missing or not valid.
{
"error": "Missing API key"
}403 A test key (pk_test_…) on a call that needs the live key.
{
"error": "This call is not available with a test key (pk_test_…). Use your live key."
}PUT /api/v1/webhook Set the webhook
/api/v1/webhook Set the webhookMakes or changes the endpoint: an https address on the public internet. events left out means all of them. secret is in the answer only when this call made the endpoint, or with rotateSecret: true. Test-key events go to this same endpoint, with test: true.
Try it
Works with your live key only; a test key gets 403.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X PUT "https://app.peppolkit.com/api/v1/webhook" \
-H "Authorization: Bearer pk_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://jouwserver.example/peppolkit",
"events": [
"invoice.created",
"invoice.failed"
],
"enabled": true
}'JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/webhook", {
method: "PUT",
headers: {
Authorization: "Bearer pk_test_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "https://jouwserver.example/peppolkit",
"events": [
"invoice.created",
"invoice.failed"
],
"enabled": true
}),
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/webhook');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"url": "https://jouwserver.example/peppolkit",
"events": [
"invoice.created",
"invoice.failed"
],
"enabled": true
}
JSON,
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.put(
"https://app.peppolkit.com/api/v1/webhook",
headers={"Authorization": "Bearer pk_test_your_key"},
json={
"url": "https://jouwserver.example/peppolkit",
"events": ["invoice.created", "invoice.failed"],
"enabled": True,
},
)
data = res.json()Schema
Request body
| Field | Type | Required | Description |
|---|---|---|---|
url | string (uri) | yesrequired | |
events | string[] | ||
enabled | boolean | ||
rotateSecret | boolean |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Always true |
webhook | object | yesrequired | |
webhook.url | string (uri) | yesrequired | |
webhook.events | string[] | yesrequired | |
webhook.enabled | boolean | yesrequired | |
webhook.createdAt | string (date-time) | yesrequired | |
secret | string | whsec_…, shown once. |
Responses
200 Saved.
{
"ok": true,
"webhook": {
"url": "https://jouwserver.example/peppolkit",
"events": [
"invoice.created",
"invoice.failed"
],
"enabled": true,
"createdAt": "2026-11-18T10:00:00.000Z"
},
"secret": "whsec_…"
}400 The body is not JSON.
{
"error": "Body must be JSON"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}403 A test key (pk_test_…) on a call that needs the live key.
{
"error": "This call is not available with a test key (pk_test_…). Use your live key."
}405 Wrong HTTP method.
{
"error": "PUT or DELETE only"
}422 The address or the events are not valid.
{
"ok": false,
"error": "url must start with https://"
}DELETE /api/v1/webhook Remove the webhook
/api/v1/webhook Remove the webhookRemoves the endpoint with its delivery log.
Try it
Works with your live key only; a test key gets 403.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X DELETE "https://app.peppolkit.com/api/v1/webhook" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/webhook", {
method: "DELETE",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/webhook');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.delete(
"https://app.peppolkit.com/api/v1/webhook",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Always true |
deleted | boolean | yesrequired | false: there was none. |
Responses
200 Removed.
{
"ok": true,
"deleted": true
}401 The key is missing or not valid.
{
"error": "Missing API key"
}403 A test key (pk_test_…) on a call that needs the live key.
{
"error": "This call is not available with a test key (pk_test_…). Use your live key."
}GET /api/v1/hooks List subscriptions
/api/v1/hooks List subscriptionsThe subscriptions automation tools made (Zapier, Make). Your own webhook is not in this list.
Try it
Works with your live key only; a test key gets 403.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/hooks" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/hooks", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/hooks');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/hooks",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
hooks | object[] | yesrequired | |
hooks[].id | string | yesrequired | |
hooks[].url | string (uri) | yesrequired | |
hooks[].events | string[] | yesrequired | |
hooks[].source | string | yesrequired | One of: "zapier", "make", "other" |
hooks[].createdAt | string (date-time) | yesrequired |
Responses
200 The subscriptions.
{
"hooks": [
{
"id": "cm3hook",
"url": "https://hooks.zapier.com/hooks/standard/1/abc/",
"events": [
"invoice.created"
],
"source": "zapier",
"createdAt": "2026-11-21T22:00:00.000Z"
}
]
}401 The key is missing or not valid.
{
"error": "Missing API key"
}403 A test key (pk_test_…) on a call that needs the live key.
{
"error": "This call is not available with a test key (pk_test_…). Use your live key."
}POST /api/v1/hooks Subscribe an automation tool
/api/v1/hooks Subscribe an automation toolFor Zapier, Make and similar tools: one subscription per Zap or scenario, next to your own webhook, with the same events, body and signature. events left out means all of them. The same url again gives the existing subscription (200). An address that answers 410 Gone is unsubscribed. At most 50 per shop.
Try it
Works with your live key only; a test key gets 403.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/hooks" \
-H "Authorization: Bearer pk_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"url": "https://hooks.zapier.com/hooks/standard/1/abc/",
"events": [
"invoice.created"
],
"source": "zapier"
}'JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/hooks", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
"url": "https://hooks.zapier.com/hooks/standard/1/abc/",
"events": [
"invoice.created"
],
"source": "zapier"
}),
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/hooks');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"url": "https://hooks.zapier.com/hooks/standard/1/abc/",
"events": [
"invoice.created"
],
"source": "zapier"
}
JSON,
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/hooks",
headers={"Authorization": "Bearer pk_test_your_key"},
json={
"url": "https://hooks.zapier.com/hooks/standard/1/abc/",
"events": ["invoice.created"],
"source": "zapier",
},
)
data = res.json()Schema
Request body
| Field | Type | Required | Description |
|---|---|---|---|
url | string (uri) | yesrequired | |
events | string[] | ||
source | string | One of: "zapier", "make", "other" |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Always true |
hook | object | yesrequired | |
hook.id | string | yesrequired | |
hook.url | string (uri) | yesrequired | |
hook.events | string[] | yesrequired | |
hook.source | string | yesrequired | One of: "zapier", "make", "other" |
hook.createdAt | string (date-time) | yesrequired |
Response 201
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Always true |
hook | object | yesrequired | |
hook.id | string | yesrequired | |
hook.url | string (uri) | yesrequired | |
hook.events | string[] | yesrequired | |
hook.source | string | yesrequired | One of: "zapier", "make", "other" |
hook.createdAt | string (date-time) | yesrequired |
Responses
200 Already subscribed.
{
"ok": true,
"hook": {
"id": "cm3hook",
"url": "https://hooks.zapier.com/hooks/standard/1/abc/",
"events": [
"invoice.created"
],
"source": "zapier",
"createdAt": "2026-11-21T22:00:00.000Z"
}
}201 Subscribed.
{
"ok": true,
"hook": {
"id": "cm3hook",
"url": "https://hooks.zapier.com/hooks/standard/1/abc/",
"events": [
"invoice.created"
],
"source": "zapier",
"createdAt": "2026-11-21T22:00:00.000Z"
}
}400 The body is not JSON.
{
"error": "Body must be JSON"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}403 A test key (pk_test_…) on a call that needs the live key.
{
"error": "This call is not available with a test key (pk_test_…). Use your live key."
}405 Wrong HTTP method.
{
"error": "POST only"
}422 The address or the events are not valid.
{
"ok": false,
"error": "url must start with https://"
}GET /api/v1/hooks/events Latest events of one type
/api/v1/hooks/events Latest events of one typeThe latest events of one type that were sent to your webhook or to the subscriptions of automation tools, newest first, each exactly the body that was sent (test documents included, with test: true). Zapier and Make use it to show real examples while you set up a Zap or scenario.
Try it
Works with your live key only; a test key gets 403.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl "https://app.peppolkit.com/api/v1/hooks/events" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/hooks/events", {
method: "GET",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/hooks/events');
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.get(
"https://app.peppolkit.com/api/v1/hooks/events",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
type | string · query | yesrequired | One of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received" |
limit | integer · query |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
events | object[] | yesrequired |
Responses
200 The events, newest first; empty when there are none yet.
{
"events": [
{
"id": "evt_0f3c2b1a",
"type": "invoice.delivered",
"created": "2026-11-22T09:06:31.000Z",
"shop": "winkel.example",
"data": {
"number": "2026-00042",
"type": "invoice",
"peppolStatus": "delivered"
}
}
]
}400 type or limit is not valid.
{
"error": "type must be one of invoice.created, credit_note.created, invoice.delivered, invoice.failed, invoice.received"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}403 A test key (pk_test_…) on a call that needs the live key.
{
"error": "This call is not available with a test key (pk_test_…). Use your live key."
}DELETE /api/v1/hooks/{id} Unsubscribe an automation tool
/api/v1/hooks/{id} Unsubscribe an automation toolRemoves one subscription. Your own webhook is never removed this way.
Try it
Works with your live key only; a test key gets 403.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X DELETE "https://app.peppolkit.com/api/v1/hooks/" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/hooks/", {
method: "DELETE",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/hooks/');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.delete(
"https://app.peppolkit.com/api/v1/hooks/",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
id | string · path | yesrequired |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Always true |
deleted | boolean | yesrequired | false: there was no such subscription. |
Responses
200 Removed.
{
"ok": true,
"deleted": true
}401 The key is missing or not valid.
{
"error": "Missing API key"
}403 A test key (pk_test_…) on a call that needs the live key.
{
"error": "This call is not available with a test key (pk_test_…). Use your live key."
}405 Wrong HTTP method.
{
"error": "DELETE only"
}POST /api/v1/webhook/test Send a test event
/api/v1/webhook/test Send a test eventSends one webhook.test event to the endpoint now, not retried, also while it is switched off. With a test key it goes to the same endpoint with test: true. httpStatus is your server's answer. At most 10 in 10 minutes.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/webhook/test" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/webhook/test", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/webhook/test');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/webhook/test",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Your server answered 2xx. |
test | boolean | Only present on answers to a test key (pk_test_…). Always true | |
httpStatus | integer | null | yesrequired | |
error | string | null | yesrequired |
Responses
200 Sent; ok says whether your server took it.
{
"ok": true,
"test": true,
"httpStatus": 200,
"error": null
}401 The key is missing or not valid.
{
"error": "Missing API key"
}404 There is no endpoint yet.
{
"ok": false,
"test": true,
"error": "No webhook endpoint yet. Set one with PUT /api/v1/webhook (live key) or in the dashboard under API, Webhooks."
}405 Wrong HTTP method.
{
"error": "POST only"
}429 Too many test events.
{
"error": "Too many test events, try again in a few minutes"
}Connection
POST /api/v1/connect Connect a shop (plugins)
/api/v1/connect Connect a shop (plugins)Called once by a plugin when the merchant connects: returns the shop's API key. A shop that is already known only gets a new key with its current key in the Authorization header, or after the owner confirmed by mail (409 until then, with a message to show as it is). At most 10 an hour per address.
Try it
Works with your live key only; a test key gets 403.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/connect" \
-H "Authorization: Bearer pk_test_your_key" \
-H "Content-Type: application/json" \
-d '{
"platform": "woocommerce",
"siteUrl": "https://winkel.example",
"email": "eigenaar@winkel.example"
}'JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/connect", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
"Content-Type": "application/json",
},
body: JSON.stringify({
"platform": "woocommerce",
"siteUrl": "https://winkel.example",
"email": "eigenaar@winkel.example"
}),
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/connect');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => <<<'JSON'
{
"platform": "woocommerce",
"siteUrl": "https://winkel.example",
"email": "eigenaar@winkel.example"
}
JSON,
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/connect",
headers={"Authorization": "Bearer pk_test_your_key"},
json={
"platform": "woocommerce",
"siteUrl": "https://winkel.example",
"email": "eigenaar@winkel.example",
},
)
data = res.json()Schema
Request body
| Field | Type | Required | Description |
|---|---|---|---|
platform | string | yesrequired | One of: "woocommerce", "lightspeed", "prestashop", "magento", "drupal", "opencart", "joomla" |
siteUrl | string (uri) | yesrequired | The shop's http(s) address. |
email | string (email) |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
shop | string | yesrequired | |
apiKey | string | yesrequired | pk_…, returned only here. |
Responses
200 Connected.
{
"shop": "woo:winkel.example",
"apiKey": "pk_…"
}400 The body is not valid.
{
"error": "siteUrl: Invalid url"
}405 Wrong HTTP method.
{
"error": "POST only"
}409 The shop is already connected.
{
"error": "Deze winkel is al gekoppeld. We hebben een bevestigingsmail gestuurd naar e***@winkel.example.",
"code": "confirm_by_email"
}429 Too many connections from this address.
{
"error": "Too many connections, try again later"
}POST /api/v1/dashboard-link Get a dashboard sign-in link
/api/v1/dashboard-link Get a dashboard sign-in linkA one-click sign-in to the web dashboard, valid for 5 minutes. page (optional) is the dashboard page to open, e.g. settings.
Try it
Works with your live key only; a test key gets 403.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/dashboard-link" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/dashboard-link", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/dashboard-link');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/dashboard-link",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
page | string · query |
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
url | string (uri) | yesrequired |
Responses
200 The link.
{
"url": "https://app.peppolkit.com/d/login?t=…"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}403 A test key (pk_test_…) on a call that needs the live key.
{
"error": "This call is not available with a test key (pk_test_…). Use your live key."
}405 Wrong HTTP method.
{
"error": "POST only"
}POST /api/v1/disconnect Disconnect the shop
/api/v1/disconnect Disconnect the shopCalled by a plugin when the merchant disconnects or removes it. The shop's data is deleted 30 days later unless it connects again.
Try it
Works with your live key only; a test key gets 403.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/disconnect" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/disconnect", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/disconnect');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/disconnect",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
ok | boolean | yesrequired | Always true |
purgeAt | string (date-time) | yesrequired |
Responses
200 Disconnected.
{
"ok": true,
"purgeAt": "2026-12-18T10:00:00.000Z"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}403 A test key (pk_test_…) on a call that needs the live key.
{
"error": "This call is not available with a test key (pk_test_…). Use your live key."
}405 Wrong HTTP method.
{
"error": "POST only"
}POST /api/v1/peppol Register at the old access point
/api/v1/peppol Register at the old access pointDeprecated.
No longer used: Peppol is connected in the dashboard. Kept for the first WooCommerce plugin versions, and always answers unavailable.
Try it
Works with a test key.
You are using your live key. This call does it for real. Click once more to send.
The Send button needs JavaScript. Without it, use the code samples.
Code samples
curl
curl -X POST "https://app.peppolkit.com/api/v1/peppol" \
-H "Authorization: Bearer pk_test_your_key"JavaScript
const res = await fetch("https://app.peppolkit.com/api/v1/peppol", {
method: "POST",
headers: {
Authorization: "Bearer pk_test_your_key",
},
});
const data = await res.json();PHP
<?php
$ch = curl_init('https://app.peppolkit.com/api/v1/peppol');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer pk_test_your_key'],
CURLOPT_RETURNTRANSFER => true,
]);
$data = json_decode(curl_exec($ch), true);Python
import requests
res = requests.post(
"https://app.peppolkit.com/api/v1/peppol",
headers={"Authorization": "Bearer pk_test_your_key"},
)
data = res.json()Schema
Response 200
| Field | Type | Required | Description |
|---|---|---|---|
status | string | yesrequired | Always "unavailable" |
Responses
200 Always this.
{
"status": "unavailable"
}401 The key is missing or not valid.
{
"error": "Missing API key"
}405 Wrong HTTP method.
{
"error": "POST only"
}Webhook events
When you have set a webhook, PeppolKit sends a POST with JSON to your address for each of these events. How to check the signature is on PeppolKit webhooks.
POST invoice.created An invoice was made
invoice.created An invoice was madedata is the invoice as GET /invoices gives it.
{
"id": "evt_c1aa45148e3a990f7151aa9d42689128",
"type": "invoice.created",
"created": "2026-11-18T10:00:00.000Z",
"shop": "api:veloatelier.be",
"test": true,
"data": {
"number": "TEST-2026-00001",
"type": "invoice",
"orderId": "1001",
"issueDate": "2026-11-18",
"total": 121,
"currency": "EUR",
"peppolStatus": "pending",
"emailedAt": null,
"emailTo": null,
"emailError": null,
"pdfUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…",
"ublUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…?format=xml",
"warnings": [],
"test": true
}
}Headers
| Field | Type | Required | Description |
|---|---|---|---|
PeppolKit-Event | string | yesrequired | Always "invoice.created" |
PeppolKit-Delivery | string | yesrequired | The id of this delivery; a retry has the same id. |
PeppolKit-Signature | string | yesrequired |
Event body
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yesrequired | The same event always has the same id: use it to skip doubles. |
type | string | yesrequired | One of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received", "webhook.test" |
created | string (date-time) | yesrequired | |
shop | string | yesrequired | |
test | boolean | Only on events of the test environment. Always true | |
data | object | yesrequired | |
data.number | string | yesrequired | The invoice number. Test documents: TEST-2026-00001 and on. |
data.type | string | yesrequired | One of: "invoice", "credit_note" |
data.orderId | string | yesrequired | The order id you sent; a credit note has "<order id>/refund/<refund id>". |
data.issueDate | string (date) | yesrequired | |
data.total | number | yesrequired | Total including VAT, in the currency. |
data.currency | string | yesrequired | |
data.peppolStatus | string | null | yesrequired | How the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol" |
data.emailedAt | string | null (date-time) | yesrequired | When the document was mailed to the customer. |
data.emailTo | string | null | yesrequired | |
data.emailError | string | null | yesrequired | Why the mail did not go out, when it did not. |
data.pdfUrl | string (uri) | yesrequired | |
data.ublUrl | string (uri) | yesrequired | |
data.warnings | string[] | yesrequired | Points to check (VAT, VIES), in the language of ?lang=. |
data.test | boolean | Only present on answers to a test key (pk_test_…). Always true |
POST credit_note.created A credit note was made
credit_note.created A credit note was madedata is the credit note as GET /invoices gives it.
{
"id": "evt_8d1f…",
"type": "credit_note.created",
"created": "2026-11-20T13:00:00.000Z",
"shop": "api:veloatelier.be",
"data": {
"number": "2026-00043",
"type": "credit_note",
"orderId": "1001/refund/7001",
"issueDate": "2026-11-20",
"total": 121,
"currency": "EUR",
"peppolStatus": "pending",
"emailedAt": null,
"emailTo": null,
"emailError": null,
"pdfUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…",
"ublUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…?format=xml",
"warnings": []
}
}Headers
| Field | Type | Required | Description |
|---|---|---|---|
PeppolKit-Event | string | yesrequired | Always "credit_note.created" |
PeppolKit-Delivery | string | yesrequired | The id of this delivery; a retry has the same id. |
PeppolKit-Signature | string | yesrequired |
Event body
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yesrequired | The same event always has the same id: use it to skip doubles. |
type | string | yesrequired | One of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received", "webhook.test" |
created | string (date-time) | yesrequired | |
shop | string | yesrequired | |
test | boolean | Only on events of the test environment. Always true | |
data | object | yesrequired | |
data.number | string | yesrequired | The invoice number. Test documents: TEST-2026-00001 and on. |
data.type | string | yesrequired | One of: "invoice", "credit_note" |
data.orderId | string | yesrequired | The order id you sent; a credit note has "<order id>/refund/<refund id>". |
data.issueDate | string (date) | yesrequired | |
data.total | number | yesrequired | Total including VAT, in the currency. |
data.currency | string | yesrequired | |
data.peppolStatus | string | null | yesrequired | How the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol" |
data.emailedAt | string | null (date-time) | yesrequired | When the document was mailed to the customer. |
data.emailTo | string | null | yesrequired | |
data.emailError | string | null | yesrequired | Why the mail did not go out, when it did not. |
data.pdfUrl | string (uri) | yesrequired | |
data.ublUrl | string (uri) | yesrequired | |
data.warnings | string[] | yesrequired | Points to check (VAT, VIES), in the language of ?lang=. |
data.test | boolean | Only present on answers to a test key (pk_test_…). Always true |
POST invoice.delivered Peppol delivery confirmed
invoice.delivered Peppol delivery confirmedThe customer's access point confirmed the delivery. Also for credit notes: data.type says which it is.
{
"id": "evt_2b9e…",
"type": "invoice.delivered",
"created": "2026-11-18T10:00:30.000Z",
"shop": "api:veloatelier.be",
"test": true,
"data": {
"number": "TEST-2026-00001",
"type": "invoice",
"orderId": "1001",
"issueDate": "2026-11-18",
"total": 121,
"currency": "EUR",
"peppolStatus": "delivered",
"emailedAt": null,
"emailTo": null,
"emailError": null,
"pdfUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…",
"ublUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…?format=xml",
"warnings": [],
"test": true
}
}Headers
| Field | Type | Required | Description |
|---|---|---|---|
PeppolKit-Event | string | yesrequired | Always "invoice.delivered" |
PeppolKit-Delivery | string | yesrequired | The id of this delivery; a retry has the same id. |
PeppolKit-Signature | string | yesrequired |
Event body
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yesrequired | The same event always has the same id: use it to skip doubles. |
type | string | yesrequired | One of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received", "webhook.test" |
created | string (date-time) | yesrequired | |
shop | string | yesrequired | |
test | boolean | Only on events of the test environment. Always true | |
data | object | yesrequired | |
data.number | string | yesrequired | The invoice number. Test documents: TEST-2026-00001 and on. |
data.type | string | yesrequired | One of: "invoice", "credit_note" |
data.orderId | string | yesrequired | The order id you sent; a credit note has "<order id>/refund/<refund id>". |
data.issueDate | string (date) | yesrequired | |
data.total | number | yesrequired | Total including VAT, in the currency. |
data.currency | string | yesrequired | |
data.peppolStatus | string | null | yesrequired | How the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol" |
data.emailedAt | string | null (date-time) | yesrequired | When the document was mailed to the customer. |
data.emailTo | string | null | yesrequired | |
data.emailError | string | null | yesrequired | Why the mail did not go out, when it did not. |
data.pdfUrl | string (uri) | yesrequired | |
data.ublUrl | string (uri) | yesrequired | |
data.warnings | string[] | yesrequired | Points to check (VAT, VIES), in the language of ?lang=. |
data.test | boolean | Only present on answers to a test key (pk_test_…). Always true |
POST invoice.failed Peppol delivery failed
invoice.failed Peppol delivery failedPeppol refused the document; peppolError says why, as the dashboard shows it.
{
"id": "evt_77c0…",
"type": "invoice.failed",
"created": "2026-11-18T10:00:30.000Z",
"shop": "api:veloatelier.be",
"test": true,
"data": {
"number": "TEST-2026-00001",
"type": "invoice",
"orderId": "1001",
"issueDate": "2026-11-18",
"total": 121,
"currency": "EUR",
"peppolStatus": "failed",
"emailedAt": null,
"emailTo": null,
"emailError": null,
"pdfUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…",
"ublUrl": "https://app.peppolkit.com/i/cmwmju0je0000ru9mzgqsb0xk.1797624213.qwA1qR_poEsHC5gzm18L…?format=xml",
"warnings": [],
"test": true,
"peppolError": "Rejected by the receiver (test)"
}
}Headers
| Field | Type | Required | Description |
|---|---|---|---|
PeppolKit-Event | string | yesrequired | Always "invoice.failed" |
PeppolKit-Delivery | string | yesrequired | The id of this delivery; a retry has the same id. |
PeppolKit-Signature | string | yesrequired |
Event body
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yesrequired | The same event always has the same id: use it to skip doubles. |
type | string | yesrequired | One of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received", "webhook.test" |
created | string (date-time) | yesrequired | |
shop | string | yesrequired | |
test | boolean | Only on events of the test environment. Always true | |
data | object | yesrequired | |
data.number | string | yesrequired | The invoice number. Test documents: TEST-2026-00001 and on. |
data.type | string | yesrequired | One of: "invoice", "credit_note" |
data.orderId | string | yesrequired | The order id you sent; a credit note has "<order id>/refund/<refund id>". |
data.issueDate | string (date) | yesrequired | |
data.total | number | yesrequired | Total including VAT, in the currency. |
data.currency | string | yesrequired | |
data.peppolStatus | string | null | yesrequired | How the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol" |
data.emailedAt | string | null (date-time) | yesrequired | When the document was mailed to the customer. |
data.emailTo | string | null | yesrequired | |
data.emailError | string | null | yesrequired | Why the mail did not go out, when it did not. |
data.pdfUrl | string (uri) | yesrequired | |
data.ublUrl | string (uri) | yesrequired | |
data.warnings | string[] | yesrequired | Points to check (VAT, VIES), in the language of ?lang=. |
data.test | boolean | Only present on answers to a test key (pk_test_…). Always true | |
data.peppolError | string |
POST invoice.received A Peppol invoice arrived
invoice.received A Peppol invoice arrivedA supplier's invoice or credit note arrived over Peppol (Belgian shops on SUPER PDP). The facts, not the file: that stays in the dashboard.
{
"id": "evt_41aa…",
"type": "invoice.received",
"created": "2026-11-18T09:12:00.000Z",
"shop": "api:veloatelier.be",
"data": {
"number": "F2026-118",
"type": "invoice",
"issueDate": "2026-11-17",
"dueDate": "2026-12-17",
"supplier": {
"name": "Leverancier NV",
"vatNumber": "BE0123456749"
},
"total": 242,
"totalNet": 200,
"totalVat": 42,
"currency": "EUR",
"receivedAt": "2026-11-18T09:12:00.000Z"
}
}Headers
| Field | Type | Required | Description |
|---|---|---|---|
PeppolKit-Event | string | yesrequired | Always "invoice.received" |
PeppolKit-Delivery | string | yesrequired | The id of this delivery; a retry has the same id. |
PeppolKit-Signature | string | yesrequired |
Event body
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yesrequired | The same event always has the same id: use it to skip doubles. |
type | string | yesrequired | One of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received", "webhook.test" |
created | string (date-time) | yesrequired | |
shop | string | yesrequired | |
test | boolean | Only on events of the test environment. Always true | |
data | object | yesrequired | |
data.number | string | yesrequired | |
data.type | string | yesrequired | One of: "invoice", "credit_note" |
data.issueDate | string | yesrequired | |
data.dueDate | string | null | yesrequired | |
data.supplier | object | yesrequired | |
data.supplier.name | string | yesrequired | |
data.supplier.vatNumber | string | null | yesrequired | |
data.total | number | null | yesrequired | |
data.totalNet | number | null | yesrequired | |
data.totalVat | number | null | yesrequired | |
data.currency | string | yesrequired | |
data.receivedAt | string (date-time) | yesrequired |
POST webhook.test Test event
webhook.test Test eventSent by POST /webhook/test and the dashboard's test button, never retried. data is a sample invoice without links.
{
"id": "evt_test_5d0e3c1b9a7f00112233aabb",
"type": "webhook.test",
"created": "2026-11-18T10:00:00.000Z",
"shop": "api:veloatelier.be",
"test": true,
"data": {
"number": "TEST-0001",
"type": "invoice",
"orderId": "test",
"issueDate": "2026-11-18",
"total": 121,
"currency": "EUR",
"peppolStatus": null,
"emailedAt": null,
"emailTo": null,
"emailError": null,
"pdfUrl": null,
"ublUrl": null,
"warnings": []
}
}Headers
| Field | Type | Required | Description |
|---|---|---|---|
PeppolKit-Event | string | yesrequired | Always "webhook.test" |
PeppolKit-Delivery | string | yesrequired | The id of this delivery; a retry has the same id. |
PeppolKit-Signature | string | yesrequired |
Event body
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yesrequired | The same event always has the same id: use it to skip doubles. |
type | string | yesrequired | One of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received", "webhook.test" |
created | string (date-time) | yesrequired | |
shop | string | yesrequired | |
test | boolean | Only on events of the test environment. Always true | |
data | object | yesrequired |