Create a portfolio account
Creates one Chart of Accounts row. Requires Advanced Ledger; when it is unavailable, returns HTTP 403 with the flat response fields statusCode: 403, code: "FeatureNotEnabledError", and message containing the complete actionable reason: "Advanced Ledger is required to create accounts. Ask a workspace owner or billing manager to enable it." Omit subType and normalBalanceType to derive them from the account type and currency. A requested parent must have the same account type as the new account and must not carry journal activity. Returning the canonical account response also requires ledger-account view permission.
Request
- Base URL: https://api.tokenbooks.io (the document declares no server; this is the origin it was published from)
- URL: https://api.tokenbooks.io/v1/portfolios/{portfolioSlug}/accounts
- Auth: API key in header x-api-key
Path parameters
Workspace-scoped portfolio slug
Request body
Response
The created account in the shared account row shape.
Changes
No recorded changes to this operation across all 1 revision of this API.