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
}
]
Destination configuration
Configure a Channel Engine destination and associate it with the flow, in addition to the basic data flow configuration.
| Field | Value | Notes |
|---|---|---|
Destination Type | Channel Engine | |
Operation | Stock sync | POST /egress/sync-stock-to-ce |
Channel Engine URL | https://CEURL.channelengine.net/api | Channel Engine API base URL |
Channel Engine token | ALPHANUMERICCODE | Channel Engine API token |
Location ID | e.g. 123 | Optional Channel Engine location id |
Deprecated — previous configuration (HTTP Adapter)
Configuration via HTTP Adapter with Base Url, Resource Path, and x-api-key header in Settings Override is deprecated. Use the Channel Engine destination configuration described above.
In addition to the basic data flow configuration, the following Settings Override settings were required:
| Field | Value | Notes |
|---|---|---|
Base Url | https://adapter.flowlyze.io | URL of the adapters |
Resource Path | /api/adp/channel-engine/egress/sync-stock-to-ce | Adapter path for stock updates |
Headers :: x-api-key | ********** | API key used to validate endpoint interaction |
Headers :: x-ce-url | https://CEURL.channelengine.net/api | URL of the Channel Engine to connect to |
Headers :: x-ce-token | ALPHANUMERICCODE | Token for the integration |
Headers :: x-ce-location-id | locationID | Default location id for each call |