POST /prices.json
POST
/prices.json
Body Required
-
compareAtPrice number | null
Compare at price
-
price number Required
Price
-
priceListId integer(int32) Required
Price list
-
variantId integer(int32) Required
Variant
POST /prices.json
curl \
-X POST http://api.example.com/v1/prices.json \
-H "Content-Type: application/json" \
-d '{"compareAtPrice":42.0,"price":42.0,"priceListId":42,"variantId":42}'
Request example
{
"compareAtPrice": 42.0,
"price": 42.0,
"priceListId": 42,
"variantId": 42
}
Response examples (200)
{
"compareAtPrice": 42.0,
"createdAt": "2023-05-04T09:42:00+00:00",
"id": 42,
"price": 42.0,
"priceListId": 42,
"updatedAt": "2023-05-04T09:42:00+00:00",
"variantId": 42
}