Skip to main content

Reorder a profile's discount codes

PUT 

/api/v1/profiles/:handle/discount_codes/order

Requires the discount_codes:write scope.

Send every discount code id exactly once, in the order they should appear. A partial list is refused rather than applied, because positions come from the array index and the codes left out would keep stale ones.

Expired codes are included — GET /discount_codes still lists them, so they still hold a position.

Request​

Responses​

Discount codes in their new order