Idempotency Supported
Establish a hierarchical relationship between customers. The path parameter customer_id identifies the child in this relationship.
Prerequisite Both parent and child customers must be part of the same business entity.
Note
- A customer can have a maximum of 250 direct children.
- The hierarchy allows a maximum of 5 levels from the root node to the lowest child node.
Note
For the use_default_hierarchy_settings, parent_account_access, and child_account_access parameters below, the term "parent" usually refers to the customer with the ID payment_owner_id. However, if the payment_owner_id is the same as the child's ID ({customer_id}), the "parent" is identified by parent_id.
Sample Request
Sample Result[JSON]
URL Format
POST https://[site].chargebee.com/api/v2/customers/{customer-id}/relationships
Input Parameters
Decides if Chargebee should apply settings from the Chargebee Billing UI or from this API request.
- If set to
true: Chargebee uses settings configured in the Chargebee Billing UI. - If set to
false: Settings provided in theparent_account_accessandchild_account_accessparameters are applied.
Returns
Customer object
Resource object representing customer