Using AI coding agents like Claude Code or Cursor? Try the official Chargebee Agent Skills to speed up your development.Try now
ChargebeeAPI

Get account hierarchy for a customer

Retrieves the full or partial account hierarchy for a customer.

Sample Request

Sample Result[JSON]

URL Format

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

Input Parameters

hierarchy_operation_type
required, enumerated string

Specifies which part of the account hierarchy to retrieve for the customer identified by {"customer_id"} .

Enum Values
complete_hierarchy
subordinates
path_to_root

Returns

always returned
Resource object representing hierarchie