v1
latestOpenAPI 3.0.12026-07-141671231.8 MBLedger Accounts
List Ledger Accounts
List Ledger Accounts
ℹ️ This endpoint requires one of the following scopes: ledger_accounts:readonly, ledger_accounts:all
get/api/external/v2/ledger_accounts
Query parameters
cursorstring
Example:MjAyNS0wMS0wOVQwODoyNDozOC44MTI0NTha
Cursor for pagination. Use this to fetch the next set of results. The cursor is an opaque string returned in the previous response's metadata. Leave empty for the first request.
limitinteger
Number of items to return per request. Defaults to 20 if not specified. Must be between 1 and 1000.
filterstring
Example:[{"field": "number", "operator": "start_with", "value": "411"}]
You can choose to filter items on specific fields. Available fields and values:
- id: lt, lteq, gt, gteq, eq, not_eq, in, not_in
- number: start_with, eq, in
- enabled: eq
sortstring
Example:id
You can choose to sort items on specific attributes Sort field may be prefixed with - for descending order. Example : id will sort by ascending order, -id will sort by descending order. Available fields :
- id
Response
Returns a list of ledger accounts
Example response
{
"items": [
{
"id": 124,
"number": "512",
"label": "Secondary Account",
"vat_rate": "any",
"country_alpha2": "FR",
"enabled": true,
"type": "custom",
"created_at": "2023-08-30T10:08:08.146343Z",
"updated_at": "2023-08-30T10:08:08.146343Z"
}
],
"has_more": true,
"next_cursor": "MjAyNS0wMS0wOVQwODoyNDozOC44MTI0NTha"
}