commercetools icon

commercetools

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

Actions671

Cart Discount → Delete CartDiscount by Key

AI-generated

Summary

Delete a Cart Discount identified by its unique key and version from the commercetools project.

Inputs

  • Cart Discount Key (required) — The unique key of the Cart Discount to delete.
  • Version (required) — The current version number of the Cart Discount resource, required for concurrency control.

Output shape

a single JSON object describing the deleted Cart Discount or an error object if deletion fails

The operation requires the Cart Discount Key and Version parameters as input and returns the deletion result from commercetools API. If the deletion fails, an error with a descriptive message is thrown or returned depending on error handling settings.

Links

Discussion