GET
/
v1
/
organizations
/
{organization_id}
/
ledgers
/
{ledger_id}
/
account-types
List Account Types
curl --request GET \
  --url https://onboarding.sandbox.midaz.io/v1/organizations/{organization_id}/ledgers/{ledger_id}/account-types
{
"items": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"keyValue": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"deletedAt": "2023-11-07T05:31:56Z",
"metadata": {}
}
]
}

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

The maximum number of items to include in the response.

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.

cursor
string

The position in a dataset where the next page of results should start.

metadata.newField
string

The new field that will be included in the research as metadata.

Response

Indicates that the resource was successfully created and the operation was completed as expected.

items
object[]