account_ledger
POST /api/v1/queries/account_ledger
Base URL: https://boringbooks.io.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
account_id | string (uuid) | yes | |
cursor | string, nullable | no | |
limit | integer | no | Min: 1. Max: 200. |
Example:
{
"account_id": "22222222-2222-4222-8222-222222222222",
"limit": 50
}
Response (200)
| Field | Type | Required | Description |
|---|---|---|---|
currency | Currency | yes | |
has_more | boolean | yes | |
lines | array of object | yes | |
lines[].credit | Amount | yes | |
lines[].debit | Amount | yes | |
lines[].dimensions | object, nullable | no | |
lines[].journal_id | string (uuid) | no | |
lines[].line_no | integer | no | |
lines[].memo | string, nullable | no | |
lines[].posting_date | string (date) | no | |
next_cursor | string, nullable | yes | |
total_count | integer | yes | |
total_count_exact | boolean | yes |
Shared types
Fields typed with one of these names refer to it.
Amount(string): A monetary amount as a decimal string, fixed to the currency's scale — two fraction digits for most supported currencies, none for JPY, e.g. "1000.00" or "1000" for JPY. Never a JSON number. Report figures may be negative; a journal line'sdebitandcreditare always non-negative, with "0.00" ("0" for JPY) on the side the line is not on.Currency(string): An ISO 4217 alphabetic currency code — a ledger's own functional currency. The supported set is additive, so do not treat it as closed.
Errors
Every error response is a single error object with a closed type and a refining code. The codes, and the conventions every operation shares, are in llms-full.txt.