The parent relationship is set in the dashboard or through the public customer API, with
parent_customer_id on POST /customers and PATCH /customers/{id}. See Set the parent through the API.Who uses this
How families work
A customer family is a single-level hierarchy:- A parent is any customer that has children. There is no explicit “make this a parent” action; a customer becomes a parent when another customer is assigned to it.
- A child has exactly one parent.
- A standalone customer has neither.
Configuring a family
Assign a parent when creating a customer
- Go to Customers and click New Customer.
- Fill in the standard fields (name, email, address, currency).
- In Parent Customer (Optional), select the parent. Only customers that do not already have a parent are offered, which prevents circular or multi-level hierarchies.
- Save.
Change or remove a parent
Open the child customer’s profile, change or clear the Parent field, and save.See the relationship
A child’s profile shows its parent as a link; a parent’s profile lists its children.Set the parent through the API
The customer resource carries the relationship asparent_customer_id, the ID of the parent customer. It is returned on every customer that has a parent and omitted on every other customer.
parent_customer_id accepts the same identifiers as the {id} in the request path: the parent’s Alguna customer ID, one of its aliases, or a connected-account external ID such as a Stripe customer ID. The response always returns the parent’s Alguna customer ID.
400 when:
- the parent customer does not exist
- the parent customer is itself a child
- the customer would become its own parent
- the customer being updated already has children of its own
System behaviour
Edge cases
- Removing a parent from a child with roll-up subscriptions: schedules are recalculated and future invoices go to the child directly. Issued invoices are not changed.
- Moving a child to a different parent: schedules for the old parent, the new parent and the child are all recalculated.
Impact elsewhere
Example
Acme Corp has three regional offices and finance wants a single invoice.
Each office has its own subscription. With roll-up billing enabled on each child subscription, Acme Corp receives one invoice with line items grouped by subsidiary, while usage, entitlements and revenue remain attributed to each office.