Planning App APIs
Plan Load Materials
Get plan load material details
1 min
code examples curl location globoff 'https //{tenantsubdomain}/tms/api/v1/planning/plan load material details/{plan load id}' \\ \ 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 load material details/{plan load id}", 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 load material details/{plan load id}") 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 load material details/{plan load id}" 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 load material details { "success" true, "data" { "meta" 1, "planorders" \[ { "id" "planorders02 9ee1c073 97b5 5d0b 8631 46bf34ca2c5e", "uniquecode" "pbtnmr ordaug644 59", "owner" "os1devs", "createdat" 1754548978046, "createdby" { "id" "3ca6d178 ce3b 4b5c 838a f5641ef085a1", "name" "reddi devi varaprasad" }, "updatedat" 1754548983951, "updatedby" { "id" "null", "name" "null" }, "entityname" "planorders02", "tenantid" "os1devs", "appid" "app\ e963cd2a dd75 53c3 8a13 c8b305ff552e", "name" "planorders02", "planid" "pbtnmr", "planloadid" "pbtnmr load 00001", "servicetype" "ftl", "ordernumber" "ordaug644", "orderdt" 1743465600000, "originfacility" "s 23", "destinationfacility" "56567aswer", "expdeliverydate" 1785974400000, "movement" "secondary", "orderpriority" "low", "lineitemnumber" "59", "productcode" "productz2", "productname" "a1", "quantity" 1, "measurementunit" "box", "weight" 500, "volume" 500, "weightunit" "kgs", "volumeunit" "cft", "productcategory" "bs", "isassigned" true, "status" "pending", "originfacilityname" "delhi 110038", "destinationfacilityname" "jind 126102" } ] } }// plan load material details not found { "success" false, "error" { "code" 404, "message" "plan load material details not found" } }// internal server error
