CorebanqCorebanq Developer Docs
Accountsv2

List the account's subledger catalog

Handler: ListAccountSubledgers. Returns the full menu-purpose catalog for the account: each purpose with whether it is routable (a control ledger is configured) and whether it is already open (with the open subledger's balances).

GET
/v2/accounts/{id}/subledgers

Path Parameters

id*string

Account id.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v2/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08/subledgers"
[
  {
    "purpose": "string",
    "anchor_level": "account",
    "label": "string",
    "open": true,
    "routable": true,
    "control_code": "string",
    "subledger": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "code": "string",
      "balance_posted": {
        "amount": "123456",
        "currency": "EUR",
        "precision": 2
      },
      "balance_available": {
        "amount": "123456",
        "currency": "EUR",
        "precision": 2
      }
    }
  }
]
{
  "status": 400,
  "message": "string",
  "code": "transfers_m.account_not_found",
  "class": "validation",
  "retryable": false,
  "details": [
    {
      "field": "amount",
      "rule": "gt",
      "param": "0",
      "message": "amount must be greater than 0"
    }
  ]
}
{
  "status": 400,
  "message": "string",
  "code": "transfers_m.account_not_found",
  "class": "validation",
  "retryable": false,
  "details": [
    {
      "field": "amount",
      "rule": "gt",
      "param": "0",
      "message": "amount must be greater than 0"
    }
  ]
}
{
  "status": 400,
  "message": "string",
  "code": "transfers_m.account_not_found",
  "class": "validation",
  "retryable": false,
  "details": [
    {
      "field": "amount",
      "rule": "gt",
      "param": "0",
      "message": "amount must be greater than 0"
    }
  ]
}
{
  "status": 400,
  "message": "string",
  "code": "transfers_m.account_not_found",
  "class": "validation",
  "retryable": false,
  "details": [
    {
      "field": "amount",
      "rule": "gt",
      "param": "0",
      "message": "amount must be greater than 0"
    }
  ]
}