Feature Pack 7

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: testserver.mycompany.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:\/\/testserver.mycompany.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: testserver.mycompany.com
Content-Type: application/json

Response 2


HTTP/1.1 200 OK
Content-Type: application/json

{
	"InventoryAvailability": [
		{
			"availableQuantity": "0.0",
			"inventoryStatus": "Unavailable",
			"onlineStoreId": "10001",
			"onlineStoreName": "Madisons",
			"productId": "12618",
			"unitOfMeasure": "C62"
		},
		{
			"availableQuantity": "0.0",
			"inventoryStatus": "Unavailable",
			"physicalStoreId": "10001",
			"physicalStoreName": "Sherway Gardens",
			"productId": "12618",
			"unitOfMeasure": "C62"
		},
		{
			"availableQuantity": "0.0",
			"inventoryStatus": "Unavailable",
			"onlineStoreId": "10101",
			"onlineStoreName": "Madisons",
			"productId": "12124",
			"unitOfMeasure": "C62"
		},
		{
			"availableQuantity": "0.0",
			"inventoryStatus": "Unavailable",
			"physicalStoreId": "10001",
			"physicalStoreName": "Sherway Gardens",
			"productId": "12124",
			"unitOfMeasure": "C62"
		},
		{
			"availableQuantity": "0.0",
			"inventoryStatus": "Unavailable",
			"physicalStoreId": "10051",
			"physicalStoreName": "Jacksonville Square",
			"productId": "12618",
			"unitOfMeasure": "C62"
		},
		{
			"availableQuantity": "0.0",
			"inventoryStatus": "Unavailable",
			"physicalStoreId": "10051",
			"physicalStoreName": "Jacksonville Square",
			"productId": "12124",
			"unitOfMeasure": "C62"
		}
	],
	"resourceId": "https:\/\/testserver.mycompany.com\/wcs\/resources\/store\/10001\/inventoryavailability\/12618,12124\/",
	"resourceName": "inventoryavailability"
}