GET
/
api
/
external
/
v2
/
ledger_accounts
{
  "current_page": 1,
  "items": [
    {
      "country_alpha2": "FR",
      "enabled": true,
      "id": 124,
      "label": "Secondary Account",
      "number": "512",
      "vat_rate": "any"
    },
    {
      "country_alpha2": "FR",
      "enabled": true,
      "id": 124,
      "label": "Secondary Account",
      "number": "512",
      "vat_rate": "any"
    }
  ],
  "per_page": 20,
  "total_items": 12,
  "total_pages": 5
}

Query Parameters

page
string

Items are paginated, this is the current page which will be returned. The page index is starting at 1.

Example:

"1"

per_page
string

Items are paginated. By default, you get 20 items per page. You can specify another number of items per page.

Example:

"20"

filter
string

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
  • enabled: eq
Example:

"[{\"field\": \"number\", \"operator\": \"start_with\", \"value\": \"411\"}]"

Response

200
application/json

Returns a list of ledger accounts

The response is of type object.