commercetools icon

commercetools

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

Actions671

Cart Discount → Query CartDiscounts

AI-generated

Summary

Query cart discounts on the commercetools platform, returning a filtered list based on provided query parameters.

Inputs

  • Expand — Include references to other resources in the returned results.
  • Sort — Specify the order in which the results are returned.
  • Limit — Limit the number of returned cart discounts.
  • Offset — Skip a number of results for pagination.
  • With Total — Include the total number of matching results in the response.
  • Where — Filter results using a where predicate expression.

Output shape

a single object containing a list of cart discounts and optionally the total count

The output includes the data returned by the commercetools API list endpoint for cart discounts, subject to filters set in the input parameters. Pagination and sorting can be controlled via inputs. Errors throw a NodeApiError except when continuing on fail.

Links

Discussion