Skip to navigation

Keep your users updated as your project evolves

June 15, 2026

A broad pass aligning the API vocabulary with EN 16931 / Peppol BIS Billing 3.0 — the standards behind EU e-invoicing. Several fields are renamed across resources, and a few are added. If you integrated before this date, review the renames below. The underlying id values are unchanged throughout.

Breaking: the counterparty is now customer

The document/expense counterparty role is renamed purchaser → customer (mirroring UBL AccountingCustomerParty). supplier is unchanged. This supersedes the June 9 note that purchaser_id would keep its name.

{
"invoice": {
- "purchaser_id": 318,
+ "customer_id": 318,
"supplier_id": 42
}
}

The contact_type value "purchaser" is likewise now "customer".

Breaking: party & address field renames

ResourceBeforeAfterEN 16931
partyregistration_idlegal_registration_idBT-30
partywebwebsite—
addresscountry_id / country_alpha2country_codeBT-40 / BT-55
addressmunicipalitycityBT-37 / BT-52

country_code is an ISO 3166-1 alpha-2 code — the internal numeric country_id foreign key is no longer exposed.

"supplier": {
- "registration_id": "12345678",
- "web": "https://acme.sk",
+ "legal_registration_id": "12345678",
+ "website": "https://acme.sk",
"invoice_address": {
- "municipality": "Bratislava",
- "country_id": 703
+ "city": "Bratislava",
+ "country_code": "SK"
}
}

tax_id and vat_id are unchanged (they’re already EN 16931 BT-32 / BT-31 identifiers).

Breaking: line items

Document and expense line items are now exposed as line_items in responses and accepted as line_items_attributes in create/update — previously document_items / expense_items. The per-line position field order is renamed line_number (EN 16931 BT-126, the invoice line identifier).

{
- "document_items": [
- { "order": 1, "name": "Consulting", "quantity": "10", ... }
+ "line_items": [
+ { "line_number": 1, "name": "Consulting", "quantity": "10", ... }
]
}

On create/update, send line_items_attributes (was document_items_attributes / expense_items_attributes):

- "document_items_attributes": [ { "name": "Consulting", ... } ]
+ "line_items_attributes": [ { "name": "Consulting", ... } ]

This is unrelated to the list ?order=asc|desc sort parameter (introduced June 9), which is unchanged. Only the line-item field order became line_number.

Breaking: country codes are uppercase

country_code is returned in canonical uppercase ISO form — "SK", not "sk". Inbound country_code on create/update is accepted case-insensitively, so existing lowercase clients keep working on writes.

Breaking: seen_timestamp → seen_at

The document read-tracking timestamp (when the recipient first opened the PDF) is renamed seen_timestamp → seen_at, matching the *_at convention used by the other timestamps.

Breaking: bank account internal fields removed

Two fields are removed from the bank accounts resource — both exposed internal state the API shouldn’t have surfaced:

  • invoice_display — removed from responses and the create/update request body. It had no effect (nothing reads it yet; it was reserved for a future “choose which accounts appear on an invoice” capability). On create/update, stop sending it — the key is now ignored.
  • tenant — removed from responses. It was an internal flag for the property-management (realities/rents) feature, never accepted on writes and unrelated to API tokens or multi-workspace access.
{
"id": 42,
"name": "Tatra Bank EUR",
"iban": "SK6807200002891000000018",
- "invoice_display": true,
- "tenant": false
}

Documents and expenses now expose the counterparty’s pinned legal name and the computed monetary totals:

  • legal_name on the embedded customer / supplier — the identity frozen at issue time, not the live party. (trading_name was removed; it was unused.)
  • subtotal, vat_amount, total, vat_summaries (Peppol LegalMonetaryTotal / TaxTotal), plus the live payment pair amount_paid / amount_due (amount_due = total − amount_paid). All monetary values are decimal strings.

Fixed: vat_payer_type enum

The documented vat_payer_type values now match the API: standard, non_payer_vat, foreign. The spec previously advertised vat_registered_eu / vat_registered_oss, which the API does not accept.