Order App APIs
Orders
List all orders
1 min
code examples curl location globoff 'https //{tenantsubdomain}/tms/api/v1/orders/?page=1\&size=100' \\ \ 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'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"); var requestoptions = { method 'get', headers myheaders, redirect 'follow' }; fetch("https //{tenantsubdomain}/tms/api/v1/orders/?page=1\&size=100", 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/orders/?page=1\&size=100") 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" response = https request(request) puts response read body import requests import json url = "https //{tenantsubdomain}/tms/api/v1/orders/?page=1\&size=100" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json', 'x coreos request id' 'string', 'x coreos tid' 'string', 'x coreos access' 'string' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // order list response { "data" \[ { "orderid" "ordrx128", "origin" "s 23", "originname" "delhi 110038", "destination" "ggn", "destinationname" "agartala 799002", "movement" "primary", "totalordervalue" 0, "priority" "high", "expdeliverydate" 1751221467000, "expdispatchat" 0, "totalquantity" 1, "totalweight" 200, "totalvolume" 42 378, "weightunit" "kgs", "volumeunit" "cft", "lineitems" \[ { "lineitemid" "ordrx128 1", "itemvalue" 0, "description" { "name" "60000000019522", "category" "fxdprocessedfood", "code" "60000000019522" }, "quantity" 1, "weight" 200, "volume" 42 378 } ] } ], "success" true }// internal server error
