POST /saleor-stores.json
Body Required
-
Access token
-
channelId integer(int32) | null
Channel
-
externalChannelId string | null
External channel
-
externalWarehouseId string | null
External warehouse
-
When syncing inventory to Saleor, you can also change the "track inventory" setting. This may be helpful if you want to disable the inventory allocation handling.
Values are
enableTracking
,disableTracking
, orignore
. Default value isignore
. -
Name
-
productTypeAttribute string | null
Product type attribute
-
storeUrl string | null
Store url
-
vendorAttribute string | null
Vendor attribute
POST /saleor-stores.json
curl \
-X POST http://api.example.com/v1/saleor-stores.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"accessToken":"string","channelId":42,"externalChannelId":"string","externalWarehouseId":"string","inventoryTracking":"ignore","name":"string","productTypeAttribute":"string","storeUrl":"string","tagsAttribute":"tags","vendorAttribute":"string"}'
Request example
{
"accessToken": "string",
"channelId": 42,
"externalChannelId": "string",
"externalWarehouseId": "string",
"inventoryTracking": "ignore",
"name": "string",
"productTypeAttribute": "string",
"storeUrl": "string",
"tagsAttribute": "tags",
"vendorAttribute": "string"
}
Response examples (200)
{
"accessToken": "string",
"channelId": 42,
"createdAt": "2024-05-04T09:42:00+00:00",
"externalChannelId": "string",
"externalWarehouseId": "string",
"id": 42,
"inventoryTracking": "ignore",
"name": "string",
"productTypeAttribute": "string",
"storeUrl": "string",
"tagsAttribute": "tags",
"updatedAt": "2024-05-04T09:42:00+00:00",
"vendorAttribute": "string"
}