Load App APIs
LTL Operations
Create LTL manifest
1 min
code examples curl location globoff 'https //{tenantsubdomain}/tms/api/v1/demands/ltl create manifest' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ header 'x coreos tid string' \\ \ header 'x coreos access string' \\ \ header 'x coreos userinfo string' \\ \ data '{ "manifestationmode" "", "orderdetails" { "totalquantity" "", "totalweight" "", "boxdimension" \[ { "quantity" 0, "length" 0, "breadth" 0, "height" 0, "weight" 0 } ], "productdescription" "" }, "vendorname" "", "vendorid" "", "contractid" "", "loadids" \[], "pickupdatetime" 0, "servicetype" "", "lrnumber" "" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); myheaders append("x coreos tid", "string"); myheaders append("x coreos access", "string"); myheaders append("x coreos userinfo", "string"); var raw = json stringify({ "manifestationmode" "", "orderdetails" { "totalquantity" "", "totalweight" "", "boxdimension" \[ { "quantity" 0, "length" 0, "breadth" 0, "height" 0, "weight" 0 } ], "productdescription" "" }, "vendorname" "", "vendorid" "", "contractid" "", "loadids" \[], "pickupdatetime" 0, "servicetype" "", "lrnumber" "" }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //{tenantsubdomain}/tms/api/v1/demands/ltl create manifest", 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/demands/ltl create manifest") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request\["x coreos tid"] = "string" request\["x coreos access"] = "string" request\["x coreos userinfo"] = "string" request body = json dump({ "manifestationmode" "", "orderdetails" { "totalquantity" "", "totalweight" "", "boxdimension" \[ { "quantity" 0, "length" 0, "breadth" 0, "height" 0, "weight" 0 } ], "productdescription" "" }, "vendorname" "", "vendorid" "", "contractid" "", "loadids" \[], "pickupdatetime" 0, "servicetype" "", "lrnumber" "" }) response = https request(request) puts response read body import requests import json url = "https //{tenantsubdomain}/tms/api/v1/demands/ltl create manifest" payload = json dumps({ "manifestationmode" "", "orderdetails" { "totalquantity" "", "totalweight" "", "boxdimension" \[ { "quantity" 0, "length" 0, "breadth" 0, "height" 0, "weight" 0 } ], "productdescription" "" }, "vendorname" "", "vendorid" "", "contractid" "", "loadids" \[], "pickupdatetime" 0, "servicetype" "", "lrnumber" "" }) headers = { 'accept' 'application/json', 'content type' 'application/json', 'x coreos tid' 'string', 'x coreos access' 'string', 'x coreos userinfo' 'string' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // ltl manifest created successfully { "success" false, "data" { "id" "", "requestid" "" } }// bad request { "success" false, "error" "", "validation errors" \[ { "field" "", "message" "" } ] }// internal server error { "success" false, "error" "", "error code" "" }
