Skip to navigation

List customer units

Lists the customer’s units, newest first, the root included. Archived units are left out unless includeArchived is true. parent limits the list to that unit’s direct children and kind to one level label. {customer} takes the customer’s cus_ ID, your externalId, or one of its aliases. {unit} takes the unit’s cu_ ID or your unit externalId, resolved within that customer; a value starting cu_ is tried as a Paid ID first.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Path parameters

customerstringRequired1-255 characters

The customer’s cus_ ID, your externalId, or one of its aliases.

Headers

Paid-BetaenumRequired

This endpoint is in the customer_units=v1 beta. Send this header to use it.

Allowed values:

Query parameters

cursorstringOptional

The nextCursor of the previous page. Omit it for the first page.

includeArchivedenumOptional

Pass true to include archived objects.

Allowed values:
kindstringOptional

Only units with this kind, matched exactly.

limitintegerOptional1-100Defaults to 10
How many objects to return, 1 to 100. Defaults to 10.
parentstringOptional1-255 characters

Only the direct children of this unit of the customer: its cu_ ID or your externalId.

Response

200
objectenum

The type of object. Always list.

Allowed values:
datalist of objects
The customer's units on this page, newest first.
hasMoreboolean
Whether another page follows this one.
nextCursorstring or null

Send it as cursor to get the next page. Null on the last page.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error