Skip to main content

Stocks

Format for sending stock updates to locations. A single call can contain updates for multiple locations.

The location_id corresponds to the Channel Engine location ID, which can be found on the Stock locations page. In the table, the first column ID indicates the location where the stock should be updated.

If there is only one location, you can configure it directly in the request header, avoiding specifying it in every message. The quantity (qty) must always be provided and cannot be negative, while the SKU (sku) is required for each update.

[
{
"sku": "BGSM001C210A-1",
"qty": 34,
"location_id": 10
},
{
"sku": "BGSM001C210A-2",
"qty": 35,
"location_id": 4
}
]

Stock Flow Configuration

In addition to the basic flow configurations add the following settings inSettings Override:

FieldValueNotes
Base Urlhttps://adapt.flowlyze.comURL of the adapters
Resource Path/api/adp/channel-engine/egress/stock-to-shopifyAdapter path for stock updates
Headers :: x-api-key**********API key used to validate endpoint interaction
Headers :: x-ce-urlhttps://CEURL.channelengine.net/apiURL of the Channel Engine to connect to
Headers :: x-ce-tokenALPHANUMERICCODEToken for the integration
Headers :: x-ce-location-idlocationIDAllows you to avoid including the location_id in each message by setting a default ID