Order Status
Welcome,
Below is an example of how to use the Midwest Order Status API. The Midwest Order Status API allows you to post orders in JSON format to the https://connect.midwest-logistics.com/api/ API and the API will respond with the individual order details that include the order id, Midwest order id, status, shipping method and any tracking information associated with that individual order.
The following JSON format needs to be posted to the API. If an order id and a CRMID is given, then the CRMID will be looked up and the order id field will be ignored.
{
"apiKey" : "Provided API KEY",
"request" : "orderstatus",
"orders" : [
{ "orderId": "","CRMID" : "ORD-123132132" },
{ "orderId": "1","CRMID" : "" }
]
}
The Midwest Order API will respond with a status and a list of orders and the individual orders information.
The API will respond with a status of either 200 or 500 for the API call as a whole and each individual order. 200 is good, 500 is bad. If an order cannot be found then a status of 500 will be returned and the message field will contain the reason that the order could not be retrieved.
An example of a response that succeeded:
{
"result": "200",
"orderCount": "2",
"message": "",
"orders": [{
"orderId": "1",
"CRMOrderId": "ORD-123123132",
"midwestStatus": "Fulfilled-Complete",
"shippingCarrier": "USPS",
"tracking": [{
"tracking": ""
}, {
"tracking": ""
}, {
"tracking": ""
}, {
"tracking": ""
}, {
"tracking": ""
}, {
"tracking": ""
}],
"status": "200",
"message": ""
}, {
"orderId": "2",
"CRMOrderId": "ORD-456789789",
"midwestStatus": "Fulfilled-Complete",
"shippingCarrier": "USPS",
"tracking": [{
"tracking": "Z12asdasd23123"
}, {
"tracking": "Z1dfgdfgdfg23123123"
}, {
"tracking": "Z123123dfgdvdfgdfg3123"
}, {
"tracking": "Z1233345dfgdfg3123"
}, {
"tracking": "Z123123dfgdfg23123"
}, {
"tracking": ""
}],
"status": "200",
"message": ""
}]
}
An example of a response that failed:
{
"result": "200",
"orderCount": "2",
"message": "",
"orders": [{
"orderId": "1",
"CRMOrderId": "ORD-123123132",
"midwestStatus": "",
"shippingCarrier": "USPS",
"tracking": [{
"tracking": ""
}, {
"tracking": ""
}, {
"tracking": ""
}, {
"tracking": ""
}, {
"tracking": ""
}, {
"tracking": ""
}],
"status": "500",
"message": "The Order Could not be found"
}, {
"orderId": "2",
"CRMOrderId": "ORD-456789789",
"midwestStatus": "",
"shippingCarrier": "USPS"
"tracking": [{
"tracking": ""
}, {
"tracking": ""
}, {
"tracking": ""
}, {
"tracking": ""
}, {
"tracking": ""
}, {
"tracking": ""
}],
"status": "500",
"message": "The Order Could not be found"
}]
}
Testing
Enter the Json you wish to send