commercetools icon

commercetools

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

Actions671

Shopping-list → Check if ShoppingList exists by Query Predicate

AI-generated

Summary

Check whether a ShoppingList exists in commercetools that matches a specified query predicate by performing a search query with filter conditions.

Inputs

  • Filters — An optional collection containing a 'Where' string to define the query predicate used to filter ShoppingLists for existence check.

Output shape

a single JSON object indicating existence (boolean), HTTP status code, and request URL

The output returns an object showing if a ShoppingList exists matching the query predicate using an HTTP HEAD request. If it exists, 'exists' is true with statusCode 200; if not found, 'exists' is false with statusCode 404. Errors other than 404 raise exceptions.

Examples

Example 1: Check if a ShoppingList exists with a specific custom field value

Set Filters > Where to a predicate string such as 'custom(fieldName = "value")' to test existence.

Links

Discussion