List balance movements
Returns the individual entries behind your account balance: refills, payments, and label/subscription charges, each with the running balance immediately after it -- your account statement.
Reads directly from the account's own records, so a just-booked entry appears immediately.
Two ways to page through results: page/per_page for browsing a bounded range, or before_id for walking a large account's full history -- see the before_id parameter below.
Query parameters
"From" timestamp for the entries to be included in the filter. Examples:
- 2017-06-19T11:00:03.305+02:00
- 2017-06-19 will be transformed into 2017-06-19T00:00:00.000+02:00
Date filters are intended for recent periods. A narrow window far in the past is slow to query on a large account regardless of how few rows it matches; walking a long history should use before_id instead of a date range.
"To" timestamp for the entries to be included in the filter. Examples:
- 2017-06-29T11:00:03.305+02:00
- 2017-06-29 will be transformed into 2017-06-29T00:00:00.000+02:00
Same caveat as created_at_min: prefer before_id over a narrow historical date range on a large account.
Restrict to entries relating to this kind of record.
Restrict to charges (sales_document) or refills/payments (transaction).
Restrict to the entry settling this entry ID.
For pagination. Defines how many entries are returned per page. Capped at 50 with page, or at 500 when paging with before_id instead.
For pagination. Defines which page the results are fetched from. Ignored when before_id is present.
Returns entries with an id lower than this one, most recent first -- cursor pagination. Takes precedence over page when both are given. Unlike page/per_page, cost is constant regardless of how deep into an account's history you page, since it filters by id directly instead of skipping and discarding rows. Use this to walk a large account's full history; use page/per_page to browse a bounded, recent range. The response's X-Next-Before-Id header, present whenever a full page was returned, is the value to pass for the next page.
Response
Successful.
Example response
[
{
"id": 8172345,
"amount": "-49.00",
"currency_code": "DKK",
"balance": "451.00",
"description": "Shipment #123456"
}
]