Planning App APIs
Plan Orders
List plan orders
1 min
code examples curl location globoff 'https //{tenantsubdomain}/tms/api/v1/planning/plan orders/?isassigned=boolean\&size=10' \\ \ 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' \\ \ header 'x coreos userinfo 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"); myheaders append("x coreos userinfo", "string"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //{tenantsubdomain}/tms/api/v1/planning/plan orders/?isassigned=boolean\&size=10", 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/planning/plan orders/?isassigned=boolean\&size=10") 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" request\["x coreos userinfo"] = "string" response = https request(request) puts response read body import requests import json url = "https //{tenantsubdomain}/tms/api/v1/planning/plan orders/?isassigned=boolean\&size=10" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'x coreos request id' 'string', 'x coreos tid' 'string', 'x coreos access' 'string', 'x coreos userinfo' 'string' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // plan orders list { "data" { "meta" 1000, "planorders" \[ { "planid" "q25h6f", "ordernumber" "123767691", "orderdt" 1715385600000, "originfacility" "mirzapur", "destinationfacility" "ptp003", "soldtofacility" "ptp003", "expdeliverydate" 1731283200000, "movement" "primary", "customerrefnum" "cus1232", "orderpriority" "high", "status" "assigned", "totalweight" 3012, "totalvolume" 270, "lineitems" \[ { "id" "planorders02 1814241a b4d7 511f b4b0 d2ed2df7fd92", "uniquecode" "q25h6f 123767691 oxli14", "owner" "os1devs", "createdat" 1721633672162, "createdby" { "id" "223d63b6 c0e0 4262 887c f6e8d5c423be", "name" "jagdeep yadav" }, "updatedat" 1721633816364, "updatedby" { "id" "system", "name" "system" }, "entityname" "planorders02", "tenantid" "os1devs", "appid" "app\ e963cd2a dd75 53c3 8a13 c8b305ff552e", "name" "planorders02", "planloadid" "q25h6f load 00007", "servicetype" "ftl", "lineitemnumber" "oxli14", "productcode" "kunai", "productname" "kunai", "quantity" 1, "measurementunit" "pcs", "weight" 1004, "volume" 90, "weightunit" "kgs", "volumeunit" "cft", "productmrp" 112, "productcategory" "weapons", "invoicenumber" "efjewf228", "invoiceamount" 1224, "invoicedt" 1731283200000, "invoicedescription" "abc", "ewaybillexpdt" 1731283200000, "irn" "irn2326", "buyergst" "09aaach7409r1zz", "sellergst" "09aaach7409r1zz", "planneddispatchdate" 1721853935, "planneddeliverdate" 1721767535, "isassigned" true, "status" "rejected" } ] } ] }, "success" true }// internal server error
