Invoices
Generate an invoice
Compute totals and return JSON (default), a PDF, or UBL 2.1 XML. Anonymous calls (no auth) are allowed for JSON output and are IP-rate-limited; PDF/UBL output requires a free API key. Send an Idempotency-Key header to make retries safe.
post/api/generate-invoice
Headers
Idempotency-Keystring
Opaque key; a repeat with the same key replays the first response (24h).
Request body
Example request
{
"invoice": {
"currency": "USD"
},
"items": [
{
"taxes": [
{
"name": "VAT"
}
]
}
],
"global_taxes": [
{
"name": "VAT"
}
]
}Response
Invoice generated.