POST /channel-variants.json
POST
/channel-variants.json
Body Required
-
channelId integer(int32) Required
Channel
- costPriceUpdate object | null | array | boolean | integer | number | string
Any of: Cost price update
Cost price update
Cost price update
Cost price update
Cost price update
Cost price update
-
errorMessage string | null
Error message
-
externalGroupId string | null
External group
-
externalId string Required
External
-
externalSku string | null
External sku
-
hash string | null
Hash
- inventoryUpdate object | null | array | boolean | integer | number | string
Any of: Inventory update
Inventory update
Inventory update
Inventory update
Inventory update
Inventory update
-
parentHash string | null
Parent hash
- priceUpdate object | null | array | boolean | integer | number | string
- publishUpdate object | null | array | boolean | integer | number | string
-
source string Required
Source
Values are
bigCommerce
,custom
,duoplane
,elasticPath
,magento
,salesforce
,shopify
, orwooCommerce
. Default value isshopify
. -
status string Required
Status
Values are
initialized
,connected
,error
,pending
, orignore
. Default value ispending
. -
variantId integer(int32) | null
Variant
-
variantParcelsHash string | null
Variant parcels hash
POST /channel-variants.json
curl \
-X POST http://api.example.com/v1/channel-variants.json \
-H "Content-Type: application/json" \
-d '{"channelId":42,"costPriceUpdate":{},"errorMessage":"string","externalGroupId":"string","externalId":"string","externalSku":"string","hash":"string","inventoryUpdate":{},"parentHash":"string","priceUpdate":{},"publishUpdate":{},"source":"shopify","status":"pending","variantId":42,"variantParcelsHash":"string"}'
Request example
{
"channelId": 42,
"costPriceUpdate": {},
"errorMessage": "string",
"externalGroupId": "string",
"externalId": "string",
"externalSku": "string",
"hash": "string",
"inventoryUpdate": {},
"parentHash": "string",
"priceUpdate": {},
"publishUpdate": {},
"source": "shopify",
"status": "pending",
"variantId": 42,
"variantParcelsHash": "string"
}
Response example (200)
{
"channelId": 42,
"costPriceUpdate": {},
"createdAt": "2023-05-04T09:42:00+00:00",
"errorMessage": "string",
"externalGroupId": "string",
"externalId": "string",
"externalSku": "string",
"hash": "string",
"id": 42,
"inventoryUpdate": {},
"parentHash": "string",
"priceUpdate": {},
"publishUpdate": {},
"source": "shopify",
"status": "pending",
"updatedAt": "2023-05-04T09:42:00+00:00",
"variantId": 42,
"variantParcelsHash": "string"
}