Skip to main content

Link Provider Account

PUT 

/api/ledger/accounts/:nominalCode/integration-account

Point a GL account at a specific provider account in your connected accounting system (QuickBooks Online or Xero). Future syncs post this account's journal lines to the linked provider account; entries already synced are not moved.

Not yet available to API tokens

This endpoint currently requires session authentication; Personal Access Token scope support is in progress.

Authentication: Requires Bearer token. Gated by the accounting.manage_settings permission.

Body:

  • provider (required) — qbo or xero.
  • provider_account_id (required) — id of the imported provider account row (from the provider's accounts list).
  • acknowledge_type_mismatch (optional, boolean) — required true when the provider account's classification (Asset/Liability/Equity/Revenue/Expense) conflicts with the GL account's type; the request is rejected with 422 on acknowledge_type_mismatch until confirmed.

Guardrails (422): the provider account must exist; Xero inventory-type accounts are never linkable; the account mapped as Inventory Control only accepts an asset-class provider account.

Returns the same shape as Get Account Overview. The change is recorded in the account's activity log.

Request

Responses

OK

Response Headers
    Content-Type