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 ID

AI-generated

Summary

Check if a specific shopping list exists within a given store on commercetools by using the shopping list ID, store key, and shopping list key.

Inputs

  • Store Key (required) — The key identifying the commercetools store in which to check for the shopping list.
  • Shopping List ID (required) — The unique ID of the shopping list to check for existence in the specified store.
  • Store Shopping List Key (required) — The key identifying the specific shopping list in the store to check its existence.

Output shape

a single JSON object indicating existence status

Returns an object with 'exists' (boolean) indicating if the shopping list exists, the 'statusCode' of the HTTP HEAD request (e.g., 200 if exists, 404 if not), and the 'url' used for the API check. Does not return the shopping list data itself.

Examples

Example 1: Check whether a shopping list with specific ID exists in a specific commercetools store

Set 'Store Key' to the target store's key, 'Shopping List ID' to the shopping list's ID, and 'Store Shopping List Key' to the shopping list's key.

Links

Discussion