Accounts
Opening balance, movements, closing balance over a range
Opening balance, the movements in between, and closing balance over a range of effective time.
GET
/v1/ledgers/{ledgerId}/accounts/{accountId}/statementOpening balance, the movements in between, and closing balance over a range of effective time. Opening and closing always cover the whole range; limit bounds only the lines, and when it truncates them the statement says so with truncated: true rather than presenting a partial list of lines that cannot reconcile to the totals shown. limit is clamped to the contract maximum.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
ledgerId*string
Format
uuidaccountId*string
Format
uuidQuery Parameters
from*string
Format
date-timeto*string
Format
date-timelimit?integer
Range
value <= 1000Default
100Response Body
application/json
application/problem+json
curl -X GET "https://example.com/v1/ledgers/497f6eca-6276-4993-bfeb-53cbbbba6f08/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/statement?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z"{ "account_id": "449e7a5c-69d3-4b8a-aaaf-5c9b713ebc65", "from": "2019-08-24T14:15:22Z", "to": "2019-08-24T14:15:22Z", "opening": 0, "closing": 0, "lines": [ { "txn_id": "3dd6ecc9-94bf-4fc7-98ae-cdbe5b6f62e4", "txn_type": "string", "direction": "credit", "amount": 0, "commodity": "string", "effective_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z" } ], "truncated": true}