Create inventory
Enables you to create inventory based on the combination of location number, channel ID, and item ID or item SKU.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
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.
"{\"date\": \"2023-01-01T00:00:00.000Z\", \"channel\": 12, \"account\": \"1234abcd5678efgh9ijklmno\",\"stage\":\"production\"}"
Body
SKU of the item
"SKU00025"
Item ID
4225678911
Location number is used to identify the warehouse or location where the inventory is going to be kept
473746
Sales channel ID. This field is used to identify where the business operations are being held.
12
Vendor ID
"vendor123"
The amount of time between when a purchase order is placed to replenish products and when the order is received in the warehouse.
1234
Inventory type. It is a classifier attribute that provides flexibility to define types.
"primary"
Infinite inventory flag.<br /> true
indicates that the inventory can be consumed any number of times as per need<br />false
indicates that the inventory cannot be used infinitely, and has a limit to be consumed
true
Inventory restock date
"2022-08-08T00:00:00.000Z"
First ship date of inventory
"2022-08-08T00:00:00.000Z"
Maximum restock inventory quantity
100
Maximum quanity of inventory for first-ship
100
Reserved inventory quantity at the location
10
Inventory quantity to mark as low stock at the location
10
Inventory segment
"Clothing"
Region where inventory is managed
"US"
Inventory counter (also known as inventory position) configured by the merchant
{ "on-hand": 10 }
Custom attribute of the inventory
{
"buy online, pick up in-store (bopis)": true
}
Response
View quantity of inventory, based on pre configured value. For example, 'availableToPurchase' can be a custom attribute configured by merchants.
{ "availableToPurchase": 10 }
Inventory ID
"62272e917b12209e68751d94"
SKU of the item
"SKU00025"
Item ID for which inventory is updated
4225678911
Location number is used to identify the warehouse or location where the inventory is kept
473746
Sales channel ID. This field is used to identify where the business operations are being held.
12
Vendor ID
"vendor123"
The amount of time between when a purchase order is placed to replenish products and when the order is received in the warehouse
1234
Type of inventory
"Safety stock"
Infinite inventory flag.<br /> true
indicates that the inventory can be consumed any number of times as per need<br />false
indicates that the inventory cannot be used infinitely, and has a limit to be consumed
true
Inventory counter (also known as inventory position) configured by the merchant
{ "on-hand": 10 }
Custom inventory attributes configured by the merchant
{
"buy online, pick up in-store (bopis)": true
}
Was this page helpful?