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 ID

AI-generated

Summary

Delete a specific Cart Discount in a specified Store by providing the Store Key, Cart Discount ID, and the current Version to ensure concurrency control.

Inputs

  • Store Key (required) — The unique key identifying the Store from which the Cart Discount should be deleted.
  • Cart Discount ID (required) — The unique identifier of the Cart Discount to delete.
  • Version (required) — The current version number of the Cart Discount resource to prevent conflicts during deletion.

Output shape

The operation returns the JSON response from the commercetools API reflecting the deleted Cart Discount or an error message if the deletion failed.

The 'Version' input must match the current version of the Cart Discount resource to successfully delete it. If the version is outdated, the API will return a conflict error. The operation requires authentication with commercetools OAuth2 credentials.

Links

Discussion