Get v2customers
Retrieves a paginated list of customers based on the provided filter criteria.
Authorizations
Authorization: Bearer <SPIRII_API_KEY>
Query Parameters
Filter the total amount of items returned.
Skip the first N items in the result set.
When set, returned customers will be sorted by one of the available properties, descending if not otherwise specified by sortDirection.
When used with createdAt* default is createdAt.
When used with updatedAt* default is updatedAt (even if combined with createdAt*).
id, name, type, ownerName, cpoName, createdAt, updatedAt When set, returned customers will be sorted either descending or ascending. When used with createdAtFrom or updateAtFrom, default is asc.
desc, asc Search across customer names and IDs. This includes externalId.
Ids of the customers to return. Other filters (and permissions requirement) will still apply.
Types of the customers to filter. Multiple types can be selected.
Private, Business, CPO, CPOSubsidiary ID of the owner of the customer, also known as parent. This will return direct descendant of the provided customer ID. Only available for filtering if you are the owner or have appropriate permissions.
ID of the owner of the customer, also known as parent. This will return all customers owned by this ownerId. Only available for filtering if you are the owner or have appropriate permissions.
ID of the CPO above the customer, also known as Operator. Only available for filtering if you are the CPO or have appropriate permissions.
Creation date of the customer.
Start date for filtering by creation date. When set, filter sortBy defaults to createdAt.
End date for filtering by creation date. When set, filter sortBy defaults to createdAt.
Last update date of the customer.
Start date for filtering by last update date. When set, filter sortBy defaults to updatedAt.
End date for filtering by last update date. When set, filter sortBy defaults to updatedAt.