Your store's APIApps referenceVolume discounts
Set Volume Discount
PUT
/admin/volume-discountsSets the tiers of the volume discount for scope, replacing any it had. Checkouts priced with the old tiers are asked to price the cart again. A cart line with at least a tier's minQuantity units takes that tier's percentOff (a percent from 0 to 100, so 15 takes 15% off) off the line, the highest tier it reaches. A line takes the volume discount of its variant, else of its product, else the store's. At most 10 tiers, each starting at more units and taking more off than the one before.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
scope*||
tiers*array<>
Items
1 <= items <= 10Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/admin/volume-discounts" \ -H "Content-Type: application/json" \ -d '{ "scope": { "_tag": "store" }, "tiers": [ { "minQuantity": 2, "percentOff": 0 } ] }'{ "scope": { "_tag": "store" }, "tiers": [ { "minQuantity": 2, "percentOff": 0 } ], "updatedAt": "string"}