Headers
The x-site-context header is a JSON object that contains information about the source you wish to pull from. The mandatory account is the 24 character identifier found in Copilot. The channel (Sales channel ID), stage (environment name), and date attributes can be used to further narrow the scope of your data source.
Example:
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
Example:
"0LybWR49k95cCwYh3cu0waCYoh4H2Eux2J52wn4k"
Body
application/json · object[]
- Option 1
- Option 2
Minimum length:
1Example:
"1597422"
Required range:
x >= 0Example:
25
Required range:
x >= 0Example:
0
Required range:
x >= 0Example:
175
Available options:
Stock, Transit Example:
"Stock"
Required range:
x >= 1Example:
1597422
Available options:
12, 13 Example:
12
Example:
"wo-2002"
Example:
"2019-12-14"
Example:
"2019-12-14"
Response
Inventory bulk insert
Example:
"api-1604355970096"
Example:
"api"
Example:
"FINISHED"
Example:
1
Example:
1
Example:
2
Example:
2
Example:
0
Example:
"5fee9d59f2f08a1b3cbdea08"
Example:
"2020-12-31T02:09:53.914Z"
Example:
"2020-12-31T02:09:53.914Z"
