PUT /channel-variant-updates/{id}.json
Path parameters
-
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
channelVariantId integer(int32) | null
Channel variant
-
compareAtPrice number | null
Compare at price
-
costPrice number | null
Cost price
-
createdAt string(date-time)
Created at
-
hideWhenNoCostPrice boolean | null
Hide when no cost price
-
id integer(int32)
Id
-
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
. -
updatedAt string(date-time)
Updated at
-
variantInventoryUpdateId integer(int32) | null
Variant inventory update
PUT /channel-variant-updates/{id}.json
curl \
-X PUT http://api.example.com/v1/channel-variant-updates/{id}.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"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}'
Request example
{
"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
}