Create a customer discount
Creates a new customer-specific discount. Customer discounts always use the "coupon" condition and require a customer UUID and coupon code.
Note: At least one of amount_off, percent_off, shipping_amount_off,
or shipping_percent_off must be greater than zero.
Body Parameters
customer_discountDisplay 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
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")
Responses
Customer discount created successfully
Validation or business-logic error. Possible error_code values:
1002– ResourceNotFound: customer or product UUID not found10273– DiscountMissingParameters: required conditional parameters missing (products)
Unauthorized – invalid or missing Bearer token