commercetools icon

commercetools

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

Actions671

Cart Discount → Delete CartDiscount by ID

AI-generated

Summary

Delete a cart discount in commercetools by specifying its unique ID and current version number to ensure version consistency.

Inputs

  • Cart Discount ID (required) — The unique identifier of the cart discount to be deleted.
  • Version (required) — The current version number of the cart discount, used for concurrency control during deletion.

Output shape

a JSON object representing the deleted cart discount resource or an error message if the deletion fails.

Requires valid commercetools OAuth2 credentials. The version parameter is mandatory for deletion. Errors propagate unless 'continue on fail' is enabled.

Links

Discussion