POST /channel-variant-updates.json
Body Required
-
channelVariantId integer(int32) | null
Channel variant
-
compareAtPrice number | null
Compare at price
-
costPrice number | null
Cost price
-
hideWhenNoCostPrice boolean | null
Hide when no cost price
-
inventoryQuantity integer(int32) | null
Inventory quantity
-
price number | null
Price
-
retries integer(int32) | null
Retries
-
retry boolean | null
Retry
-
Status
Values are
success
,error
,pending
, orskipped
. Default value issuccess
. -
statusMessage string | null
Status message
-
type string | null
Type
Values are
inventory
,price
,publish
,cost_price
, orprice_list
. -
variantInventoryUpdateId integer(int32) | null
Variant inventory update
POST
/channel-variant-updates.json
curl \
-X POST http://api.example.com/v1/channel-variant-updates.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"channelVariantId":42,"compareAtPrice":42.0,"costPrice":42.0,"hideWhenNoCostPrice":true,"inventoryQuantity":42,"payload":{},"price":42.0,"response":{},"retries":42,"retry":true,"status":"success","statusMessage":"string","type":"inventory","variantInventoryUpdateId":42}'
Request example
{
"channelVariantId": 42,
"compareAtPrice": 42.0,
"costPrice": 42.0,
"hideWhenNoCostPrice": true,
"inventoryQuantity": 42,
"payload": {},
"price": 42.0,
"response": {},
"retries": 42,
"retry": true,
"status": "success",
"statusMessage": "string",
"type": "inventory",
"variantInventoryUpdateId": 42
}
Response examples (200)
{
"channelVariantId": 42,
"compareAtPrice": 42.0,
"costPrice": 42.0,
"createdAt": "2024-05-04T09:42:00+00:00",
"hideWhenNoCostPrice": true,
"id": 42,
"inventoryQuantity": 42,
"payload": {},
"price": 42.0,
"response": {},
"retries": 42,
"retry": true,
"status": "success",
"statusMessage": "string",
"type": "inventory",
"updatedAt": "2024-05-04T09:42:00+00:00",
"variantInventoryUpdateId": 42
}