Order status
curl --request GET \
--url https://partners.dekhq.com/api/partners/v1/orders/status \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://partners.dekhq.com/api/partners/v1/orders/status"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://partners.dekhq.com/api/partners/v1/orders/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://partners.dekhq.com/api/partners/v1/orders/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://partners.dekhq.com/api/partners/v1/orders/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://partners.dekhq.com/api/partners/v1/orders/status")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://partners.dekhq.com/api/partners/v1/orders/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"orders": [
{
"purchaseOrderNumber": "PO-10042",
"details": [
{
"factoryOrderNumber": "SO-58817",
"statusID": 60,
"statusName": "In Production",
"expectedShipDate": "2026-02-12T00:00:00Z",
"expectedDeliveryDate": "2026-02-16T00:00:00Z",
"responseRequired": false,
"validTimestamp": "2026-02-05T15:30:00Z"
}
]
}
]
}{
"error": "Invalid id or password"
}{
"error": "Credential not permitted for scope: order_status"
}{
"error": "Rate limit exceeded"
}{
"error": "Internal error"
}API Reference
Order status
Current status of your orders. Only orders for the clients your credential is linked to, and only orders with a PO number. At most 5,000 orders.
GET
/
api
/
partners
/
v1
/
orders
/
status
Order status
curl --request GET \
--url https://partners.dekhq.com/api/partners/v1/orders/status \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://partners.dekhq.com/api/partners/v1/orders/status"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://partners.dekhq.com/api/partners/v1/orders/status', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://partners.dekhq.com/api/partners/v1/orders/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://partners.dekhq.com/api/partners/v1/orders/status"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://partners.dekhq.com/api/partners/v1/orders/status")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://partners.dekhq.com/api/partners/v1/orders/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"orders": [
{
"purchaseOrderNumber": "PO-10042",
"details": [
{
"factoryOrderNumber": "SO-58817",
"statusID": 60,
"statusName": "In Production",
"expectedShipDate": "2026-02-12T00:00:00Z",
"expectedDeliveryDate": "2026-02-16T00:00:00Z",
"responseRequired": false,
"validTimestamp": "2026-02-05T15:30:00Z"
}
]
}
]
}{
"error": "Invalid id or password"
}{
"error": "Credential not permitted for scope: order_status"
}{
"error": "Rate limit exceeded"
}{
"error": "Internal error"
}Authorizations
Your DEKHQ partner id and password.
Query Parameters
1 = PO number, 2 = sales order number, 3 = changed since statusTimeStamp, 4 = all open orders. Other values return an empty list.
Available options:
1, 2, 3, 4 PO number (queryType 1) or sales order number (queryType 2).
ISO 8601 time; queryType 3 returns orders changed since then.
Response
Matching orders.
Show child attributes
Show child attributes