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_key

Test 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 BE0000000097 plays a business customer that receives over Peppol, BE0000000196 one that rejects. peppolStatus moves to delivered or failed within 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

Makes 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.

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

FieldTypeRequiredDescription
langstring · queryLanguage 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.

FieldTypeRequiredDescription
idintegeryesrequiredThe order id in your system. The same id again makes no second invoice (status "exists").
namestringyesrequiredThe order number as the customer sees it, e.g. #1042.
currencystringyesrequired
taxes_includedbooleanyesrequiredtrue when prices include VAT.
created_atstringyesrequiredDate and time of the order (ISO 8601).
processed_atstring | null
emailstring | nullWhere the invoice is mailed.
financial_statusstring | null
billing_addressobject | null
billing_address.namestring | null
billing_address.companystring | null
billing_address.address1string | null
billing_address.address2string | null
billing_address.citystring | null
billing_address.zipstring | null
billing_address.country_codestring | nullTwo letters, e.g. BE.
shipping_addressobject | null
shipping_address.namestring | null
shipping_address.companystring | null
shipping_address.address1string | null
shipping_address.address2string | null
shipping_address.citystring | null
shipping_address.zipstring | null
shipping_address.country_codestring | nullTwo letters, e.g. BE.
customerobject | null
customer.first_namestring | null
customer.last_namestring | null
customer.emailstring | null
customer.tax_exemptboolean
line_itemsobject[]yesrequired
line_items[].idintegeryesrequired
line_items[].titlestringyesrequired
line_items[].variant_titlestring | null
line_items[].skustring | null
line_items[].quantityintegeryesrequired
line_items[].pricestringyesrequiredUnit price before discounts; includes VAT when taxes_included.
line_items[].requires_shippingboolean
line_items[].taxableboolean
line_items[].tax_linesobject[]The VAT of the whole line.
line_items[].tax_lines[].titlestring
line_items[].tax_lines[].ratenumberyesrequiredA fraction: 0.21 is 21 %.
line_items[].tax_lines[].pricestringyesrequired
line_items[].discount_allocationsobject[]
line_items[].discount_allocations[].amountstringyesrequired
shipping_linesobject[]
shipping_lines[].titlestringyesrequired
shipping_lines[].pricestringyesrequired
shipping_lines[].discounted_pricestring
shipping_lines[].tax_linesobject[]
shipping_lines[].tax_lines[].titlestring
shipping_lines[].tax_lines[].ratenumberyesrequiredA fraction: 0.21 is 21 %.
shipping_lines[].tax_lines[].pricestringyesrequired
note_attributesobject[]The VAT number of a business customer goes here, with the name "VAT number". Test key: BE0000000097 accepts over Peppol, BE0000000196 rejects.
note_attributes[].namestringyesrequired
note_attributes[].valuestring | null
notestring | nullThe order's note; a VAT number written here is found too.
customer_localestring | nullThe language the customer shopped in, e.g. fr-BE.
total_pricestringyesrequired
total_taxstring

Response 200

FieldTypeRequiredDescription
okbooleanyesrequiredAlways true
testbooleanOnly present on answers to a test key (pk_test_…). Always true
statusstringyesrequiredOne of: "issued", "exists"
warningsstring[]yesrequired
invoiceobject | nullyesrequired
invoice.numberstringyesrequiredThe invoice number. Test documents: TEST-2026-00001 and on.
invoice.typestringyesrequiredOne of: "invoice", "credit_note"
invoice.orderIdstringyesrequiredThe order id you sent; a credit note has "<order id>/refund/<refund id>".
invoice.issueDatestring (date)yesrequired
invoice.totalnumberyesrequiredTotal including VAT, in the currency.
invoice.currencystringyesrequired
invoice.peppolStatusstring | nullyesrequiredHow the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol"
invoice.emailedAtstring | null (date-time)yesrequiredWhen the document was mailed to the customer.
invoice.emailTostring | nullyesrequired
invoice.emailErrorstring | nullyesrequiredWhy the mail did not go out, when it did not.
invoice.pdfUrlstring (uri)yesrequired
invoice.ublUrlstring (uri)yesrequired
invoice.warningsstring[]yesrequiredPoints to check (VAT, VIES), in the language of ?lang=.
invoice.testbooleanOnly 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

Makes 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.

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

FieldTypeRequiredDescription
refundobjectyesrequired
refund.idintegeryesrequiredThe refund id. The same id again makes no second credit note.
refund.order_idintegeryesrequiredThe id of the order you sent to POST /orders.
refund.created_atstringyesrequired
refund.processed_atstring | null
refund.refund_line_itemsobject[]
refund.refund_line_items[].line_item_idintegeryesrequiredThe id of the line in the order.
refund.refund_line_items[].quantityintegeryesrequired
refund.transactionsobject[]What was paid back: transactions with kind "refund" and status "success" count.
refund.transactions[].kindstringyesrequired
refund.transactions[].statusstring | null
refund.transactions[].amountstring | numberyesrequired
orderTotalnumber

Response 200

FieldTypeRequiredDescription
okbooleanyesrequiredAlways true
testbooleanOnly present on answers to a test key (pk_test_…). Always true
statusstringyesrequiredOne of: "issued", "exists", "no_settings", "nothing_refunded"
creditNoteobject | nullyesrequired
creditNote.numberstringyesrequiredThe invoice number. Test documents: TEST-2026-00001 and on.
creditNote.typestringyesrequiredOne of: "invoice", "credit_note"
creditNote.orderIdstringyesrequiredThe order id you sent; a credit note has "<order id>/refund/<refund id>".
creditNote.issueDatestring (date)yesrequired
creditNote.totalnumberyesrequiredTotal including VAT, in the currency.
creditNote.currencystringyesrequired
creditNote.peppolStatusstring | nullyesrequiredHow the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol"
creditNote.emailedAtstring | null (date-time)yesrequiredWhen the document was mailed to the customer.
creditNote.emailTostring | nullyesrequired
creditNote.emailErrorstring | nullyesrequiredWhy the mail did not go out, when it did not.
creditNote.pdfUrlstring (uri)yesrequired
creditNote.ublUrlstring (uri)yesrequired
creditNote.warningsstring[]yesrequiredPoints to check (VAT, VIES), in the language of ?lang=.
creditNote.testbooleanOnly 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

For 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.

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

FieldTypeRequiredDescription
langstring · queryLanguage 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.

FieldTypeRequiredDescription
referencestringyesrequiredYour 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.
issueDatestring (date)Default today. Not in the future, at most 31 days back.
dueDatestring (date)Only for an unpaid invoice; default 30 days after the issue date.
paidbooleanfalse: still to be paid (due date, your IBAN and the payment QR). true: printed as paid, nothing payable.
currencystring
pricesIncludeVatbooleanWhether unitPrice, discount and the shipping price include VAT.
languagestringInvoice language; default your setting. One of: "nl", "fr", "en", "de"
buyerReferencestringThe buyer's purchase order or reference (Peppol BT-10); default your reference.
notestringFree text on the invoice.
buyerobjectyesrequiredGive 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.namestring
buyer.companystring
buyer.vatNumberstring
buyer.emailstring (email)Where the invoice is mailed (when mailing customers is on).
buyer.addressobjectyesrequired
buyer.address.line1stringyesrequired
buyer.address.line2string
buyer.address.postcodestringyesrequired
buyer.address.citystringyesrequired
buyer.address.countrystringyesrequiredISO 3166 code, e.g. BE.
linesobject[]yesrequired
lines[].descriptionstringyesrequired
lines[].quantityintegeryesrequired
lines[].unitPricenumber | stringyesrequiredAt most 2 decimals; a number or a decimal string.
lines[].vatRatenumberyesrequiredVAT in percent, e.g. 21 or 5.5. PeppolKit still applies the rules (reverse charge, OSS, export) as for an order.
lines[].skustring
lines[].discountnumber | stringDiscount on the whole line, same basis as unitPrice.
shippingobject
shipping.descriptionstring
shipping.pricenumber | stringyesrequiredAt most 2 decimals; a number or a decimal string.
shipping.vatRatenumberyesrequired

Response 200

FieldTypeRequiredDescription
okbooleanyesrequiredAlways true
testbooleanOnly present on answers to a test key (pk_test_…). Always true
statusstringyesrequiredOne of: "issued", "exists"
warningsstring[]yesrequired
invoiceobject | nullyesrequired
invoice.numberstringyesrequiredThe invoice number. Test documents: TEST-2026-00001 and on.
invoice.typestringyesrequiredOne of: "invoice", "credit_note"
invoice.orderIdstringyesrequiredThe order id you sent; a credit note has "<order id>/refund/<refund id>".
invoice.issueDatestring (date)yesrequired
invoice.totalnumberyesrequiredTotal including VAT, in the currency.
invoice.currencystringyesrequired
invoice.peppolStatusstring | nullyesrequiredHow the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol"
invoice.emailedAtstring | null (date-time)yesrequiredWhen the document was mailed to the customer.
invoice.emailTostring | nullyesrequired
invoice.emailErrorstring | nullyesrequiredWhy the mail did not go out, when it did not.
invoice.pdfUrlstring (uri)yesrequired
invoice.ublUrlstring (uri)yesrequired
invoice.warningsstring[]yesrequiredPoints to check (VAT, VIES), in the language of ?lang=.
invoice.testbooleanOnly 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

Invoices 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.

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

FieldTypeRequiredDescription
orderIdstring · queryThe order id (or invoice reference) you sent.
pageinteger · query
limitinteger · query
fromstring (date) · queryEarliest issue date (inclusive).
tostring (date) · queryLatest issue date (inclusive).
typestring · queryOne of: "invoice", "credit_note"
customerstring · querybusiness: the buyer has a VAT number. One of: "business", "consumer"
peppolstring · querynone: no Peppol delivery applies. One of: "pending", "sent", "delivered", "failed", "not_on_peppol", "none"
emailstring · queryOne of: "sent", "failed", "none"
attentionboolean · queryOnly documents that need attention (warning, failed rule check, failed mail or Peppol delivery).
qstring · querySearch in number, order and customer name.
langstring · queryLanguage of the warnings. One of: "nl", "fr", "en", "de"

Response 200

FieldTypeRequiredDescription
invoicesobject[]yesrequired
invoices[].numberstringyesrequiredThe invoice number. Test documents: TEST-2026-00001 and on.
invoices[].typestringyesrequiredOne of: "invoice", "credit_note"
invoices[].orderIdstringyesrequiredThe order id you sent; a credit note has "<order id>/refund/<refund id>".
invoices[].issueDatestring (date)yesrequired
invoices[].totalnumberyesrequiredTotal including VAT, in the currency.
invoices[].currencystringyesrequired
invoices[].peppolStatusstring | nullyesrequiredHow the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol"
invoices[].emailedAtstring | null (date-time)yesrequiredWhen the document was mailed to the customer.
invoices[].emailTostring | nullyesrequired
invoices[].emailErrorstring | nullyesrequiredWhy the mail did not go out, when it did not.
invoices[].pdfUrlstring (uri)yesrequired
invoices[].ublUrlstring (uri)yesrequired
invoices[].warningsstring[]yesrequiredPoints to check (VAT, VIES), in the language of ?lang=.
invoices[].testbooleanOnly present on answers to a test key (pk_test_…). Always true
pageintegerNot with orderId.
limitinteger
totalintegerDocuments matching the filters.
pageCountinteger
hasMorebooleanThere 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

One 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.

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

FieldTypeRequiredDescription
numberstring · pathyesrequiredThe invoice or credit note number, as in GET /invoices.
langstring · queryLanguage of the warnings. One of: "nl", "fr", "en", "de"

Response 200

FieldTypeRequiredDescription
numberstringyesrequiredThe invoice number. Test documents: TEST-2026-00001 and on.
typestringyesrequiredOne of: "invoice", "credit_note"
orderIdstringyesrequiredThe order id you sent; a credit note has "<order id>/refund/<refund id>".
issueDatestring (date)yesrequired
totalnumberyesrequiredTotal including VAT, in the currency.
currencystringyesrequired
peppolStatusstring | nullyesrequiredHow the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol"
emailedAtstring | null (date-time)yesrequiredWhen the document was mailed to the customer.
emailTostring | nullyesrequired
emailErrorstring | nullyesrequiredWhy the mail did not go out, when it did not.
pdfUrlstring (uri)yesrequired
ublUrlstring (uri)yesrequired
warningsstring[]yesrequiredPoints to check (VAT, VIES), in the language of ?lang=.
testbooleanOnly present on answers to a test key (pk_test_…). Always true
orderNamestringyesrequiredThe order number as the customer saw it.
buyerNamestringyesrequired
buyerVatNumberstring | nullyesrequired
buyerCountrystring | nullyesrequiredTwo letters, e.g. BE.
businessbooleanyesrequiredThe buyer gave a VAT number.
netnumberyesrequiredTotal without VAT.
vatnumberyesrequiredThe VAT amount.
needsAttentionbooleanyesrequiredAs the dashboard's "needs attention": a warning, a failed rule check or a failed delivery.
attentionReasonsstring[]yesrequiredWhy it needs attention, one line per reason; empty when it does not.
validationobjectyesrequired
validation.checkedbooleanyesrequiredThe EN 16931 / Peppol BIS rule check ran.
validation.validbooleanyesrequired
validation.issuesobject[]yesrequired
validation.issues[].idstringyesrequiredThe rule, e.g. BR-CO-15.
validation.issues[].textstringyesrequired
deliveryobjectyesrequired
delivery.emailobjectyesrequired
delivery.email.tostring | nullyesrequired
delivery.email.sentAtstring | null (date-time)yesrequired
delivery.email.errorstring | nullyesrequired
delivery.email.viaShopMailstring | nullyesrequiredWith "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.peppolobjectyesrequired
delivery.peppol.statusstring | nullyesrequiredOne of: "pending", "sent", "delivered", "failed", "not_on_peppol"
delivery.peppol.sentAtstring | null (date-time)yesrequired
delivery.peppol.errorstring | nullyesrequiredWhy 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

The 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.

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.pdf

JavaScript

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

FieldTypeRequiredDescription
numberstring · pathyesrequiredThe invoice or credit note number, as in GET /invoices.
mailstring · queryOne 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

Mails the document to the customer again. Test documents are never mailed: the answer says so.

Try it

Works with a test key.

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

FieldTypeRequiredDescription
numberstring · pathyesrequiredThe invoice or credit note number, as in GET /invoices.

Response 200

FieldTypeRequiredDescription
okbooleanyesrequired
testbooleanOnly present on answers to a test key (pk_test_…). Always true
emailedboolean
notestring
errorstring
noAddressboolean

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

(Re)sends the document over Peppol. With a test key the delivery is simulated.

Try it

Works with a test key.

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

FieldTypeRequiredDescription
numberstring · pathyesrequiredThe invoice or credit note number, as in GET /invoices.

Response 200

FieldTypeRequiredDescription
okbooleanyesrequired
testbooleanOnly present on answers to a test key (pk_test_…). Always true
statusstringyesrequiredOne of: "sent", "pending", "failed", "skipped", "not_on_peppol"
errorstring
invoiceobject | nullyesrequired
invoice.numberstringyesrequiredThe invoice number. Test documents: TEST-2026-00001 and on.
invoice.typestringyesrequiredOne of: "invoice", "credit_note"
invoice.orderIdstringyesrequiredThe order id you sent; a credit note has "<order id>/refund/<refund id>".
invoice.issueDatestring (date)yesrequired
invoice.totalnumberyesrequiredTotal including VAT, in the currency.
invoice.currencystringyesrequired
invoice.peppolStatusstring | nullyesrequiredHow the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol"
invoice.emailedAtstring | null (date-time)yesrequiredWhen the document was mailed to the customer.
invoice.emailTostring | nullyesrequired
invoice.emailErrorstring | nullyesrequiredWhy the mail did not go out, when it did not.
invoice.pdfUrlstring (uri)yesrequired
invoice.ublUrlstring (uri)yesrequired
invoice.warningsstring[]yesrequiredPoints to check (VAT, VIES), in the language of ?lang=.
invoice.testbooleanOnly 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

Counts 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.

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

FieldTypeRequiredDescription
fromstring (date) · queryDefault the first day of this month.
tostring (date) · queryDefault today.

Response 200

FieldTypeRequiredDescription
fromstring (date)yesrequired
tostring (date)yesrequired
invoicesintegeryesrequiredInvoices issued in the period (issue date).
creditNotesintegeryesrequired
businessintegeryesrequiredInvoices to a buyer with a VAT number.
consumerintegeryesrequired
attentionintegeryesrequiredDocuments that need attention (a warning, a failed rule check, mail or Peppol delivery), as in the dashboard.
totalsobject[]yesrequiredPer currency, EUR first. Amounts incl. VAT; net = invoiced - credited.
totals[].currencystringyesrequired
totals[].invoicednumberyesrequired
totals[].creditednumberyesrequired
totals[].netnumberyesrequired
totals[].vatnumberyesrequired
peppolobjectyesrequired
peppol.pendingintegeryesrequired
peppol.sentintegeryesrequired
peppol.deliveredintegeryesrequired
peppol.failedintegeryesrequired
peppol.notOnPeppolintegeryesrequired
emailobjectyesrequired
email.sentintegeryesrequired
email.failedintegeryesrequired
receivedintegeryesrequiredDocuments received from suppliers over Peppol in the period.
monthsobject[]yesrequired
months[].monthstringyesrequired
months[].invoicesintegeryesrequired
months[].creditNotesintegeryesrequired
months[].totalsobject[]yesrequired
months[].totals[].currencystringyesrequired
months[].totals[].netnumberyesrequired
months[].totals[].vatnumberyesrequired
testbooleanOnly 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

The UBL documents you sent through POST /documents, newest first, 50 a page.

Try it

Works with a test key.

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

FieldTypeRequiredDescription
pageinteger · query

Response 200

FieldTypeRequiredDescription
documentsobject[]yesrequired
documents[].idstringyesrequired
documents[].typestringyesrequiredOne of: "invoice", "credit_note"
documents[].numberstringyesrequiredcbc:ID of your document.
documents[].issueDatestring (date)yesrequired
documents[].currencystringyesrequired
documents[].totalnumberyesrequiredPayableAmount.
documents[].buyerNamestringyesrequired
documents[].receiverstringyesrequiredThe buyer's Peppol address, scheme:value.
documents[].statusstringyesrequiredsent: 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[].errorstring | nullyesrequired
documents[].sentAtstring (date-time) | nullyesrequired
documents[].createdAtstring (date-time)yesrequired
documents[].testbooleanOnly present on answers to a test key (pk_test_…). Always true
pageintegeryesrequired
pageCountintegeryesrequired
totalintegeryesrequired
hasMorebooleanyesrequired
testbooleanOnly 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

A 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.

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

FieldTypeRequiredDescription
xmlstringyesrequiredThe UBL document.

Response 200

FieldTypeRequiredDescription
okbooleanyesrequiredAlways true
statusstringyesrequiredAlways "exists"
documentobjectyesrequired
document.idstringyesrequired
document.typestringyesrequiredOne of: "invoice", "credit_note"
document.numberstringyesrequiredcbc:ID of your document.
document.issueDatestring (date)yesrequired
document.currencystringyesrequired
document.totalnumberyesrequiredPayableAmount.
document.buyerNamestringyesrequired
document.receiverstringyesrequiredThe buyer's Peppol address, scheme:value.
document.statusstringyesrequiredsent: 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.errorstring | nullyesrequired
document.sentAtstring (date-time) | nullyesrequired
document.createdAtstring (date-time)yesrequired
document.testbooleanOnly present on answers to a test key (pk_test_…). Always true

Response 201

FieldTypeRequiredDescription
okbooleanyesrequired
statusstringyesrequiredOne of: "sent", "delivered", "failed", "not_on_peppol"
documentobjectyesrequired
document.idstringyesrequired
document.typestringyesrequiredOne of: "invoice", "credit_note"
document.numberstringyesrequiredcbc:ID of your document.
document.issueDatestring (date)yesrequired
document.currencystringyesrequired
document.totalnumberyesrequiredPayableAmount.
document.buyerNamestringyesrequired
document.receiverstringyesrequiredThe buyer's Peppol address, scheme:value.
document.statusstringyesrequiredsent: 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.errorstring | nullyesrequired
document.sentAtstring (date-time) | nullyesrequired
document.createdAtstring (date-time)yesrequired
document.testbooleanOnly 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

One document from POST /documents with its current Peppol state.

Try it

Works with a test key.

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

FieldTypeRequiredDescription
idstring · pathyesrequiredThe id from POST or GET /documents.

Response 200

FieldTypeRequiredDescription
documentobjectyesrequired
document.idstringyesrequired
document.typestringyesrequiredOne of: "invoice", "credit_note"
document.numberstringyesrequiredcbc:ID of your document.
document.issueDatestring (date)yesrequired
document.currencystringyesrequired
document.totalnumberyesrequiredPayableAmount.
document.buyerNamestringyesrequired
document.receiverstringyesrequiredThe buyer's Peppol address, scheme:value.
document.statusstringyesrequiredsent: 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.errorstring | nullyesrequired
document.sentAtstring (date-time) | nullyesrequired
document.createdAtstring (date-time)yesrequired
document.testbooleanOnly 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

The document exactly as it was sent.

Try it

Works with a test key.

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-original

JavaScript

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

FieldTypeRequiredDescription
idstring · pathyesrequiredThe 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

Company 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.

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

FieldTypeRequiredDescription
shopstringyesrequiredYour shop's key at PeppolKit.
testbooleanOnly present on answers to a test key (pk_test_…). Always true
configuredbooleanyesrequiredCompany details are saved.
sellerobject | nullyesrequired
seller.namestringyesrequired
seller.addressobjectyesrequired
seller.address.streetstringyesrequired
seller.address.citystringyesrequired
seller.address.postalCodestringyesrequired
seller.address.countrystringyesrequired
seller.vatNumberstring
seller.registrationNumberstring
seller.taxNumberstringGerman sellers: the Steuernummer.
seller.emailstring (email)
seller.endpointobjectThe Peppol address (ISO 6523 scheme and value).
seller.endpoint.schemeIdstringyesrequired
seller.endpoint.valuestringyesrequired
planobjectyesrequired
plan.namestringyesrequired
plan.invoicesPerMonthinteger | nullyesrequirednull: unlimited.
plan.peppolIncludedinteger | nullyesrequired
plan.peppolEveryInvoicebooleanyesrequired
emailCustomersbooleanyesrequired
customerMailViastringyesrequiredOne of: "peppolkit", "shop"
pdfReadybooleanyesrequiredAlways true
ibanstringyesrequired
invoicePrefixstringyesrequired
ossRegisteredbooleanyesrequired
belowMicroThresholdbooleanyesrequired
languagestringyesrequiredOne of: "auto", "nl", "fr", "en", "de"
peppolSendbooleanyesrequired
smallBusinessbooleanyesrequired
cashAccountingbooleanyesrequired
peppolViastringyesrequired"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"
peppolActivebooleanyesrequired
peppyrusParticipantstring | nullyesrequired
usageobjectyesrequired
usage.invoicesThisMonthintegeryesrequired
usage.peppolThisMonthintegeryesrequired
thresholdobject | nullyesrequired
threshold.yearintegeryesrequired
threshold.thisYearCentsintegeryesrequired
threshold.lastYearCentsintegeryesrequired
threshold.statestringyesrequiredOne 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

Saves 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.

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

FieldTypeRequiredDescription
namestringyesrequired
streetstringyesrequired
postalCodestringyesrequired
citystringyesrequired
countrystringyesrequired
vatNumberstringRequired, except for a German seller that sends taxNumber instead.
taxNumberstringGerman sellers: the Steuernummer, instead of or next to the VAT number.
registrationNumberstringKvK or enterprise number; in BE and NL it becomes your Peppol address.
emailstring (email)
ibanstring
invoicePrefixstring
ossRegisteredboolean
belowMicroThresholdbooleanCross-border sales to consumers stay below EUR 10 000 a year.
emailCustomersboolean
languagestringOne of: "auto", "nl", "fr", "en", "de"
peppolSendboolean
smallBusinessbooleanSmall-business scheme (BE, NL, DE, LU): invoices without VAT with the scheme's mention.
cashAccountingbooleanLuxembourg shops under the cash-accounting regime (art. 25 LTVA): invoices state "Comptabilité de caisse". Ignored for other countries.
customerMailViastring"shop" only for the plugin platforms. One of: "peppolkit", "shop"

Response 200

FieldTypeRequiredDescription
okbooleanyesrequiredAlways true
testbooleanOnly present on answers to a test key (pk_test_…). Always true
savedbooleanfalse 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

The 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.

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

FieldTypeRequiredDescription
availablebooleanyesrequiredPaid plans can be started now.
currentstringyesrequiredThe plan the shop is on.
statusstring | nullyesrequiredThe subscription's state, null without one.
intervalstringOnly once yearly plans are live. One of: "month", "year"
renewsAtstring | null (date-time)Only once yearly plans are live.
plansobject[]yesrequired
plans[].namestringyesrequired
plans[].invoicesPerMonthinteger | nullyesrequired
plans[].peppolIncludedinteger | nullyesrequired
plans[].peppolEveryInvoicebooleanyesrequired
plans[].netintegeryesrequiredPrice a month in euro cents, without VAT.
plans[].vatintegeryesrequired
plans[].grossintegeryesrequired
plans[].yearlyobject
plans[].yearly.netintegeryesrequired
plans[].yearly.vatintegeryesrequired
plans[].yearly.grossintegeryesrequired
plans[].currencystringyesrequiredAlways "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

Starts 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.

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

FieldTypeRequiredDescription
planstringyesrequired
redirectUrlstring (uri)
intervalstringOne of: "month", "year"

Response 200

FieldTypeRequiredDescription
okbooleanyesrequiredAlways true
checkoutUrlstring (uri)
planstring
endsAtstring (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?

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.

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

FieldTypeRequiredDescription
vatstring · queryA Belgian (BE…) or Dutch (NL…) VAT number. Not together with id.
idstring · queryA Peppol participant ID "<scheme>:<value>". Not together with vat.

Response 200

FieldTypeRequiredDescription
reachablebooleanyesrequiredThe company can receive invoices over Peppol under one of the IDs.
participantIdstring | nullyesrequiredThe ID to send to: the first that receives invoices, else the first registered one; null when none is registered.
checkedobject | object | object[]yesrequiredEach ID that was tried. A VAT number tries the usual IDs: BE 0208:<enterprise number> and 9925:BE…, NL 9944:NL….
checked[].participantIdstringyesrequired
checked[].registeredbooleanyesrequiredAlways true
checked[].accessPointSmpstringyesrequiredThe SMP host that publishes the ID (its access point's).
checked[].receivesInvoicesbooleanyesrequiredAccepts Peppol BIS Billing 3.0 invoices.
checked[].receivesCreditNotesbooleanyesrequired
checked[].documentTypesstring[]Every document type ID the SMP publishes for the ID, as written there.
testbooleanOnly 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

Checks 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.

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

FieldTypeRequiredDescription
vatstring · queryyesrequiredThe VAT number with its two-letter prefix; spaces and dots are fine.

Response 200

FieldTypeRequiredDescription
vatNumberstringyesrequiredThe number as VIES knows it, with its prefix (EL for Greece).
validbooleanyesrequired
statusstringyesrequiredOne of: "valid", "invalid"
namestring | nullyesrequiredThe registered name, when the member state discloses it.
addressstring | nullyesrequiredThe registered address, when the member state discloses it.
checkedAtstring | null (date-time)yesrequiredVIES'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.
testbooleanOnly 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

The 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.

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

FieldTypeRequiredDescription
fromstring (date) · queryEarliest issue date (inclusive).
tostring (date) · queryLatest issue date (inclusive).
pageinteger · queryA page past the last gives the last page.

Response 200

FieldTypeRequiredDescription
receivingbooleanyesrequiredThe shop receives Peppol invoices through PeppolKit.
totalintegeryesrequiredDocuments matching from/to.
pageintegeryesrequired
pageCountintegeryesrequired
pageSizeintegeryesrequiredAlways 50
receivedobject[]yesrequired
received[].numberstringyesrequired
received[].typestringyesrequiredOne of: "invoice", "credit_note"
received[].issueDatestringyesrequired
received[].dueDatestring | nullyesrequired
received[].supplierobjectyesrequired
received[].supplier.namestringyesrequired
received[].supplier.vatNumberstring | nullyesrequired
received[].totalnumber | nullyesrequired
received[].totalNetnumber | nullyesrequired
received[].totalVatnumber | nullyesrequired
received[].currencystringyesrequired
received[].receivedAtstring (date-time)yesrequired
received[].idstringyesrequired
received[].originalTypestringyesrequiredxml: UBL or CII; pdf: a Factur-X PDF. One of: "xml", "pdf"
received[].originalUrlstring (uri)yesrequiredGET /received/{id}/original: the file as it arrived, the legal document.
received[].pdfUrlstring | null (uri)yesrequiredGET /received/{id}/pdf: a readable PDF; null when there is none.
received[].forwardedToAccountingAtstring | null (date-time)Only in GET /received/{id}: when it went to the bookkeeping inbox.
testbooleanOnly 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

One received document, as in GET /received, plus when it was forwarded to your bookkeeping inbox.

Try it

Works with a test key.

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

FieldTypeRequiredDescription
idstring · pathyesrequiredThe id from GET /received.

Response 200

FieldTypeRequiredDescription
numberstringyesrequired
typestringyesrequiredOne of: "invoice", "credit_note"
issueDatestringyesrequired
dueDatestring | nullyesrequired
supplierobjectyesrequired
supplier.namestringyesrequired
supplier.vatNumberstring | nullyesrequired
totalnumber | nullyesrequired
totalNetnumber | nullyesrequired
totalVatnumber | nullyesrequired
currencystringyesrequired
receivedAtstring (date-time)yesrequired
idstringyesrequired
originalTypestringyesrequiredxml: UBL or CII; pdf: a Factur-X PDF. One of: "xml", "pdf"
originalUrlstring (uri)yesrequiredGET /received/{id}/original: the file as it arrived, the legal document.
pdfUrlstring | null (uri)yesrequiredGET /received/{id}/pdf: a readable PDF; null when there is none.
forwardedToAccountingAtstring | 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

The 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.

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-original

JavaScript

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

FieldTypeRequiredDescription
idstring · pathyesrequiredThe 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

A 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.

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.pdf

JavaScript

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

FieldTypeRequiredDescription
idstring · pathyesrequiredThe 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

Test 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.

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

FieldTypeRequiredDescription
okbooleanyesrequiredAlways true
testbooleanyesrequiredOnly present on answers to a test key (pk_test_…). Always true
receivedobjectyesrequired

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

The 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.

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

FieldTypeRequiredDescription
webhookobject | nullyesrequired
webhook.urlstring (uri)yesrequired
webhook.eventsstring[]yesrequired
webhook.enabledbooleanyesrequired
webhook.createdAtstring (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

Makes 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.

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

FieldTypeRequiredDescription
urlstring (uri)yesrequired
eventsstring[]
enabledboolean
rotateSecretboolean

Response 200

FieldTypeRequiredDescription
okbooleanyesrequiredAlways true
webhookobjectyesrequired
webhook.urlstring (uri)yesrequired
webhook.eventsstring[]yesrequired
webhook.enabledbooleanyesrequired
webhook.createdAtstring (date-time)yesrequired
secretstringwhsec_…, 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

Removes the endpoint with its delivery log.

Try it

Works with your live key only; a test key gets 403.

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

FieldTypeRequiredDescription
okbooleanyesrequiredAlways true
deletedbooleanyesrequiredfalse: 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

The 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.

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

FieldTypeRequiredDescription
hooksobject[]yesrequired
hooks[].idstringyesrequired
hooks[].urlstring (uri)yesrequired
hooks[].eventsstring[]yesrequired
hooks[].sourcestringyesrequiredOne of: "zapier", "make", "other"
hooks[].createdAtstring (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

For 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.

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

FieldTypeRequiredDescription
urlstring (uri)yesrequired
eventsstring[]
sourcestringOne of: "zapier", "make", "other"

Response 200

FieldTypeRequiredDescription
okbooleanyesrequiredAlways true
hookobjectyesrequired
hook.idstringyesrequired
hook.urlstring (uri)yesrequired
hook.eventsstring[]yesrequired
hook.sourcestringyesrequiredOne of: "zapier", "make", "other"
hook.createdAtstring (date-time)yesrequired

Response 201

FieldTypeRequiredDescription
okbooleanyesrequiredAlways true
hookobjectyesrequired
hook.idstringyesrequired
hook.urlstring (uri)yesrequired
hook.eventsstring[]yesrequired
hook.sourcestringyesrequiredOne of: "zapier", "make", "other"
hook.createdAtstring (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

The 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.

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

FieldTypeRequiredDescription
typestring · queryyesrequiredOne of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received"
limitinteger · query

Response 200

FieldTypeRequiredDescription
eventsobject[]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

Removes one subscription. Your own webhook is never removed this way.

Try it

Works with your live key only; a test key gets 403.

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

FieldTypeRequiredDescription
idstring · pathyesrequired

Response 200

FieldTypeRequiredDescription
okbooleanyesrequiredAlways true
deletedbooleanyesrequiredfalse: 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

Sends 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.

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

FieldTypeRequiredDescription
okbooleanyesrequiredYour server answered 2xx.
testbooleanOnly present on answers to a test key (pk_test_…). Always true
httpStatusinteger | nullyesrequired
errorstring | nullyesrequired

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)

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.

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

FieldTypeRequiredDescription
platformstringyesrequiredOne of: "woocommerce", "lightspeed", "prestashop", "magento", "drupal", "opencart", "joomla"
siteUrlstring (uri)yesrequiredThe shop's http(s) address.
emailstring (email)

Response 200

FieldTypeRequiredDescription
shopstringyesrequired
apiKeystringyesrequiredpk_…, 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/disconnect Disconnect the shop

Called 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.

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

FieldTypeRequiredDescription
okbooleanyesrequiredAlways true
purgeAtstring (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

Deprecated.

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.

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

FieldTypeRequiredDescription
statusstringyesrequiredAlways "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

data 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

FieldTypeRequiredDescription
PeppolKit-EventstringyesrequiredAlways "invoice.created"
PeppolKit-DeliverystringyesrequiredThe id of this delivery; a retry has the same id.
PeppolKit-Signaturestringyesrequired

Event body

FieldTypeRequiredDescription
idstringyesrequiredThe same event always has the same id: use it to skip doubles.
typestringyesrequiredOne of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received", "webhook.test"
createdstring (date-time)yesrequired
shopstringyesrequired
testbooleanOnly on events of the test environment. Always true
dataobjectyesrequired
data.numberstringyesrequiredThe invoice number. Test documents: TEST-2026-00001 and on.
data.typestringyesrequiredOne of: "invoice", "credit_note"
data.orderIdstringyesrequiredThe order id you sent; a credit note has "<order id>/refund/<refund id>".
data.issueDatestring (date)yesrequired
data.totalnumberyesrequiredTotal including VAT, in the currency.
data.currencystringyesrequired
data.peppolStatusstring | nullyesrequiredHow the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol"
data.emailedAtstring | null (date-time)yesrequiredWhen the document was mailed to the customer.
data.emailTostring | nullyesrequired
data.emailErrorstring | nullyesrequiredWhy the mail did not go out, when it did not.
data.pdfUrlstring (uri)yesrequired
data.ublUrlstring (uri)yesrequired
data.warningsstring[]yesrequiredPoints to check (VAT, VIES), in the language of ?lang=.
data.testbooleanOnly present on answers to a test key (pk_test_…). Always true

POST credit_note.created A credit note was made

data 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

FieldTypeRequiredDescription
PeppolKit-EventstringyesrequiredAlways "credit_note.created"
PeppolKit-DeliverystringyesrequiredThe id of this delivery; a retry has the same id.
PeppolKit-Signaturestringyesrequired

Event body

FieldTypeRequiredDescription
idstringyesrequiredThe same event always has the same id: use it to skip doubles.
typestringyesrequiredOne of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received", "webhook.test"
createdstring (date-time)yesrequired
shopstringyesrequired
testbooleanOnly on events of the test environment. Always true
dataobjectyesrequired
data.numberstringyesrequiredThe invoice number. Test documents: TEST-2026-00001 and on.
data.typestringyesrequiredOne of: "invoice", "credit_note"
data.orderIdstringyesrequiredThe order id you sent; a credit note has "<order id>/refund/<refund id>".
data.issueDatestring (date)yesrequired
data.totalnumberyesrequiredTotal including VAT, in the currency.
data.currencystringyesrequired
data.peppolStatusstring | nullyesrequiredHow the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol"
data.emailedAtstring | null (date-time)yesrequiredWhen the document was mailed to the customer.
data.emailTostring | nullyesrequired
data.emailErrorstring | nullyesrequiredWhy the mail did not go out, when it did not.
data.pdfUrlstring (uri)yesrequired
data.ublUrlstring (uri)yesrequired
data.warningsstring[]yesrequiredPoints to check (VAT, VIES), in the language of ?lang=.
data.testbooleanOnly present on answers to a test key (pk_test_…). Always true

POST invoice.delivered Peppol delivery confirmed

The 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

FieldTypeRequiredDescription
PeppolKit-EventstringyesrequiredAlways "invoice.delivered"
PeppolKit-DeliverystringyesrequiredThe id of this delivery; a retry has the same id.
PeppolKit-Signaturestringyesrequired

Event body

FieldTypeRequiredDescription
idstringyesrequiredThe same event always has the same id: use it to skip doubles.
typestringyesrequiredOne of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received", "webhook.test"
createdstring (date-time)yesrequired
shopstringyesrequired
testbooleanOnly on events of the test environment. Always true
dataobjectyesrequired
data.numberstringyesrequiredThe invoice number. Test documents: TEST-2026-00001 and on.
data.typestringyesrequiredOne of: "invoice", "credit_note"
data.orderIdstringyesrequiredThe order id you sent; a credit note has "<order id>/refund/<refund id>".
data.issueDatestring (date)yesrequired
data.totalnumberyesrequiredTotal including VAT, in the currency.
data.currencystringyesrequired
data.peppolStatusstring | nullyesrequiredHow the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol"
data.emailedAtstring | null (date-time)yesrequiredWhen the document was mailed to the customer.
data.emailTostring | nullyesrequired
data.emailErrorstring | nullyesrequiredWhy the mail did not go out, when it did not.
data.pdfUrlstring (uri)yesrequired
data.ublUrlstring (uri)yesrequired
data.warningsstring[]yesrequiredPoints to check (VAT, VIES), in the language of ?lang=.
data.testbooleanOnly present on answers to a test key (pk_test_…). Always true

POST invoice.failed Peppol delivery failed

Peppol 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

FieldTypeRequiredDescription
PeppolKit-EventstringyesrequiredAlways "invoice.failed"
PeppolKit-DeliverystringyesrequiredThe id of this delivery; a retry has the same id.
PeppolKit-Signaturestringyesrequired

Event body

FieldTypeRequiredDescription
idstringyesrequiredThe same event always has the same id: use it to skip doubles.
typestringyesrequiredOne of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received", "webhook.test"
createdstring (date-time)yesrequired
shopstringyesrequired
testbooleanOnly on events of the test environment. Always true
dataobjectyesrequired
data.numberstringyesrequiredThe invoice number. Test documents: TEST-2026-00001 and on.
data.typestringyesrequiredOne of: "invoice", "credit_note"
data.orderIdstringyesrequiredThe order id you sent; a credit note has "<order id>/refund/<refund id>".
data.issueDatestring (date)yesrequired
data.totalnumberyesrequiredTotal including VAT, in the currency.
data.currencystringyesrequired
data.peppolStatusstring | nullyesrequiredHow the Peppol delivery went; null when the document did not go over Peppol. One of: "pending", "sent", "delivered", "failed", "not_on_peppol"
data.emailedAtstring | null (date-time)yesrequiredWhen the document was mailed to the customer.
data.emailTostring | nullyesrequired
data.emailErrorstring | nullyesrequiredWhy the mail did not go out, when it did not.
data.pdfUrlstring (uri)yesrequired
data.ublUrlstring (uri)yesrequired
data.warningsstring[]yesrequiredPoints to check (VAT, VIES), in the language of ?lang=.
data.testbooleanOnly present on answers to a test key (pk_test_…). Always true
data.peppolErrorstring

POST invoice.received A Peppol invoice arrived

A 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

FieldTypeRequiredDescription
PeppolKit-EventstringyesrequiredAlways "invoice.received"
PeppolKit-DeliverystringyesrequiredThe id of this delivery; a retry has the same id.
PeppolKit-Signaturestringyesrequired

Event body

FieldTypeRequiredDescription
idstringyesrequiredThe same event always has the same id: use it to skip doubles.
typestringyesrequiredOne of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received", "webhook.test"
createdstring (date-time)yesrequired
shopstringyesrequired
testbooleanOnly on events of the test environment. Always true
dataobjectyesrequired
data.numberstringyesrequired
data.typestringyesrequiredOne of: "invoice", "credit_note"
data.issueDatestringyesrequired
data.dueDatestring | nullyesrequired
data.supplierobjectyesrequired
data.supplier.namestringyesrequired
data.supplier.vatNumberstring | nullyesrequired
data.totalnumber | nullyesrequired
data.totalNetnumber | nullyesrequired
data.totalVatnumber | nullyesrequired
data.currencystringyesrequired
data.receivedAtstring (date-time)yesrequired

POST webhook.test Test event

Sent 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

FieldTypeRequiredDescription
PeppolKit-EventstringyesrequiredAlways "webhook.test"
PeppolKit-DeliverystringyesrequiredThe id of this delivery; a retry has the same id.
PeppolKit-Signaturestringyesrequired

Event body

FieldTypeRequiredDescription
idstringyesrequiredThe same event always has the same id: use it to skip doubles.
typestringyesrequiredOne of: "invoice.created", "credit_note.created", "invoice.delivered", "invoice.failed", "invoice.received", "webhook.test"
createdstring (date-time)yesrequired
shopstringyesrequired
testbooleanOnly on events of the test environment. Always true
dataobjectyesrequired