Overview
TheDocument schema defines the structure for creating invoices, credit notes, and debit notes via the e-invoice.be API. This is the primary schema used when calling POST /api/documents/.
Only the
items array is strictly required. All other fields are optional but recommended for complete, Peppol-compliant e-invoices.Document Metadata
Type of document to create
INVOICE- Standard invoiceCREDIT_NOTE- Credit note (refund/adjustment)DEBIT_NOTE- Debit note
Document state
Inbound documents (direction: 
DRAFT- Created but not sentTRANSIT- Being transmittedSENT- Successfully deliveredFAILED- Transmission failedRECEIVED- Received from another party
OUTBOUND):
Documents in
TRANSIT state use an exponential backoff retry strategy over 24 hours before transitioning to FAILED.Documents in FAILED state can be retried by calling POST /api/documents/{id}/send again, which will transition them back to TRANSIT for another delivery attempt.Coming soon: Detailed transmission attempt history will be available in a future release, allowing you to view all retry attempts, timestamps, and failure reasons for each transmission.INBOUND):
Document direction
OUTBOUND- Sending to customerINBOUND- Received from supplier
Vendor (Supplier) Information
Your company nameExample:
"Your Company BVBA"Your Peppol participant ID in format
scheme:identifierExample: "0208:0123456789" (Belgian CBE number)See Peppol ID schemesYour company address (full address as single string)Example:
"Main Street 123, 1000 Brussels, Belgium"Department or person at vendor addressExample:
"Accounts Department"Your contact email addressExample:
"[email protected]"Customer (Buyer) Information
Customer company nameExample:
"Customer Company NV"Customer Peppol participant ID in format
scheme:identifierExample: "0208:0987654321"Internal customer reference/IDExample:
"CUST-12345"Customer address (full address as single string)Example:
"Customer Lane 456, 2000 Antwerp, Belgium"Department or person at customer addressExample:
"Accounts Payable"Customer contact emailExample:
"[email protected]"Invoice Details
Unique invoice numberExample:
"INV-2024-001"Invoice issue date in ISO 8601 format (
YYYY-MM-DD)Example: "2024-10-24"Payment due date in ISO 8601 format (
YYYY-MM-DD)Example: "2024-11-24"Customer purchase order reference. For credit notes, use this to reference the original invoice.Example:
"PO-12345" or "INV-2024-001" (for credit notes)Free-text note or descriptionExample:
"Thank you for your business" or "Full refund - goods returned"Payment terms descriptionExample:
"Payment due within 30 days" or "Net 30"Financial Fields
Currency code (ISO 4217)Supported:
EUR, USD, GBP, JPY, CHF, CAD, AUD, NZD, CNY, INR, SEK, NOK, DKK, SGD, HKDExample: "EUR"Taxable base amount (after document-level allowances and charges, before tax)Corresponds to UBL
cac:LegalMonetaryTotal/cbc:TaxExclusiveAmountExample: 1000.00Total document-level allowances (discounts only, not charges)Corresponds to UBL
cac:LegalMonetaryTotal/cbc:AllowanceTotalAmountExample: 50.00Total VAT/tax amountCorresponds to UBL
cac:TaxTotal/cbc:TaxAmountExample: 210.00Total invoice amount including tax (subtotal + total_tax)Corresponds to UBL
cac:LegalMonetaryTotal/cbc:TaxInclusiveAmountExample: 1210.00Amount due for payment after prepaymentsCorresponds to UBL
cac:LegalMonetaryTotal/cbc:PayableAmountExample: 1210.00Previous outstanding balance (if any)Example:
100.00Tax Information
Tax category code (UNCL5305)
S- Standard rate (most common)Z- Zero ratedE- Exempt from taxAE- VAT Reverse ChargeK,G,O,L,M,B- Other special cases
VAT exemption reason code (when tax_code is E, AE, K, G, O, L, M, or B)Example:
"VATEX-EU-132" for intra-community supplyVAT exemption explanationExample:
"Reverse charge applies - Art. 196 EU VAT Directive"Service Period
Service period start date (ISO 8601:
YYYY-MM-DD)Example: "2024-10-01"Service period end date (ISO 8601:
YYYY-MM-DD)Example: "2024-10-31"Additional Addresses
Billing address (if different from customer address)Example:
"Billing Street 1, 1000 Brussels, Belgium"Recipient at billing addressExample:
"Accounts Payable Department"Delivery/shipping addressExample:
"Warehouse 5, Industrial Park, 3000 Leuven, Belgium"Recipient at shipping addressExample:
"Warehouse Manager"Service location addressExample:
"Service Location 3, 3000 Leuven, Belgium"Recipient at service address
Remittance/payment addressExample:
"Payment Processing Center, 1000 Brussels, Belgium"Recipient at remittance address
Line Items
Payment Details
Array of payment method detailsExample:
Allowances and Charges
Document-level allowances (discounts)Example:
Document-level charges (fees)Example:
Tax Details
Detailed tax breakdown by category/rateAutomatically calculated if not provided.
Attachments
Document attachments (supporting files)Example: