commercetools icon

commercetools

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

Actions671

Store Cart Discount → Update CartDiscount in Store by Key

AI-generated

Summary

Update a CartDiscount in a specified store by its key, applying one or more update actions with a specified version to handle concurrency.

Inputs

  • Store Cart Discount Key (required) — The unique key of the Cart Discount to update within the store.
  • Store Key (required) — The key identifier of the store containing the Cart Discount.
  • Cart Discount Key (required) — The key of the Cart Discount resource to update.
  • Version (required) — The current version number of the Cart Discount resource to ensure proper concurrency control.
  • Actions (JSON) — A JSON array of update actions to apply to the Cart Discount. If provided and not empty, this raw JSON overrides any UI-based actions.

Output shape

a single JSON object representing the updated Cart Discount resource as returned by the commercetools API

The output contains the full updated Cart Discount JSON. Errors during the update operation will stop execution unless 'Continue On Fail' is enabled, in which case error information will be returned per item.

Links

Discussion