Planning App APIs
Plan Load Details
Get plan load details
1 min
code examples curl location globoff 'https //{tenantsubdomain}/tms/api/v1/planning/plan load/{plan load id}' \\ \ 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 load/{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/{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" response = https request(request) puts response read body import requests import json url = "https //{tenantsubdomain}/tms/api/v1/planning/plan load/{plan load id}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // plan load details { "success" true, "data" { "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", "isactive" true, "planid" "pbtnmr", "servicetype" "ftl", "originfacility" "s 23", "destinationfacility" "56567aswer", "stops" \[ "" ], "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" } }// plan load details not found { "success" false, "error" { "code" 404, "message" "plan load details not found" } }// internal server error
