commercetools icon

commercetools

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

Actions671

Associate Shopping List → Check if ShoppingList exists in BusinessUnit by Key as Associate

AI-generated

Summary

Check whether a shopping list with the specified key exists in a business unit, acting as a given associate.

Inputs

  • Associate Shopping List Key (required) — The key of the shopping list to check for existence.
  • Associate ID (required) — The identifier of the associate on whose behalf the check is performed.
  • Shopping List Key (required) — The key identifying the shopping list within the business unit.

Output shape

a JSON object indicating existence with keys 'exists' (boolean), 'statusCode' (HTTP status), and 'url' (the full API request URL).

This operation performs an HTTP HEAD request to determine existence. If the shopping list exists, returns { exists: true, statusCode: 200, url }. If not found, returns { exists: false, statusCode: 404, url }. Other HTTP errors produce an error response.

Links

Discussion