Checking Product Inventory By List

Welcome,

Below is an example of how to use the Midwest Order API to lookup inventory for multiple products. The Midwest Order API allows you to post product SKU's in JSON format to the https://connect.midwest-logistics.com/api/ API.

The following JSON format needs to be posted to the API.

            
    {
        "apiKey" : "Provided API KEY",
        "request" : "productcheckbylist",
        "sku" : ["213","546"]
    }
            
        

The API will respond with a status of either 200 or 500 for each SKU sent in the API call. 200 is good, 500 is bad.

An example of a response that succeeded:

            
{
    "result": "200",
    "products": [
        {
            "result": "200",
            "message": "",
            "onhand": "10000",
            "commited": "1",               
            "stock": "999",
            "instock": "Y",
            "sku": "123"
        }, {
            "result": "200",
            "message": "",
            "onhand": "10000",
            "commited": "1",               
            "stock": "999",
            "instock": "Y",
            "sku": "546"
        }
    ]
}
            
            

An example of a response that failed:

            
    {
        "result": "200",	        
        "products": [
            {
                "result": "500",
                "message": "Product not found",
                "onhand": "0",
                "commited": "0",               
                "stock": "0",
                "instock": "N",
		        "sku": "123"
	        }, {
                "result": "200",
                "message": "",
                "onhand": "10000",
                "commited": "1",               
                "stock": "999",
                "instock": "Y",
                "sku": "546"
            }
        ]
    }
            
            

Testing

Enter the Json you wish to send