commercetools icon

commercetools

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

Actions671

Store Cart Discount → Check if CartDiscount exists in Store by ID

AI-generated

Summary

Check whether a cart discount identified by its ID exists within a specified store in the commercetools platform using a HEAD request.

Inputs

  • Store Key (required) — The unique key of the store in which to check for the cart discount's existence.
  • Cart Discount ID (required) — The ID of the cart discount to check for existence.

Output shape

a single JSON object indicating existence with properties: exists (boolean), statusCode (number), and url (string).

Returns exists: true and statusCode 200 if the cart discount exists; exists: false and statusCode 404 if not found. Throws an error for other HTTP errors.

Links

Discussion