Skip to navigation

Keep your users updated as your project evolves

A standards-alignment pass over document totals. The totals object on invoices, proformas, and credit notes is replaced with an EN 16931-aligned shape (LegalMonetaryTotal + TaxSubtotal), which is required for correct UBL and ISDOC export. Two breaking changes below, plus opt-in cash rounding.

Breaking: totals has a new 10-key shape

The totals object on invoices, proformas, and credit notes is replaced. Update any code that reads totals fields — the old keys are removed.

New totals shape:

{
"line_extension": "1200.00",
"allowance_total": "0.00",
"charge_total": "0.00",
"tax_exclusive": "1200.00",
"tax_amount": "252.00",
"tax_inclusive": "1452.00",
"prepaid": "0.00",
"rounding": "0.00",
"payable": "1452.00",
"tax_breakdown": [
{
"category": "S",
"rate": "21.0",
"taxable": "1200.00",
"tax": "252.00",
"exemption_reason": null
}
]
}

prepaid, payable, amount_paid, and amount_due are null for non-payable document types (quotes). rounding is null for quotes and "0.00" for documents without cash rounding enabled.

Each tax_breakdown row now carries category — the EN 16931 BT-118 tax category code (S standard, AE reverse charge, G export exempt, O outside scope, E exempt, Z zero-rated, K intra-EU) — plus exemption_reason (non-null for AE, G, O, E, Z, K). The inclusive field is removed.

Breaking: advance_payment_deduction removed

The top-level advance_payment_deduction field is no longer returned on invoices or proformas. The value is now at totals.prepaid (BT-113).

- "advance_payment_deduction": "500.00"
+ "totals": { ..., "prepaid": "500.00", ... }

Sending advance_payment_deduction as a write field is also no longer accepted — use prepaid on create/update instead. The underlying database column is retained, so historical documents and linked proformas are unaffected.

New: opt-in cash rounding (round_total)

Send round_total: true on an invoice or proforma to round the payable amount to the nearest cash denomination for the document’s currency (EUR → €0.05, CZK → Kč1, HUF → Ft5). totals.rounding carries the signed reconciliation delta so the accounting identity tax_inclusive − prepaid + rounding == payable always holds.

{
"round_total": true,
"totals": {
"tax_inclusive": "123.44",
"rounding": "-0.04",
"payable": "123.40"
}
}

round_total: false (the default) is a no-op — responses are byte-identical to pre-feature behavior.

Changed: workspace profile drops two internal fields

GET /workspaces/{workspace_id} no longer returns onboarding_step or vat_registration_alert. Both were internal UI state fields with no meaning for API integrations.