curl --request GET \
--url https://dev.namify.host/api/v1/domains/orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.namify.host/api/v1/domains/orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev.namify.host/api/v1/domains/orders', 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://dev.namify.host/api/v1/domains/orders",
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: Bearer <token>"
],
]);
$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://dev.namify.host/api/v1/domains/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.namify.host/api/v1/domains/orders")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.namify.host/api/v1/domains/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"total_orders": 2,
"orders_on_page": 2,
"orders": [
{
"order_id": 124680932,
"domain_name": "example.com",
"status": "Active",
"expiry": "Mar 8, 2028",
"expiry_timestamp": 1835699117
},
{
"order_id": 124680901,
"domain_name": "myshop.com",
"status": "Expired",
"expiry": "Jan 1, 2025",
"expiry_timestamp": 1735689600
}
]
}{
"message": "Unauthorized"
}{
"status": "ERROR",
"message": "Invalid customer ID"
}Orders
Returns a paginated list of domain orders belonging to a specific customer under your partner account.
Statuses returned: Only orders with a current status of Active, Suspended, Pending Delete Restorable, or Expired are included. Domains past their expiry date are automatically marked as Expired based on their expiry_timestamp, regardless of the upstream registry status.
Pagination: Results are paged. Use the page parameter to navigate through large result sets. The response includes total_orders (total matching records across all pages) and orders_on_page (count on the current page).
Filtering: Use the optional search parameter to filter results by domain name keyword.
Renewal workflow: The expiry_timestamp on each order is the value you must pass to POST /api/v1/domains/renew. Always fetch the latest value from this endpoint immediately before submitting a renewal to avoid expiry mismatch errors.
curl --request GET \
--url https://dev.namify.host/api/v1/domains/orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.namify.host/api/v1/domains/orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev.namify.host/api/v1/domains/orders', 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://dev.namify.host/api/v1/domains/orders",
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: Bearer <token>"
],
]);
$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://dev.namify.host/api/v1/domains/orders"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.namify.host/api/v1/domains/orders")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.namify.host/api/v1/domains/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"total_orders": 2,
"orders_on_page": 2,
"orders": [
{
"order_id": 124680932,
"domain_name": "example.com",
"status": "Active",
"expiry": "Mar 8, 2028",
"expiry_timestamp": 1835699117
},
{
"order_id": 124680901,
"domain_name": "myshop.com",
"status": "Expired",
"expiry": "Jan 1, 2025",
"expiry_timestamp": 1735689600
}
]
}{
"message": "Unauthorized"
}{
"status": "ERROR",
"message": "Invalid customer ID"
}Authorizations
A personal access token. Obtain one from the dashboard under Settings > API Key. Include it in the Authorization header as Bearer <token>. Unauthenticated requests to protected routes return 401 Unauthorized.
Query Parameters
ID of the customer whose domain orders to retrieve.
85384231
Page number for pagination. Defaults to 1.
1
Optional keyword to filter orders by domain name.
"example"