Query order index es
1 min
POST
https://{domain}/app/logisticsorders/v1/api/orders/es
Header Parameters
- X-COREOS-TIDstringrequiredDescription
- X-COREOS-ACCESSstringrequiredDescription
- X-COREOS-USERINFOstringrequiredDescription
Body Parameters
- bodyOrderESRequestrequired
- offsetinteger
- sizeintegerDefault100
Responses
200
curl
curl --request POST \
--url https://{domain}/app/logisticsorders/v1/api/orders/es \
--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 '{
"size": 100
}'javascript
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({
"size": 100
});
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("https://{domain}/app/logisticsorders/v1/api/orders/es", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://{domain}/app/logisticsorders/v1/api/orders/es")
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({
"size": 100
})
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://{domain}/app/logisticsorders/v1/api/orders/es"
payload = json.dumps({
"size": 100
})
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)
200
// OK