commercetools icon

commercetools

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

Actions671

Product-discount → Delete ProductDiscount by ID

AI-generated

Summary

Delete a specific ProductDiscount in commercetools by its ID and version to ensure concurrency control.

Inputs

  • Product-discount ID (required) — The unique identifier of the ProductDiscount to delete.
  • Version (required) — The current version number of the ProductDiscount, required to perform the delete operation to prevent conflicts.

Output shape

a single JSON object confirming the deletion or containing an error message on failure

The operation makes an authenticated DELETE request to the commercetools API and returns the raw JSON response or an error. The 'Version' parameter is mandatory to perform the deletion, ensuring that the resource version matches to prevent concurrent modification conflicts.

Links

Discussion