Update a customer discount
Updates an existing customer-specific discount. The condition is always "coupon" for customer discounts and cannot be changed. The customer assignment can be updated to a different customer.
Path Parameters
Body Parameters
Display name for the discount
UUID of the customer this discount is restricted to
Coupon code the customer must enter
What products this discount applies to
selected_productsall_productsCurrency code for amount-based discounts (e.g. EUR, USD)
Fixed amount discount in smallest currency unit
Percentage discount (0-100)
Percentage discount on shipping (0-100)
Fixed amount discount on shipping in smallest currency unit
Whether the discount is currently active
Maximum number of times this coupon can be redeemed
Date when the discount expires (null for no expiry)
How long the discount applies to subscriptions
onceDuration in months for recurring discounts
Additional order-level condition
order_subtotalorder_shippingorder_quantityMinimum amount for order conditions
Product UUIDs (required when applies_to is "selected_products")
{
"label": "Updated VIP Discount",
"customer": "550e8400-e29b-41d4-a716-446655440001",
"coupon": "NEWVIP20",
"applies_to": "all_products",
"currency": "EUR",
"amount_off": 2500,
"percent_off": 0,
"shipping_percent_off": 0,
"shipping_amount_off": 0
}
Responses
Customer discount updated successfully
Validation or business-logic error.
| Code | Description |
|---|---|
1002 | Discount, customer, or product UUID not found |
10271 | Cannot change the discount condition type |
10273 | Required conditional parameters missing (products) |
Unauthorized – invalid or missing Bearer token