POST /price-updates.json
Body Required
-
channelVariantId integer(int32) | null
Channel variant
-
compareAtPriceCache number | null
Compare at price cache
-
exchangeRate number | null
Exchange rate
-
inventoryFeedVariantId integer(int32) | null
Inventory feed variant
-
priceCache number | null
Price cache
-
Price
-
priceListId integer(int32) | null
Price list
-
trigger string | null
Trigger
Values are
channelImport
,inventoryFeed
,priceList
, ormanual
.
POST /price-updates.json
curl \
-X POST http://api.example.com/v1/price-updates.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"channelVariantId":42,"compareAtPriceCache":42.0,"exchangeRate":42.0,"inventoryFeedVariantId":42,"priceCache":42.0,"priceId":42,"priceListId":42,"trigger":"channelImport"}'
Request example
{
"channelVariantId": 42,
"compareAtPriceCache": 42.0,
"exchangeRate": 42.0,
"inventoryFeedVariantId": 42,
"priceCache": 42.0,
"priceId": 42,
"priceListId": 42,
"trigger": "channelImport"
}
Response examples (200)
{
"channelVariantId": 42,
"compareAtPriceCache": 42.0,
"createdAt": "2024-05-04T09:42:00+00:00",
"exchangeRate": 42.0,
"id": 42,
"inventoryFeedVariantId": 42,
"priceCache": 42.0,
"priceId": 42,
"priceListId": 42,
"trigger": "channelImport",
"updatedAt": "2024-05-04T09:42:00+00:00"
}