Get inventory availability
The following examples show how to get inventory availability.
Request 1
GET /wcs/resources/store/10101/inventoryavailability/10002/ HTTP/1.1
Host: wcstestserver.raleigh.ibm.com
Content-Type: application/json
Response 1
HTTP/1.1 200 OK
Content-Type: application/json
{
"InventoryAvailability": [
{
"availableQuantity": "0.0",
"inventoryStatus": "Unavailable",
"onlineStoreId": "10101",
"onlineStoreName": "Madisons",
"productId": "10002",
"unitOfMeasure": "C62"
}
],
"resourceId": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/inventoryavailability\/10002\/",
"resourceName": "inventoryavailability"
}
Request 2
GET /wcs/resources/store/10101/inventoryavailability/10002,10004/?physicalStoreId=10001,10051 HTTP/1.1
Host: wcstestserver.raleigh.ibm.com
Content-Type: application/json
Response 2
HTTP/1.1 200 OK
Content-Type: application/json
{
"InventoryAvailability": [
{
"availableQuantity": "0.0",
"inventoryStatus": "Unavailable",
"onlineStoreId": "10101",
"onlineStoreName": "Madisons",
"productId": "10002",
"unitOfMeasure": "C62"
},
{
"availableQuantity": "0.0",
"inventoryStatus": "Unavailable",
"physicalStoreId": "10001",
"physicalStoreName": "Sherway Gardens",
"productId": "10002",
"unitOfMeasure": "C62"
},
{
"availableQuantity": "0.0",
"inventoryStatus": "Unavailable",
"onlineStoreId": "10101",
"onlineStoreName": "Madisons",
"productId": "10004",
"unitOfMeasure": "C62"
},
{
"availableQuantity": "0.0",
"inventoryStatus": "Unavailable",
"physicalStoreId": "10001",
"physicalStoreName": "Sherway Gardens",
"productId": "10004",
"unitOfMeasure": "C62"
},
{
"availableQuantity": "0.0",
"inventoryStatus": "Unavailable",
"physicalStoreId": "10051",
"physicalStoreName": "Jacksonville Square",
"productId": "10002",
"unitOfMeasure": "C62"
},
{
"availableQuantity": "0.0",
"inventoryStatus": "Unavailable",
"physicalStoreId": "10051",
"physicalStoreName": "Jacksonville Square",
"productId": "10004",
"unitOfMeasure": "C62"
}
],
"resourceId": "https:\/\/wcstestserver.raleigh.ibm.com\/wcs\/resources\/store\/10101\/inventoryavailability\/10002,10004\/",
"resourceName": "inventoryavailability"
}