customers

List customer units

Lists the customer's units as a flat list, newest last; assemble the tree from parentExternalId (null on the root unit, isRoot: true). Deleted units are hidden unless status=DELETED is given, drafts unless status=DRAFT. Filter by externalType, or by parentExternalId for one level of the tree. Use the value returned as customer.id, for example cus_abc123; if you have your own customer ID, use the /api/v2/customers/external/{externalId}/… twin.

get/customers/{id}/customer-units

Request

  • Base URL: https://api.agentpaid.io/api/v2
  • URL: https://api.agentpaid.io/api/v2/customers/{id}/customer-units
  • Auth: HTTP bearer

Path parameters

idstring required

Paid customer display id

Query parameters

limitinteger
offsetinteger
status'ACTIVE' | 'DELETED' | 'DRAFT'

Filter by status (default ACTIVE; drafts are listed only with DRAFT).

externalTypestring

Filter by external type.

parentExternalIdstring

Your external ID of the parent unit; lists its direct children.

Response

200

Changes

No recorded changes to this operation across all 1 revision of this API.