Order App APIs
Line Items
List order line items
1 min
code examples curl location globoff 'https //{tenantsubdomain}/tms/api/v1/orders/line items/?page=1\&size=100' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'x coreos request id string' \\ \ header 'x coreos tid string' \\ \ header 'x coreos access string'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("x coreos request id", "string"); myheaders append("x coreos tid", "string"); myheaders append("x coreos access", "string"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //{tenantsubdomain}/tms/api/v1/orders/line items/?page=1\&size=100", 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/line items/?page=1\&size=100") 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" request\["x coreos request id"] = "string" request\["x coreos tid"] = "string" request\["x coreos access"] = "string" response = https request(request) puts response read body import requests import json url = "https //{tenantsubdomain}/tms/api/v1/orders/line items/?page=1\&size=100" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'x coreos request id' 'string', 'x coreos tid' 'string', 'x coreos access' 'string' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // line item list response { "data" { "meta" { "totalelements" 383 }, "entityinstances" \[ { "ordernumber" "ordrx128", "orderdt" 1742382956000, "originfacility" "s 23", "destinationfacility" "ggn", "soldtofacility" "ggn", "expdeliverydate" 1751221467000, "movement" "primary", "customerrefnum" "ordrb1", "orderpriority" "high", "lineitemnumber" "1", "productcode" "60000000019522", "dispatchedqty" 1, "measurementunit" "box", "weight" 200, "volume" 42 378, "weightunit" "kgs", "volumeunit" "cft", "productcategory" "fxdprocessedfood", "productname" "60000000019522", "status" "unassigned", "isdeleted" false, "inputweight" 200, "inputvolume" 1200000, "inputweightunit" "kgs", "inputvolumeunit" "ccm", "boxcount" 100, "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 } ], "ispacked" true, "readytomanifest" true, "id" "xtestorderitem1s\ b67661e2 8a80 5182 8546 0825af003d2d", "uniquecode" "ordrx128 1", "owner" "os1devs", "createdat" 1755072773656, "createdby" { "id" "3ca6d178 ce3b 4b5c 838a f5641ef085a1", "name" "reddi devi varaprasad" }, "updatedat" 1755072773656, "updatedby" { "id" "3ca6d178 ce3b 4b5c 838a f5641ef085a1", "name" "reddi devi varaprasad" }, "entityname" "xtestorderitem1s", "tenantid" "os1devs", "appid" "app\ d45a4c4f 6c85 5303 ba0a 211380879a47", "name" "ordrx128 1" } ] }, "success" true }// internal server error
