commercetools icon

commercetools

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

Actions671

Order → Query Orders

AI-generated

Summary

Query orders in the commercetools project using optional filters to customize the results.

Inputs

  • Filters — Optional filters to refine the query, including Expand (to fetch expanded references), Sort (to order results), Limit (to restrict number of orders returned), Offset (to skip a number of orders), With Total (to include total count), and Where (to apply a query predicate).

Output shape

a list of order records matching the specified query filters, returned as JSON objects

Supports filtering by various parameters; the exact returned structure follows the commercetools API response for orders. Pagination is controlled via Limit and Offset filters. Errors are returned as failure responses unless configured otherwise.

Examples

Example 1: Query orders with a limit and sort

Set Limit to '10' and Sort to 'orderDate desc' in Filters to retrieve the 10 most recent orders.

Links

Discussion