Update a product discount
Updates an existing product discount. The discount condition cannot be changed (e.g., a coupon discount cannot be changed to an automatic discount).
Path Parameters
Body Parameters
Display name for the discount
Condition required to activate the discount (cannot be changed from the original)
all_ordersitem_subtotalitem_quantitycouponvouchersWhat products this discount applies to
selected_productsselected_categoriesall_productsCurrency code for amount-based discounts (e.g. EUR, USD)
Fixed amount discount on product price in smallest currency unit
Percentage discount on product price (0-100)
Percentage discount on shipping cost (0-100)
Fixed amount discount on shipping cost in smallest currency unit
Whether the discount is currently active
Coupon code (required when condition is "coupon")
Maximum number of times this coupon can be redeemed (0 for unlimited)
Whether to block affiliate commissions when this discount is used
Method for creating vouchers (required when condition is "vouchers")
autogeneratedlistNumber of vouchers to auto-generate (required when voucher_method is "autogenerated")
Prefix for auto-generated voucher codes
Voucher codes (required when voucher_method is "list")
Minimum amount for item/order conditions (required when condition is "item_subtotal" or "item_quantity")
Additional order-level condition
order_subtotalorder_shippingorder_quantityDate when the discount expires (null for no expiry)
How long the discount applies to subscriptions
onceforeverrepeatingNumber of months for repeating subscription discounts (required when subscription_discount_duration is "repeating")
Duration in months for recurring discounts
Product UUIDs (required when applies_to is "selected_products")
Product categories (required when applies_to is "selected_categories")
Physical product category names
Digital product category names
Service product category names
Billing plan category names
Countries this discount applies to
Payment methods this discount applies to
{
"label": "Updated Summer Sale",
"applies_to": "all_products",
"currency": "EUR",
"amount_off": 0,
"percent_off": 15,
"shipping_percent_off": 0,
"shipping_amount_off": 0
}
Responses
Product discount updated successfully
Validation or business-logic error.
| Code | Description |
|---|---|
1002 | Discount or product UUID not found |
10271 | Cannot change the discount condition type |
10273 | Required conditional parameters missing (products/categories) |
Unauthorized – invalid or missing Bearer token