commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Customer → Query Customers

AI-generated

Summary

Query customers in commercetools using optional filtering, sorting, pagination, and expansion parameters.

Inputs

  • Filters — Collection of optional query parameters to filter and control the customer query results, including: Expand (string), Sort (string), Limit (string), Offset (string), With Total (string), and Where (string) filter expression.

Output shape

a JSON object representing the queried customers, including the applied filters, pagination metadata, and optionally expanded references.

Results reflect the commercetools API response; filters are applied as query parameters; supports limit and offset for pagination; the output JSON corresponds to the customer query response body.

Examples

Example 1: Fetch up to 10 customers sorted by their creation date with expanded customer group references.

Set Filters: Limit=10, Sort=createdAt asc, Expand=customerGroup

Links

Discussion