API referenceStatements

A period of the ledger

Entries for a period, with the balances that bracket it — AC1. `start` is inclusive and `end` exclusive, so consecutive months tile: no entry lands in two statements or in neither. The opening and closing balances describe the whole period however many pages it is read in — a page-local pair would be a different number wearing the same name.

GET
/api/b/v1/statements

Entries for a period, with the balances that bracket it — AC1.

start is inclusive and end exclusive, so consecutive months tile: no entry lands in two statements or in neither. The opening and closing balances describe the whole period however many pages it is read in — a page-local pair would be a different number wearing the same name.

Authorization

OAuth2PasswordBearer
AuthorizationBearer <token>

In: header

Query Parameters

currency*Currency
Length3 <= length <= 3
start?|null
end?|null
after?|

The previous page's next_cursor.

limit?Limit
Range1 <= value <= 500
Default100
admin_access_token?string|null

Response Body

application/json

application/json

curl -X GET "https://example.com/api/b/v1/statements?currency=str"
{  "currency": "string",  "period_start": "2019-08-24T14:15:22Z",  "period_end": "2019-08-24T14:15:22Z",  "opening_minor": 0,  "closing_minor": 0,  "total_credits_minor": 0,  "total_debits_minor": 0,  "reconciles": true,  "entries": [    {      "sequence": 0,      "entry_type": "string",      "amount_minor": 0,      "balance_after_minor": 0,      "currency": "string",      "reference_type": "string",      "category": "string",      "transaction_id": "0fec1e58-b197-4052-99cf-2218496c5482",      "created_at": "2019-08-24T14:15:22Z"    }  ],  "next_cursor": 0}