Skip to main content
PUT
An existing coupon is overwritten completely. The request sets valid_until, type, value, currency, min_spend, and shipping_price exactly as sent. A field that is missing or null is cleared. The coupon code and its usage state never change.
integer
Folder ID. If not provided, coupons are created and overwritten in the default folder.
array
required
Array of coupon code strings, up to 50,000 codes. Each code can have up to 255 characters.
string
Expiration date in YYYY-MM-DD format.
string
Discount type: percentual or fixed. Required when value is set.
number
Discount value, greater than 0. The maximum is 100 for percentual and 99999999.99 for fixed. Required when type is set.
string
Three-letter currency code, for example CZK. Required when type is fixed or when min_spend is set.
number
Minimum order value, from 0 to 99999999.99.
string
Shipping rule of the discount: cart, free, or beforeDiscount.