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 Key

AI-generated

Summary

Check if a Shopping List exists in a specified Store by its key using an HTTP HEAD request to the commercetools API.

Inputs

  • Store Key (required) — The key of the Store where the Shopping List should be checked.
  • Shopping List Key (required) — The key of the Shopping List to verify existence within the Store.

Output shape

a JSON object indicating existence status

Returns an object containing 'exists' (boolean), 'statusCode' (usually 200 if found, 404 if not), and 'url' used for the request. On unexpected errors, an error is thrown. No Shopping List data is returned, only existence information.

Examples

Example 1: Check if a Shopping List with key 'list123' exists in Store with key 'mystore'.

Set 'Store Key' to 'mystore' and 'Shopping List Key' to 'list123', then run the node to get a response object indicating whether the Shopping List exists.

Links

Discussion