Update inventory position or create inventory
This endpoint updates inventory position (also known as counter) as per specified request body, Or it creates inventory if inventory does not exist, and thereby updates the counter. Inventory is identified 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.
Body
Item ID whose inventory is to be updated
Location number is used to identify the warehouse or location where the inventory is kept
Channel ID. This field is used to identify where the business operations are being held.
The amount of time between when a purchase order is placed to replenish products and when the order is received in the warehouse
Represents inventory position
Custom attributes for inventory
Response
View quantity of inventory, based on pre configured value. For example, 'availableToPurchase' can be a custom attribute configured by merchants.
Inventory ID
SKU of the item
Item ID for which inventory is updated
Location number is used to identify the warehouse or location where the inventory is kept
Sales channel ID. This field is used to identify where the business operations are being held.
Vendor ID
The amount of time between when a purchase order is placed to replenish products and when the order is received in the warehouse
Type of inventory
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
Inventory counter (also known as inventory position) configured by the merchant
Custom inventory attributes configured by the merchant
Was this page helpful?