GET
/
v1
/
organizations
/
{organization_id}
/
ledgers
/
{ledger_id}
/
accounts
List Accounts
curl --request GET \
  --url http://127.0.0.1:3000/v1/organizations/{organization_id}/ledgers/{ledger_id}/accounts \
  --header 'Content-Type: <content-type>'
{
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"organizationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"ledgerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assetCode": "<string>",
"name": "<string>",
"alias": "<string>",
"type": "deposit",
"parentAccountId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"entityId": "<string>",
"portfolioId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"segmentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": {
"status": {
"description": "<string>",
"code": "<string>"
}
},
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z"
}
],
"page": 123,
"limit": 123
}

Headers

Content-Type
string
required

The type of media of the resource. Must be <code>application/json</code>.

X-Request-Id
string

A unique identifier used to trace and track each request.

Path Parameters

organization_id
string
required

The unique identifier of the Organization associated with the Ledger.

ledger_id
string
required

The unique identifier of the associated Ledger.

Query Parameters

limit
string
required

The maximum number of items to include in the response. Max: 100

start_date
string

The beginning of the period you want to retrieve. You must also include the end_date.

end_date
string

The end of the period you want to retrieve. You must also include the start_date.

sort_order
string

The order used to sort the results.

page
string
required

The number of the page that you want to retrieve.

metadata.key
string

Any Metadata the entity should have.

Response

Indicates that the request was successful and the response contains the expected data.

items
object[]
page
integer

The number of pages returned.

limit
integer

The maximum number of items included in the response.