commercetools icon

commercetools

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

Actions671

Store Cart → Check if Cart exists in Store by ID

AI-generated

Summary

Check the existence of a cart in a specified Store by its Cart ID.

Inputs

  • Store Key (required) — The unique key identifying the Store in which to check for the cart.
  • Cart ID (required) — The unique identifier of the Cart to check for existence.

Output shape

a single JSON object indicating existence status

Returns an object with 'exists' (boolean), 'statusCode' (number), and 'url' (string) fields. If the Cart exists, 'exists' is true and statusCode 200; if not found, 'exists' is false and statusCode 404. Other HTTP errors throw an error.

Examples

Example 1: Check if Cart with ID 'abc123' exists in Store with key 'store-key-1'.

Set 'Store Key' to 'store-key-1' and 'Cart ID' to 'abc123'. On execution, the node returns existence status for the Cart in the specified Store.

Links

Discussion