Accounts
/ledger/accounts/by-code/{code}
Look up an account by its unique code (e.g. WARD-{studentId}).
Authorization
ApiKey X-Api-Key<token>
Tenant API key (sk_live_…), minted from the platform console.
In: header
Path Parameters
code*string
Response Body
curl -X GET "https://example.com/api/v1/ledger/accounts/by-code/string"Empty
Edit on GitHub
Last updated on
/ledger/accounts/{accountId} GET
Previous Page
/ledger/accounts/{accountId}/rename-code POST
Repair an account's code within this tenant. Exists for the mis-templated-product incident class: an account created under a wrong AccountCodeTemplate breaks every code-addressed posting (e.g. a payout capture) AFTER money has moved. Balances, journal lines and holds reference the account by ID, so renaming the code is safe: only future code lookups change. Codes stay unique per tenant.