Order App APIs
Orders
Get an order by orderId
1 min
code examples curl location globoff 'https //{tenantsubdomain}/tms/api/v1/orders/{orderid}' \\ \ header 'accept application/json' \\ \ header 'content type application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //{tenantsubdomain}/tms/api/v1/orders/{orderid}", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //{tenantsubdomain}/tms/api/v1/orders/{orderid}") https = net http new(url host, url port) https use ssl = true request = net http get new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" response = https request(request) puts response read body import requests import json url = "https //{tenantsubdomain}/tms/api/v1/orders/{orderid}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // order get response { "data" { "destination" "ggn", "ordernumber" "ordrx128", "origin" "s 23", "expdeliverydate" 1751221467000, "orderdate" 1742382956000, "orderpriority" "high", "soldtofacility" "ggn", "customerreferencenumber" "ordrb1", "status" "unassigned", "isdeleted" false, "ispacked" true, "readytomanifest" true, "boxdimension" \[ { "length" 19, "breadth" 10, "height" 12, "weight" 43, "quantity" 1, "weightunit" "24", "boxid" "2" } ], "invoicedetails" \[ { "invoicenumber" "inv1750057026", "invoicedt" 1743503843449, "invoiceamount" 10, "ewaybill" "abcdsd", "isdeleted" false } ], "lineitems" \[ { "quantity" 1, "lineitemnumber" "1", "measurementunit" "box", "volume" { "value" 42 378, "unit" "cft" }, "weight" { "value" 200, "unit" "kgs" }, "product" { "category" "fxdprocessedfood", "code" "60000000019522", "mrp" "" }, "status" "unassigned", "isdeleted" false, "ispacked" true, "readytomanifest" true, "boxdimension" \[ { "length" 19, "breadth" 10, "height" 12, "weight" 43, "quantity" 1, "weightunit" "24", "boxid" "2" } ], "invoicedetails" \[ { "invoicenumber" "inv1750057026", "invoicedt" 1743503843449, "invoiceamount" 10, "ewaybill" "abcdsd", "isdeleted" false } ], "boxcount" 100 } ] }, "success" true }// order get error response { "success" false, "error" { "code" 404, "message" "order not found" } }// internal server error
