Introducing the Better Auth Chargebee plugin: Use it to handle subscriptions, billing, and auth seamlessly.
Chargebeechargebee API

Get paginated account hierarchy for a customer

Retrieves the account hierarchy tree for the customer.

Sample Request

Sample Result[JSON]

URL Format

GET https://[site].chargebee.com/api/v2/customers/{customer-id}/hierarchy_detail

Input Parameters

limit
optional, integer, default=10, min=1, max=100

The number of resources to be returned.

offset
optional, string, max chars=1000

Used for pagination. Set this to the next_offset value from the previous API response to fetch the next page.

hierarchy_operation_type
required, enumerated string

Specifies which part of the hierarchy to fetch. Choose from the available operation types.

Enum Values
complete_hierarchy
subordinates
path_to_root

Returns

next_offset
optional, string, max chars=1000

This attribute is returned only if more resources are present. To fetch the next set of resources use this value for the input parameter offset.

Hierarchy object
Resource object representing hierarchy