commercetools icon

commercetools

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

Actions671

Store Shopping List → Check if ShoppingList exists in Store by Query Predicate

AI-generated

Summary

Check if a shopping list exists in a specific store by applying a query predicate filter using the commercetools API.

Inputs

  • Store Shopping List Key (required) — The key identifying the shopping list resource in the store.
  • Store Key (required) — The key identifying the store to check within.
  • Filters — Optional query predicate to filter shopping lists for existence check, specified in the 'Where' parameter.

Output shape

a JSON object indicating existence status with fields: 'exists' (boolean), 'statusCode' (HTTP status number), and 'url' (the API endpoint called).

Returns {exists: true, statusCode: 200, url} if the shopping list matching the query predicate exists; otherwise returns {exists: false, statusCode: 404, url}. Throws errors for other HTTP failures.

Examples

Example 1: Check whether a shopping list matching a filter exists in a given store.

Set 'Store Shopping List Key' to the shopping list identifier, 'Store Key' to the target store, and specify optional 'Where' filter predicate to refine the check.

Links

Discussion