commercetools icon

commercetools

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

Actions671

Discount-group → Delete DiscountGroup by Key

AI-generated

Summary

Delete a DiscountGroup in commercetools specified by its unique key and current version number.

Inputs

  • Discount-group Key (required) — The unique key identifying the DiscountGroup to delete.
  • Version (required) — The current version number of the DiscountGroup, required for concurrency control during deletion.

Output shape

a single JSON object representing the deleted DiscountGroup details or an error object if deletion fails.

The operation requires the Discount-group Key and Version as input parameters and returns the response from the commercetools API delete endpoint for the DiscountGroup resource. In case of failure, an error is thrown or returned depending on the node's error handling configuration.

Links

Discussion