POST
/
api-inventory
/
inventory
/
bulk-insert

Headers

x-site-context
string
required

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.

x-api-key
string

Body

application/json · object[]
locationId
number
required
Required range: x > 0
reservedQuantity
number
required
Required range: x > 0
sku
string
required
Minimum length: 1
totalQuantity
number
required
Required range: x > 0
type
enum<string>
required
Available options:
Stock,
Transit
channelId
enum<number>
Available options:
12,
13
itemId
number
Required range: x > 1
transitOrderDate
string
transitRef
string
transitStockDate
string

Response

200 - application/json
__v
number
_id
string
createdAt
string
keyId
string
messages
string[]
status
string
totalItems
integer
totalItemsUploaded
integer
totalRows
integer
totalRowsErrors
integer
type
string
updatedAt
string