Skip to main content

Apply a discount to an order

POST 

/v1/orders/:id/discounts

Applies a discount to an order and returns it with the totals recalculated.

Discounts applied here are manual: you decide the amount or the percentage. Coupon discounts are resolved by the storefront, which knows the coupon rules, and are not created through this endpoint.

An order can carry several discounts; they add up.

Only orders created through the API can be changed here. An order taken on the storefront, the POS or a food app belongs to that channel and answers 422 order_not_modifiable.

Required scope: orders:write

Request

Responses

The order with the discount applied.