v1
latestOpenAPI 3.1.0Copyright Pismo2026-07-247702,7523.1 MBAccounts
Get account hierarchy ascendants
Get account hierarchy information including all parent/ancestor accounts.
This endpoint returns the account details along with an array of all parent accounts in the hierarchy, with each parent containing information about its level, centralizer status, and relationship to other accounts in the hierarchy.
get/accounts/v4/accounts/{accountId}/hierarchy/ascendants
Path parameters
accountIdinteger required
Example:6912345
Account ID
Response
OK
Example response
{
"account_id": 6912345,
"name": "Hyman Roth",
"document_number": "7777888hh",
"customer_id": 5648988,
"social_name": "Jack",
"entity_id": 1234567891,
"program_id": 1010,
"status": "NORMAL",
"postal_address_id": 456,
"creation_datetime": "2024-01-04T10:25:30.123Z",
"external_id": "8c8a4dd7-e48f-4c15-85b7-9d12f401057f",
"account_type": "TRAN",
"account_name": "Account cash management",
"division_id": "6f8a456a-8b1a-4022-a2f8-7612595330b5",
"currency_numeric_code": "840",
"parents": [
{
"account_id": 6912345,
"level": 1,
"parent_account_id": 6912345,
"currency_numeric_code": "840",
"program_id": 1010,
"division_id": "6f8a456a-8b1a-4022-a2f8-7612595330b5"
}
]
}