# Build with Peppol

> e-invoice.be developer resources. REST API, OpenAPI spec, MCP server, CLI tool, SDKs for TypeScript, Python, PHP, Ruby and Java, webhooks, and integration guides.
>
> Source: https://e-invoice.be/developers

## What it is

The developer hub of e-invoice.be, a certified Peppol Access Point. REST API, SDKs for five languages, CLI, MCP server, webhooks. Everything you need to send and receive e-invoices programmatically.

Who it is for: developers, SaaS platforms and ERP vendors who add Peppol e-invoicing to their own software. For the product overview of the API, see https://e-invoice.be/peppol-api.md

## Get started

Three ways to start sending e-invoices. Pick the one that fits your workflow.

### 1. REST API

Base URL: `https://api.e-invoice.be/api`. Full REST API. Send JSON, get compliant UBL.

Two API calls. That's it.

1. `POST /api/documents/`: submit your invoice data.
2. `POST /api/documents/{document_id}/send`: send it via the Peppol network.

```bash
curl -X POST https://api.e-invoice.be/api/documents/ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "document_type": "INVOICE",
    "invoice_id": "INV-2026-0418",
    "invoice_date": "2026-11-16",
    "due_date": "2026-12-16",
    "currency": "EUR",
    "vendor_name": "Your Company BV",
    "vendor_tax_id": "BE0123456789",
    "customer_name": "Sample Customer GmbH",
    "customer_peppol_id": "9930:DE812345678",
    "items": [{"description": "Licence", "quantity": 1, "unit_price": 100, "tax_rate": 21}]
  }'

curl -X POST https://api.e-invoice.be/api/documents/{document_id}/send \
  -H "Authorization: Bearer YOUR_API_KEY"
```

The API uses flat fields: `vendor_name`, `customer_name`, `invoice_id`, `invoice_date`, `due_date`, `document_type` and an `items` array with `unit_price` and `tax_rate`. Document types: `INVOICE`, `CREDIT_NOTE`, `DEBIT_NOTE`, `SELFBILLING_INVOICE`, `SELFBILLING_CREDIT_NOTE`.

Quickstart guide: https://docs.e-invoice.be/quickstart

### 2. CLI

```bash
brew install e-invoice-be/tap/peppol-cli
```

Send invoices, look up Peppol IDs, and manage documents from your terminal. Source: https://github.com/e-invoice-be/peppol-cli

### 3. MCP server

```bash
npx -y e-invoice-api-mcp@latest
```

12 tools for AI agents. Works with Claude, Cursor, VS Code, and any MCP-compatible client. Remote endpoint: https://api.e-invoice.be/mcp. Details: https://e-invoice.be/mcp.md

## SDKs and libraries

Idiomatic SDKs with rich types, auto-retry, and built-in error handling. Auto-generated from our OpenAPI spec.

| Language | Install | Page |
|----------|---------|------|
| TypeScript | `npm install e-invoice-api` | https://e-invoice.be/peppol-api/typescript |
| Python | `pip install e-invoice-api` | https://e-invoice.be/peppol-api/python |
| PHP | `composer require e-invoice/e-invoice-api` | https://e-invoice.be/peppol-api/php |
| Ruby | `gem install e-invoice-api` | https://e-invoice.be/peppol-api/ruby |
| Java/Kotlin | `com.e_invoice.api:e-invoice-java` (Maven Central) | https://e-invoice.be/peppol-api/java |

Python example:

```python
from e_invoice_api import EInvoice

client = EInvoice()  # reads E_INVOICE_API_KEY
doc = client.documents.create(
    document_type="INVOICE",
    invoice_id="INV-2026-0042",
    invoice_date="2026-11-16",
    currency="EUR",
    vendor_name="Acme Software BV",
    vendor_tax_id="BE0123456789",
    customer_name="Northwind Trading NV",
    customer_tax_id="BE0987654321",
    customer_peppol_id="9925:BE0987654321",
    items=[{"description": "API integration", "quantity": 10,
            "unit_price": 95.00, "tax_rate": 21}],
)
sent = client.documents.send(doc.id)
print(sent.id, sent.state)
```

All SDK source code: https://github.com/e-invoice-be

## Tools

API documentation, OpenAPI spec, and CLI for day-to-day operations.

- **REST API**: full-featured REST API for sending and receiving Peppol e-invoices. Send JSON, get compliant UBL. Structured error responses with hints.
  - API documentation: https://docs.e-invoice.be
  - OpenAPI spec: https://api.e-invoice.be/api/openapi.json
  - Interactive API reference: https://api.e-invoice.be/docs
- **CLI tool**: command-line interface for Peppol e-invoicing. Send invoices, look up Peppol IDs, and manage documents from your terminal.

Error responses are JSON:

```json
{"error": {"code": "ERROR_CODE", "message": "Description", "hint": "Resolution"}}
```

## Infrastructure

Webhooks, streaming, authentication, and machine-readable discovery.

- **Webhooks**: real-time notifications for incoming invoices and document status changes via HTTP webhooks. Docs: https://docs.e-invoice.be/essentials/webhooks
- **Streaming and SSE**: Server-Sent Events for real-time progress on long-running operations. The MCP server (https://api.e-invoice.be/mcp) uses Streamable HTTP transport. The NLWeb endpoint https://e-invoice.be/ask streams answers over SSE.
- **Authentication**: bearer token authentication (`Authorization: Bearer YOUR_API_KEY`). Create an account, complete KYC, and generate API keys in the dashboard.
- **Agent discovery**: machine-readable discovery files for AI agents.
  - agent.json: https://e-invoice.be/.well-known/agent.json
  - A2A agent card: https://e-invoice.be/.well-known/agent-card.json
  - MCP server card: https://e-invoice.be/.well-known/mcp/server-card.json
  - API catalog: https://e-invoice.be/.well-known/api-catalog
  - LLM docs: https://docs.e-invoice.be/llms.txt

## How to get an API key

1. Create an account at https://app.e-invoice.be/register. It is free and takes minutes.
2. Build and test in the sandbox right away. The sandbox is free.
3. Complete company verification (KYC). It takes from a few minutes up to a few hours.
4. Generate your API key in the dashboard and buy prepaid credits to go to production.

API users, including SaaS platforms, use this regular account. A reseller account (https://resellers.e-invoice.be/sign-up) is only for companies that resell or white-label Peppol to their own tenants. Resellers are billed monthly per document.

Pricing: from €0.25 per document. No subscription, prepaid credits, pure pay per use. Details: https://e-invoice.be/pricing.md

## Guides and resources

Tutorials, integration guides, and articles to help you ship faster.

- Blog: articles about Peppol e-invoicing, the Belgian mandate, API integrations, and industry updates. https://e-invoice.be/blog
- API integration guide: step-by-step walkthrough of integrating the e-invoice.be API into your application. https://e-invoice.be/blog/e-invoicing-api-integration
- UBL format guide: the UBL invoice format and how the API handles JSON-to-UBL conversion. https://e-invoice.be/blog/ubl-format-guide

## Next steps

Ready to build? Create an account, get your API key, and send your first sandbox e-invoice in minutes.

- Get an API key: https://app.e-invoice.be/register
- Documentation: https://docs.e-invoice.be
- Quickstart: https://docs.e-invoice.be/quickstart
- OpenAPI spec: https://api.e-invoice.be/api/openapi.json
- MCP server: https://api.e-invoice.be/mcp
- Pricing: https://e-invoice.be/pricing.md
- API status: https://status.e-invoice.be
- Contact: hello@e-invoice.be
