commercetools icon

commercetools

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

Actions671

Store Cart Discount → Delete CartDiscount in Store by Key

AI-generated

Summary

Delete a cart discount identified by its key within a specific store in the commercetools project, specifying the version for concurrency control.

Inputs

  • Store Cart Discount Key (required) — The unique key identifying the cart discount to delete.
  • Store Key (required) — The key of the store where the cart discount exists.
  • Version (required) — The current version of the cart discount to ensure safe deletion.

Output shape

a single JSON object representing the deleted cart discount resource or an error response

The request requires the version parameter as a query string for the delete method. If deletion succeeds, the deleted resource data is returned; errors may be thrown or caught based on node settings.

Links

Discussion