Skip to main content

Create Opening Balance Equity Account

POST 

/api/ledger/opening-balance/equity-account

Create the provider-conventional "Opening Balance Equity" account when the chart of accounts has none, so the opening-balance form's balancing-equity selector has something to point at. The created account is type Equity and is a never-synced internal plug. Its code is the first free preferred code (970, then 3000, then 9999, then numerically incremented past the last candidate), checked against ALL codes including archived ones since code is the unique key.

Not yet available to API tokens

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

Authentication: Requires Bearer token + accounting.manage_settings.

Idempotent: if an account whose name contains "opening balance" already exists, that existing account is returned and no new account is created.

No request body. Returns the created (or existing) nominal code as data.nominal_code.

Request

Responses

OK

Response Headers
    Content-Type