List coupons
Every coupon, newest first, with where it stands, its uses and the discount it gave.
List coupons › Responses
List of coupons
successcountNumber of items returned
Create coupon
Create a coupon.
How it applies (at checkout, not here): after offers, to the paid lines in its scope that no offer applied to. Its discount is shared across those lines, so the order's price stays the sum of its lines. A use is an order with the coupon that is not cancelled; the usage limit and one use per customer are enforced by the database when the order is placed.
Refused with INVALID_COUPON (reason says why) or COUPON_CODE_TAKEN.
Create coupon › Request Body
codeWhat the shopper types. Stored upper case without spaces; Latin letters, digits, - and _, 3 to 32 long; Arabic-Indic digits are read as 0–9.
kindvaluePercent (1–100) for percentage, dinars for fixed_amount; none for free_shipping.
maxDiscountThe most a percentage coupon takes off one order.
minSubtotalWhat the eligible products must cost together. Never beside minQuantity.
minQuantityHow many eligible items the order must hold. Never beside minSubtotal.
scopeproductIdsThe products a products coupon covers. At most 500.
collectionIdsThe collections a collections coupon covers. At most 100.
audiencecustomerIdsCustomers a selected coupon admits. At most 1000.
groupIdsCustomer groups whose members a selected coupon admits. At most 50.
usageLimitOrders that may use it, across all customers; cancelled orders do not count.
oncePerCustomerstartsAtendsAtstatusCreate coupon › Responses
Coupon created
successGet coupon
A coupon with the products, collections, customers and groups it names.
path Parameters
idCoupon UUID
Coupon UUID
Get coupon › Responses
Coupon details
successUpdate coupon
Partially update a coupon; the coupon it leaves is judged whole. A change of kind starts its value afresh, a change of scope or audience its picks. Orders already placed keep what they were given.
path Parameters
idCoupon UUID
Coupon UUID
Update coupon › Request Body
codeWhat the shopper types. Stored upper case without spaces; Latin letters, digits, - and _, 3 to 32 long; Arabic-Indic digits are read as 0–9.
kindvaluePercent (1–100) for percentage, dinars for fixed_amount; none for free_shipping.
maxDiscountThe most a percentage coupon takes off one order.
minSubtotalWhat the eligible products must cost together. Never beside minQuantity.
minQuantityHow many eligible items the order must hold. Never beside minSubtotal.
scopeproductIdsThe products a products coupon covers. At most 500.
collectionIdsThe collections a collections coupon covers. At most 100.
audiencecustomerIdsCustomers a selected coupon admits. At most 1000.
groupIdsCustomer groups whose members a selected coupon admits. At most 50.
usageLimitOrders that may use it, across all customers; cancelled orders do not count.
oncePerCustomerstartsAtendsAtstatusUpdate coupon › Responses
Updated coupon
success