Conventions
Ids, paths, pagination, idempotency, rate limits and versioning.
These rules hold on every /v1 operation unless its reference says otherwise.
Ids
UUIDs name companies, organizations, portfolios, bank accounts and transactions,
reconciliation groups, documents, jobs, imports, policies, webhook endpoints, tasks, and
accounts (accountId, one per accounting year). They are stable for the resource's life.
Text ids are opaque strings. Never parse or build them.
| Id | Stable |
|---|---|
lineId (general-ledger lines), openingBalanceId, parentOpeningBalanceId |
Across re-imports. A pushed line's lineId is not derived from your sourceLineId. |
subjectKey on comments and flags |
Typed: type says which of accountId, lineId, openingBalanceId, openItemId, … it carries. |
id on work-queue items and blockers |
While the item exists. |
id on deadlines (vat-2026-T3, amelding-2026-05) |
For that deadline. |
periodKey, target. on tasks |
See tasks. |
runId on approvals; keys you or the ERP chose: account numbers, dimension key, partyKey, voucherKey, erpDocumentId, suggestionKey |
As chosen. |
Names and values
| What | Rule | Example |
|---|---|---|
| JSON fields, query and path parameters | camelCase |
pageSize, {companyId} |
| Enum values | UPPER_ (exceptions) |
RECONCILED, AWAITING_ |
error codes, reason values |
snake_ |
job_ |
| Scopes | resource:action |
ledger:read |
| Headers | Http-Case |
Idempotency-Key |
| Amounts you read | JSON numbers with decimals, signed where the domain is. Parse as decimal, never float. | -6000. |
| Amounts you send (imports) | Decimal strings, at most four decimals. Numbers are accepted. | "-1250. |
| Dates, timestamps | ISO 8601; timestamps are UTC instants | 2026-03-01 |
| Media type | application/; errors application/ (catalog) |
One name per concept everywhere: the accounting year is year (yearFrom/yearTo,
years), an account is accountNumber or accountId, a date range is
dateFrom/dateTo, free text is query, a month of the year is period (beside
periodType). A query parameter under a retired name is refused (400,
reason: parameter_renamed), never ignored.
Enums
- Values are
UPPER_SNAKE_CASE. Exceptions, sent back exactly as read: aging buckets (0-30,91+, besideNO_DUE_DATEandNOT_DUE), the account rule language (balanceRecon.methodcarry_forward,matchRulesoperators such as>=), and lists that name fields (reset, a template value'sfield). - Send any case on
/v1.reconciliationStatus=reconciledworks; a value outside the set is refused with the values named in upper case. On MCP, a parameter whose input schema lists anenumis checked as written, in upper case. - Response enums are open. They carry
x-extensible-enum: true: a release may add a value. Treat an unknown value as "other"; don't generate closed types from them. Request enums are closed.
Reach
Your token defines your reach: the client's organization and the organizations below it.
Anything outside it is 404, never 403, whether or not it exists.
Paths
| Prefix | Holds |
|---|---|
/ |
What an organization administers: users, access policies, webhook endpoints, audit log, creating a company. |
/ |
A company's data and settings. A child is read by its own id under its company; another company in the path is 404. |
/ |
Reads across a portfolio's companies. |
| Top level | Globally unique ids: /, /, /, /, /. Reach is checked inside. |
- Accounts are
/companies/{companyId}/accounts/{accountNumber}?year=…. The number is stable across years;accountIdnames one year's account. AnaccountIdwith an explicityearof another year is400 validation_failed,reason: account_year_mismatch, on/v1and MCP. Leaveyearout or send the id's own. - Bank reconciliation groups: create with
POST /companies/{companyId}/bank/reconciliations, list withGET /companies/{companyId}/bank/accounts/{bankAccountId}/reconciliations, read and delete at/companies/{companyId}/reconciliations/{reconciliationGroupId}(the create'sLocation). - A bank account's two sides:
…/bank/accounts/{bankAccountId}/transactionsand the GL lines it feeds,…/bank/accounts/{bankAccountId}/gl-lines?year=…. Filter either withreconciliationStatus=UNRECONCILED. A GL account fed by several bank accounts is summed atGET /companies/{companyId}/bank/gl-accounts/{glAccountNumber}/summary?year=…&accountPeriod=…. - Actions are
POST …/actions/<verb>:disable,enable,restore,archive,complete,rotate-secret,apply,deactivate,reactivate. - Bodies are capped at 8 MiB; larger is
413 payload_too_large, refused before parsing.
Deletes
DELETE takes no body. The company delete takes an optional audit note as ?reason=.
| You delete | Answer | Again |
|---|---|---|
| A company or a document | { "id", "status": "DELETED", "deletedAt" } |
The same body, first deletedAt |
| A reconciliation group or a webhook endpoint | { "id", "status": "DELETED", "deletedAt" } |
404 |
| Part of a resource: an account's mapping or routine, an intercompany line or linked account | The resource as it is now | |
A document connection (DELETE /) |
The connection, kept as history with detachedAt |
The first removal |
| Imported data: accounts, dimensions, sub-ledger entries, opening balances, ledger lines | 202 with the import to poll |
|
| An access assignment | The revocation, status: REVOKED |
An omitted year
year is the accounting year. Each operation's reference says what leaving it out means:
Without year |
Operations |
|---|---|
| The current accounting year: the one the ledger marks current, not the calendar's | Most company reads; account settings, routines, mapping and correction routes. Send year on writes and deletes (DELETE …/, mapping and settings writes). |
| Every year | GET …/, a bank account's reconciliation groups, VAT terms, approvals |
The year accountNumber resolves in (the current one) |
Account activity, flags, settlements |
Required (400 without it) |
Portfolio reads, the bank reconciliation summary, a bank account's opening balance and GL lines, the bank GL account summary |
A portfolio's period
period counts from each company's fiscal-year start: period 5 of 2026 is May 2026 for a
January start and November 2026 for a July start. To read one calendar month across a
portfolio, add yearMonth=YYYY-MM to the three portfolio reads. Each company is then read
at its own year and period, named on each close-status row (year, period). year and
period stay required; yearMonth wins. A company whose fiscal years don't reach the
month is left out. A malformed yearMonth is 400.
From a task to its account
A task (GET /companies/{companyId}/tasks, or GET /organizations/{organizationId}/tasks
across an organization's own companies) is one rule's finding on one target for one period.
| The task says | Read it with |
|---|---|
target. ACCOUNT: accountNumber, year |
GET / |
target. INTERCOMPANY: definitionId |
GET / |
target. COMPANY |
The company's own reads (target. is its id) |
id |
GET /: its episodes and latest 50 changes |
periodKeyisNONE,FY:<year>orTERM:<periodType>:<year>:<period>(TERM:BIMONTHLY:2026:5). Pass it back as theperiodKeyfilter.- An account task covers a year (
FY:2026): it hasyearand noperiod. For the bank and sub-ledger rules,evidence.periodnames the period judged (MONTHLY:9). - Only
TERMtasks carryperiodTypeandperiod. The type may be one the close reads don't take (HALF_MONTHLY,BIWEEKLY,WEEKLY_ISO). A term'syearis its own: for VAT terms and payroll months the calendar year. - Tasks are whole-company. A client whose linked person sees only some accounts gets
404for the company's tasks; the organization list leaves the company out. A client without a linked person sees the tasks of every company it reads. - A client with a linked person doesn't see that person's snoozed or hidden tasks unless it
sends
includeSnoozedorincludeHidden;myStateshows them.assignee=meneeds a linked person. - Tasks are read-only here.
Bank and ledger signs
Both sides book a movement with the same sign: a payment of 6 000 is -6000 in the bank
and -6000 on the ledger, never +6000. A reconciliation group balances when
glAmountTotal - bankAmountTotal = 0. Creating a group does not check the balance, so
check it yourself.
Settings writes
Settings writes (settings:write) are patches: an omitted field stays, and null is the
same as omitting it. To clear a value or return it to its default, name it in reset
where the operation has one ("reset": ["accountTemplateId"]).
Each settings read returns a token; each write sends it back. A changed token is
409 conflict naming the current one. Read again and re-apply your change; don't just
retry with the new token.
| Token | Read from | Send as | The 409 carries |
|---|---|---|---|
| A version string | version on company settings, contacts, the account-template choice, an intercompany link and the groups, a routine source; companyRoutineVersion on routines |
expectedVersion (body; query on actions and deletes). Optional. |
currentVersion |
| An account revision | settingsRevision on account settings and mappings |
settingsRevision (body; query on DELETE …/). Required. |
currentRevision on account settings; nothing on the others |
Access policies, webhooks and companies take no token.
Pagination
{ "data": [ ... ], "pagination": { "nextCursor": "…", "hasMore": true } }
- Loop while
hasMoreistrue, sendingnextCursorback ascursor. A page can be empty whilehasMoreistrue. - Cursors are opaque, signed, and bound to your client and filters. Other filters with a
cursor is
400 invalid_cursor: restart from page one. pageSizeis 1–200, default 50. Outside that is400 validation_failed, not clamped.- Some lists take no
cursoryet and are one page (hasMore: false): accruals, bank accounts, blockers, deadlines, reconciliation adjustments, VAT terms, access policies, users, effective access, webhook endpoints, the two portfolio status lists, company contacts, intercompany groups and links, standard accounts. Loop on them anyway; they may page later. - Some lists carry fields beside
data: the version token of contacts and intercompany groups, the country of the standard accounts. - The trial balance pages its
accounts.companyId,yearandtotalsare on every page, andtotalscover the whole year.
Idempotency
Every POST, PATCH and DELETE needs an Idempotency-Key header: a unique string,
such as a UUID per logical action.
| Retry | Result |
|---|---|
| Same key, same body, within 24 hours | The stored response, byte-identical, with Idempotency-Replayed: true |
| Same key, different body | 422 idempotency_ |
| Same key while the first request runs | 409 idempotency_, with Retry-After |
| Same key after 24 hours | Executes again as a new request |
Keys are scoped per API client and per operation. A replayed document upload returns the signed URL as stored, which may have expired: start a new upload with a new key.
When you PUT a file to upload.url, send every header in upload.headers exactly:
Content-Type, x-goog-content-length-range (at most the declared sizeBytes) and
x-goog-if-generation-match: 0 (the URL creates the file once). They are signed; storage
refuses the PUT without them.
400 or 422?
400 validation_failed: malformed. Unparseable, missing, or outside the accepted shape:pageSize=500,period13, a bad date. Fix the request.422 unprocessable: well-formed, but a rule refuses it: an account code missing from the year's chart (reason: unknown_account_codes), a forbidden character in an id, an unknown role. Fix the data.409 conflict: the request is fine; the state is not.
400 and 422 share the errors[] item:
{field, message, index?, allowedValues?}.
Async work
Heavy operations answer 202 Accepted with the resource to poll. For imports and
corrections that is the import, GET /v1/companies/{companyId}/imports/{importId}. Its
jobId is also readable at GET /v1/jobs/{jobId}; GET /v1/jobs lists the jobs your
client submitted, newest first (status filter). Poll to a terminal status, or subscribe
to job.succeeded and job.failed webhooks. One job per type and scope
runs at a time; another is 409 with jobId naming the blocking job.
Reconciliation runs
POST /v1/companies/{companyId}/reconciliation-runs (reconciliation:run) orders runs
now for 1 to 50 accounts of one year:
{ "year": 2026, "accounts": [ { "accountId": "…" }, { "accountNumber": "1920" } ] }
accountIdcomes fromdata[].accountIdofGET …/account-status;accountNumberis the account's number in that year.- The
202has one entry per account, in request order:ACCEPTEDwith arunId,NOT_ENABLED(automatic reconciliation is off for the company), orSKIPPEDwithreason: rate_limitedandretryAfterSeconds(one order per account per 15 minutes). - Nothing is ordered when an account is unknown (
404), of another year (400,reason: account_year_mismatch) or listed twice (400). - Poll
GET …/reconciliation-runs/{runId}(reconciliation:read):PENDING,PROCESSING, thenSUCCEEDED,FAILEDorSKIPPED. A run that didn't succeed has areason(bank_currency_unsupported,run_in_progress,not_delivered,not_started, …) and the recordederror.accounts[]has each account's status. GET …/reconciliation-runs?status=&since=lists the company's runs, scheduled ones included, newest first.- Read the deviations from the account:
GET …/accounts/{accountNumber}/reconciliation?year=&period=. - A run applies the account's automation settings, so it may approve periods.
Rate limits
| Plan | Requests/min | Burst |
|---|---|---|
standard |
300 | 60 |
premium |
1200 | 240 |
429 carries Retry-After. The quota is counted per API replica without a shared
counter: with several replicas you may get more, and RateLimit-Remaining describes the
replica that answered. Treat the figures as a guaranteed minimum. For bulk reads, prefer a
larger pageSize.
Versioning
/v1 is additive-only. New fields, endpoints, enum values and event types may appear at
any time: ignore what you don't know. Anything scheduled for removal is announced in the
changelog, marked with Deprecation and Sunset headers, and keeps
working at least 12 months after the announcement
(deprecation policy).
Response headers
| Header | On | Meaning |
|---|---|---|
X-Request-Id |
Every response | Correlation id. Send your own to have it echoed. Problem documents repeat it as requestId. Quote it to support. |
RateLimit-Limit, RateLimit-Remaining |
Every response | The plan quota per minute, and what is left of it on the answering replica. |
Retry-After |
429, 503, 409 idempotency_ |
Seconds to wait. |
Idempotency-Replayed |
Replayed mutations | true: the body is a stored response. |
Location |
201 of a create with its own read route |
The path to GET it, e.g. /. Sent for reconciliation groups, companies, intercompany links, access policies, webhook endpoints. |
Deprecation, Sunset |
Deprecated operations | @<epoch-seconds> the deprecation took effect; the HTTP-date it stops working. |
WWW-Authenticate |
401, 403 insufficient_ |
RFC 6750 challenge; names the missing scope. |