Commerce
Update a discount
Changes a percentage, fixed-amount or free-shipping discount. Buy-X-get-Y and app discounts are read-only here.
patch/v1/commerce/discounts/{discountId}
Path parameters
discountIdstring required
Platform-native id.
Request body
Response
Discount updated
Example response
{
"discount": {
"value": {
"percentage": 15
},
"minimum": {
"amount": {
"amount": "19.90",
"currency": "USD"
}
}
}
}Changes
Changed in 2 of the 60 revisions of this API.2
- ○
removed the
platformenum value from the/response property for the response statusresponse-property-enum-value-removed
- ○
- ○
endpoint added
endpoint-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○