Inventory
{item_id}
Authentication
Inventory API for Exchanges
Path variables
Request parameters
Product resource to represent one version of a product with several options
If value present, inventory would be fetched based on the location
Reperesent the brand identifier. if the OMS instance support multiple brands and needs filter based on the brand
Responses
Body
Item id or product id retrieved with unique to an item
Array of item inventory retrieved based on location
Id of the variant that represent one version of a product with several options.
Product or Item name
Location id specific
Eligibility of item, if available , Default is true
Quantity of items available for exchange. This would be used as default eligibility criteria for exchange e.g if value = 0 , item would be in-eligible for exchange
Threshold quantity that could be used to represent the
Image of the item variant
Array of custom attributes (name-value pair) . Name would be used for <option> >> “attribute_code” mapping
Item price
Curreny denomination
Weight
Unit of measurement
Size attribute
Color id/code
Array of options for display
Displayable title of attribute
Attribute code mapped to key value of “attributes”
Unique values of the attributes
["10","20","30"]
GET /exchanges/inventory/{item_id} HTTP/1.1
HTTP/1.1 200 OK
Content-Type: application/json
{
"id": "9999",
"inventory": [
{
"variant_id" : "1111",
"title" : "White Jacket",
"location_id" : "134567",
"exchange_eligibility" : "true",
"available_quantity" : 5,
"stock_quantity" : 10,
"item_image" : "https://peninsula.com/media/catalog/product/cache/14/image/400x/9df78eab33525d08d6e5fb8d27136e95/image.jpg",
"attributes" : {
"price" : "20.00",
"currency" : "USD",
"weight" : "2.12",
"uom" : "lbs",
"size" : "10",
"color" : "White",
"material" : "Cotton"
}
},
{
"variant_id" : "2222",
"title" : "White Jacket",
"location_id" : "134567",
"exchange_eligibility" : "true",
"item_image" : "https://peninsula.com/media/catalog/product/cache/14/image/400x/9df78eab33525d08d6e5fb8d27136e95/image.jpg",
"available_quantity" : 2,
"stock_quantity" : 10,
"attributes" : {
"price" : "20.00",
"currency" : "USD",
"weight" : "2.12",
"uom" : "lbs",
"size" : "20",
"color" : "White",
"material" : "Cotton"
}
},
{
"variant_id" : "3333",
"title" : "Blue Jacket",
"location_id" : "134567",
"exchange_eligibility" : "true",
"item_image" : "https://peninsula.com/media/catalog/product/cache/14/image/400x/9df78eab33525d08d6e5fb8d27136e95/image.jpg",
"available_quantity" : 6,
"stock_quantity" : 10,
"attributes" : {
"price" : "20.00",
"currency" : "USD",
"available_quantity" : "1",
"weight" : "2.12",
"uom" : "lbs",
"size" : "10",
"color" : "Blue",
"material" : "Polyester"
}
}
],
"options" : [
{
"title" : "Size",
"attribute_code" : "size",
"values" : [
"10",
"20",
"30"
]
},
{
"title" : "Color",
"attribute_code" : "color",
"values" : [
"White",
"Blue"
]
},
{
"title" : "Material",
"attribute_code" : "material",
"values" : [
"Cotton",
"Polyester"
]
}
]
}