Planning App APIs
Plan Loads
List plan loads
1 min
code examples curl location globoff 'https //{tenantsubdomain}/tms/api/v1/planning/plan loads/' \\ \ 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/planning/plan loads/", 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 loads/") 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/planning/plan loads/" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // plan loads list { "data" { "meta" 1530, "planloads" \[ { "id" "planloads02\ e21dd967 ecea 54fc 90bd 4f2581c45f74", "uniquecode" "pbtnmr load 00001", "owner" "os1devs", "createdat" 1754548983390, "createdby" { "id" "null", "name" "null" }, "updatedat" 1754548989315, "updatedby" { "id" "platform\ app\ service\ e963cd2a dd75 53c3 8a13 c8b305ff552e", "name" "service account platform\ app\ service\ e963cd2a dd75 53c3 8a13 c8b305ff552e" }, "entityname" "planloads02", "tenantid" "os1devs", "appid" "app\ e963cd2a dd75 53c3 8a13 c8b305ff552e", "name" "planloads02", "state" "pending\ pending", "planid" "pbtnmr", "servicetype" "ftl", "bodytype" "truck closed 32ft mxl hq diesel ", "detourdistance" 0, "totaldistance" 116, "totaltraveltime" 1801, "costmetrics" { "basefreight" 123, "detourcost" 0, "totalcost" 123, "referenceratemaster" "s 23 56567aswer truck closed 32ft mxl hq diesel pz5888 1 flat" }, "utilmetrics" { "vehicleweightcapacity" 16000, "vehiclevolumecapacity" 2720, "totalorderweight" 500, "totalordervolume" 500, "pendingweightcapacity" 15500, "pendingvolumecapacity" 2220, "weightutilization" 4, "volumeutilization" 19, "loadutilization" 19 }, "lastutilizationupdatedat" 1754548988987, "status" "rejected", "vehiclename" "closed 32ft mxl hq", "loadtype" "new", "routedetails" { "originfacility" "s 23", "stops" \[ "" ], "destinationfacility" "56567aswer" }, "routenamedetails" { "originfacility" "delhi 110038", "stops" \[ "" ], "destinationfacility" "jind 126102" } } ] }, "success" true }// internal server error
