Developers resources overview
Developers resources
Build on the
B2Brouter API.
Everything you need to integrate — authentication, versioning, guides, use cases, and the tools to send and receive compliant invoices anywhere.
API reference
# Create a draft invoice
curl https://api.b2brouter.net/accounts/{ACCOUNT_ID}/invoices \
-u {API_KEY}: \
-H ‘Content-Type: application/json’ \
-d ’{
“invoice”: {
“contact_id”: {CONTACT_ID},
“invoice_lines_attributes”: [{
“description”: “Consulting services”,
}]
}
}’
↳ 201 CreatedJSON · REST
Start here
Start using our API
Read the introduction
IntroductionEnvironments, authentication, API versioning, account identifiers, and rate limits — everything you need before your first API call.Get startedEnd-to-end walkthrough: create accounts, activate transports, configure tax reporting, and send your first invoice.PHP SDKZero-dependency PHP library for creating invoices, managing contacts, and handling tax reports — with automatic retries, pagination, and multi-country support.
Tools
Build with confidence
Essential guides
Core concepts
Deep reference for the API objects you’ll use in every integration.
TransactionsWhat counts as a billable transaction — sending, receiving, and downloading documents — and the exceptions that don’t.AccountCreate and manage sub-accounts via API — with the billing and transaction-limit implications for eDocSync and eDocExchange subscriptions.DirectoryLook up any entity by country, scheme, and identifier to resolve its transport type, document types, and country-specific routing codes.SchemesTIN, CIN, PIN, and EAS codes — the identifiers every contact and account requires.TransportsConfigure how documents are delivered — Peppol, email, SFTP, FACe, and more.Payment methodsPayment codes and their equivalents in UBL, Facturae, FatturaPA, and CII — mapped to the standard BT-81.Tax report settingsEnable automated submission for Verifactu, TicketBAI, SDI, KSeF, LHDN, and DGFiP.WebhooksReceive real-time notifications for invoice and tax report state changes.
Guides by country