Order Service
External Reference APIs
Get Order Details by using client id and client order id
1min
code examples curl location globoff 'https //{base url}/core/api/v1/orders/clients/{clientid}/orders/{clientorderid}' \\ \ 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 //{base url}/core/api/v1/orders/clients/{clientid}/orders/{clientorderid}", 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 //{base url}/core/api/v1/orders/clients/{clientid}/orders/{clientorderid}") 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 //{base url}/core/api/v1/orders/clients/{clientid}/orders/{clientorderid}" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) responses // entity event mapped response { "error" { "code" "", "description" "", "additionalinfo" {} }, "request" { "uri" "", "method" "", "querystring" "", "body" {} }, "data" \[ { "orderid" "", "cancellation" { "cancellationrequested" false, "cancellationrequestat" 0, "cancellationrequestedby" "", "cancellationstatus" "", "cancellationfailedreasoncode" "", "cancelledat" 0 }, "shipmentflow" "", "workorderflowtype" "", "dropdetails" { "contact" {}, "location" {} }, "clientdetails" { "clientname" "", "clientid" "", "clientorderid" "" }, "ordersummary" { "invoicenumber" "", "orderdescription" "", "totalweight" { "value" 0, "unit" "" }, "totalitems" 0, "totalordercost" { "cost" 0, "currencycode" "", "minorunit" 0 } }, "attributes" {}, "workorder" \[ { "workorderid" "", "servicetemplateid" "", "servicetemplatename" "", "workorderstatus" "", "cancellationstatus" "", "pickupdetails" { "contact" { "" "" }, "location" { "" "" }, "pickupslot" { "" "" }, "servicetime" 0 }, "returndetails" { "contact" { "" "" }, "location" { "" "" }, "returnslot" { "" "" }, "servicetime" 0 }, "deliverydetails" { "promiseddeliverydate" "", "deliveryslot" { "" "" }, "deliveryservicetime" 0 }, "attributes" {}, "description" "", "containers" \[ {} ], "workordertype" "" } ], "schemaversion" 0, "currentstate" "", "currentsubstate" "", "createdat" 0, "updatedat" 0, "createdby" { "id" "", "name" "", "appid" "" }, "updatedby" { "id" "", "name" "", "appid" "" } } ] }// error occurred { "error" { "code" "", "description" "", "additionalinfo" {} }, "request" { "uri" "", "method" "", "querystring" "", "body" {} }, "data" { "id" "" } }// error occurred { "error" { "code" "", "description" "", "additionalinfo" {} }, "request" { "uri" "", "method" "", "querystring" "", "body" {} }, "data" { "id" "" } }// error occurred { "error" { "code" "", "description" "", "additionalinfo" {} }, "request" { "uri" "", "method" "", "querystring" "", "body" {} }, "data" { "id" "" } }