Skip to navigation

Keep your users updated as your project evolves

June 9, 2026

Breaking: workspace-scoped URLs

The tenant in the API is now called a workspace (previously “account”). Every workspace-scoped path changed accordingly, and the caller-identity endpoints moved too.

BeforeAfter
/accounts/{account_id}/.../workspaces/{workspace_id}/...
/user/accounts/user/workspaces
/user/accounts/{account_id}/user/workspaces/{workspace_id}
/user/accounts/{account_id}/set_default/user/workspaces/{workspace_id}/set_default

The path parameter is renamed account_id → workspace_id. The id value itself is unchanged — what was the account id is now the workspace id. To migrate, replace the /accounts/ segment with /workspaces/:

- GET https://app.lucanto.eu/api/v1/accounts/42/invoices
+ GET https://app.lucanto.eu/api/v1/workspaces/42/invoices

Workspace tokens (lct_live_) remain bound to a single workspace — the workspace_id in the path must match the token’s workspace, or the request returns 403.

Breaking: contact party_id field

A counterparty’s legal entity is now a party (previously “invoice account”). On the contact resource, the field invoice_account_id is renamed to party_id, in both responses and the create/update request body:

{
"contact": {
"name": "ACME s.r.o.",
- "invoice_account_id": 318
+ "party_id": 318
}
}

The id value is unchanged. Invoice fields are not affected — purchaser_id and supplier_id keep their names (they’re document roles, not the entity rename).

New: sort list endpoints

Cursor-paginated list endpoints now accept optional sort and order query parameters. Supported on invoices, quotes, proformas, credit notes, and expenses:

GET /workspaces/42/invoices?sort=created_at&order=asc
  • sort — currently created_at (date fields like issue_date come later, once null-ordering is defined).
  • order — asc or desc (default desc).
  • An unknown sort value is ignored and the default order applies — no error.
  • contacts, projects, and bank_accounts don’t support sorting yet and are unchanged.

Default ordering (newest first) is unchanged when you omit sort.