commercetools icon

commercetools

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

Actions671

Discount-group → Check if DiscountGroup exists by Query Predicate

AI-generated

Summary

Check whether a Discount Group exists in the commercetools platform by using a custom query predicate.

Inputs

  • Filters — Optional filter parameters to refine the query, primarily the 'Where' string which defines the query predicate for filtering Discount Groups.

Output shape

a single JSON object

Returns an object indicating existence with keys like 'exists' (boolean), 'statusCode' (HTTP status), and 'url' used for the check. Does not return the Discount Group details, only existence and status info.

Examples

Example 1: Verify if any Discount Group matches a specific condition before proceeding in a workflow.

Provide a 'Where' filter string to specify the query predicate that filters Discount Groups; the node returns whether such a Discount Group exists.

Links

Discussion