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 ID

AI-generated

Summary

Check the existence of a ShoppingList by its ID using an HTTP HEAD request to the commercetools API.

Inputs

  • Shopping-list ID (required) — The unique identifier of the ShoppingList to check for existence.

Output shape

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

Returns { exists: true, statusCode: 200, url } if the ShoppingList exists; returns { exists: false, statusCode: 404, url } if not found. Throws error for other HTTP errors.

Examples

Example 1: Check if a ShoppingList with ID '1234' exists

Set the resource to 'Shopping-list', operation to 'Check if ShoppingList exists by ID', and set 'Shopping-list ID' to '1234'.

Links

Discussion