Commerce
Update variant prices
Sets the price and/or compare-at price of the listed variants. Other variants are untouched. Amounts are in the store currency; send compareAtPrice: null to remove a strike-through price.
post/v1/commerce/products/{productId}/price
Path parameters
productIdstring required
Platform-native product id.
Request body
Response
Prices updated
Example response
{
"product": {
"variants": [
{
"price": {
"amount": "19.90",
"currency": "USD"
},
"compareAtPrice": {
"amount": "19.90",
"currency": "USD"
}
}
]
}
}Changes
Changed in 2 of the 61 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
- ○