Planning App APIs
Plans
List plans
1 min
code examples curl location globoff 'https //{tenantsubdomain}/tms/api/v1/planning/plan' \\ \ 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", 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") 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" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // plans list { "data" { "meta" { "totalelements" 0 }, "plans" \[ { "id" "planid", "uniquecode" "sample", "owner" "sample", "createdat" 1754548977282, "createdby" { "id" "sample id", "name" "sample name" }, "updatedat" 1754548989270, "updatedby" { "id" "sample id", "name" "sample name" }, "entityname" "entity", "tenantid" "sample", "appid" "app\ sample id", "name" "planentity", "state" "pending\ pending", "status" "reviewed", "starttime" 1754548976826, "plansettings" { "ordersplit" true, "customersplit" true, "orderids" \[ "" ], "minweightutilization" 1, "minvolumeutilization" 1, "movementtype" \[ "" ], "planltl" false, "consolidateltl" false, "replanexistingload" true, "maxstops" 1, "stacking" false }, "facilitylist" \[ "" ], "planmetrics" { "orders" { "total" 6, "processed" 1, "dropped" 5 }, "loads" { "total" 1, "ftl" 1, "ltl" 0 }, "cost" { "total" 123, "ftl" 123, "ltl" 0 }, "weight" { "total" 500, "ftl" 500, "ltl" 0 }, "volume" { "total" 500, "ftl" 500, "ltl" 0 }, "ftlutilization" { "min" 4, "max" 4, "avg" 4 } }, "autoconfirmloads" true, "facilitynamelist" \[ "" ] } ] }, "success" true }// internal server error
