Your invoices already live somewhere: an ERP, a webshop, a billing script in your SaaS backend. Now a customer asks for a Peppol e-invoice. You could become a Peppol access point, learn UBL and keep up with every country's rules. Or you can post the invoice as JSON and let someone else handle the network. This guide shows the second way with the Invoicier API, step by step.
Want to try it as you read? Create a free Invoicier account. The free plan includes 2 invoices a month.
What you need
- An Invoicier account for your company. Invoicier registers your company on the Peppol network, so you get a Peppol ID without running an access point.
- An API key. Create it in the app under Integrations, then API. The key is shown once, so store it in your server's environment variables.
- Your buyer's Peppol ID. It looks like
0208:0878854464(a scheme code, a colon, then the company number). You can look any company up with the free Peppol company search.
That is all. You never write XML and you never talk to the Peppol network directly.
Step 1: Build the invoice as JSON
An invoice is the fields you would type in any invoicing app: number, dates, currency, buyer and lines.
{
"channel": "peppol",
"number": "2026-0142",
"issueDate": "2026-11-27",
"dueDate": "2026-12-11",
"currency": "EUR",
"buyer": {
"name": "Example BV",
"country": "BE",
"vatNumber": "BE0878854464",
"peppolId": "0208:0878854464",
"address": "Rue de la Loi 16",
"city": "Brussels",
"postalCode": "1000"
},
"lines": [
{ "description": "Consulting", "quantity": 8, "unitPrice": 95, "taxRate": 21, "unit": "Hour" }
]
}
Your own company details, such as name, VAT number and bank account, come from your Invoicier account. You do not repeat them on every call.
Step 2: Send it with one call
Post the JSON to /api/v1/invoices. Here it is in Python:
import os
import requests
response = requests.post(
"https://app.invoicier.com/api/v1/invoices",
json=invoice,
headers={
"Authorization": f"Bearer {os.environ['INVOICIER_API_KEY']}",
"Idempotency-Key": "order-10452",
},
timeout=60,
)
print(response.status_code, response.json())
And in Node:
const response = await fetch("https://app.invoicier.com/api/v1/invoices", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.INVOICIER_API_KEY}`,
"Content-Type": "application/json",
"Idempotency-Key": "order-10452",
},
body: JSON.stringify(invoice),
});
console.log(response.status, await response.json());
Invoicier checks the fields, builds the Peppol BIS Billing 3.0 document and a matching PDF, and delivers it to your buyer's access point. The invoice also appears in your Sales list in the app, so the rest of your team sees it.
Step 3: Make retries safe
Networks fail. If your request times out, you cannot tell whether the invoice went out. That is why every send needs an Idempotency-Key header. Use something unique from your own system, such as the order or invoice id.
If you send the same key and the same body again within 24 hours, you get the original answer back and no second invoice is created. If you send the same key with a different body, the API refuses with idempotency_conflict. Your buyer never receives a duplicate invoice because of a retry.
Step 4: Handle errors
When something is wrong, the API answers with an HTTP error and two fields: error_code for your code and error for a person to read. Common ones:
invalid_peppol_idorbuyer_vat: a buyer field is missing or in the wrong format. Nothing was sent.transaction_limit: your plan's monthly allowance is used up. Upgrade in the app and try again.send_uncertain: the invoice may have gone out, but the answer was lost. Do not send it again. Check it in the app first.
Fix the input and retry with the same key, or a new key if you changed the body.
Not every buyer is on Peppol
Peppol covers businesses and public bodies in more than 50 countries, but some of your customers will not have a Peppol ID yet. Change "channel" to "pdf", add the buyer's email address, and Invoicier emails them the PDF invoice instead. For Estonian buyers you can use "earve" to send an Estonian e-invoice. Same call, same JSON shape.
Reading invoices back
The API also reads. GET /api/v1/purchases lists the invoices your suppliers send you over Peppol, with lines and PDFs, so your ERP can book them without anyone downloading files by hand. GET /api/v1/invoices lists what you sent, including whether it was delivered.
Who uses this
- ERP and accounting software that needs Peppol sending and receiving without building an access point.
- Webshops that send the invoice when an order is paid.
- SaaS founders and indie makers billing customers from their own backend.
- No-code builders using the HTTP step in Make, Zapier or n8n.
Get started
The full reference, with every field and error code, is on the Invoicier API page. The machine-readable OpenAPI file works with Postman and code generators.
Create a free Invoicier account and send your first Peppol invoice from your own code today.