Checking Product Inventory
Welcome,
Below is an example of how to use the Midwest Order API to lookup inventory for a product. The Midwest Order API allows you to post products 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" : "productcheck",
"sku" : "546"
}
The Midwest Order API will respond with a status and a list of products and thier inventory.
The API will respond with a status of either 200 or 500 for the API call. 200 is good, 500 is bad.
An example of a response that succeeded:
{
"result": "200",
"message":"",
"onhand": "10000",
"commited": "1",
"stock": "999",
"instock": "Y",
"sku": "546"
}
An example of a response that failed:
{
"result": "500",
"message":"Invalid SKU",
"stock": "0",
"commited": "0",
"onhand": "0",
"instock": "N",
"sku": "546"
}
Testing
Enter the Json you wish to send