curl --request POST \
--url https://dev.namify.host/api/v1/domains/renew \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"order_id": 124680932,
"duration": 1,
"expiry_timestamp": 1835699117
}
'import requests
url = "https://dev.namify.host/api/v1/domains/renew"
payload = {
"order_id": 124680932,
"duration": 1,
"expiry_timestamp": 1835699117
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({order_id: 124680932, duration: 1, expiry_timestamp: 1835699117})
};
fetch('https://dev.namify.host/api/v1/domains/renew', 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/renew",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'order_id' => 124680932,
'duration' => 1,
'expiry_timestamp' => 1835699117
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dev.namify.host/api/v1/domains/renew"
payload := strings.NewReader("{\n \"order_id\": 124680932,\n \"duration\": 1,\n \"expiry_timestamp\": 1835699117\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dev.namify.host/api/v1/domains/renew")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"order_id\": 124680932,\n \"duration\": 1,\n \"expiry_timestamp\": 1835699117\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.namify.host/api/v1/domains/renew")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"order_id\": 124680932,\n \"duration\": 1,\n \"expiry_timestamp\": 1835699117\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"message": "Domain order renewed"
}Renewal
Extends the registration term of an existing domain order before it expires.
Ownership check: The order_id must belong to a domain under your partner account. Orders from other partners will be rejected with a 422.
Expiry verification: The expiry_timestamp must exactly match the domain’s current expiry as a Unix epoch timestamp. This acts as an optimistic concurrency check to prevent accidental double-renewals. Retrieve the current value from GET /api/v1/domains/orders before submitting.
Billing: A billing settlement is performed automatically before the renewal is submitted to the registry. If the settlement fails, the renewal will not proceed.
Duration: Renewals are accepted for 1–9 years. Some TLDs enforce a minimum renewal period (e.g. 2 years for .ai) — if the renewal fails for a short duration, try increasing the duration.
Timing: Renew before the domain expires. Domains in Pending Delete Restorable status may require a restore instead of a standard renewal.
curl --request POST \
--url https://dev.namify.host/api/v1/domains/renew \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"order_id": 124680932,
"duration": 1,
"expiry_timestamp": 1835699117
}
'import requests
url = "https://dev.namify.host/api/v1/domains/renew"
payload = {
"order_id": 124680932,
"duration": 1,
"expiry_timestamp": 1835699117
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({order_id: 124680932, duration: 1, expiry_timestamp: 1835699117})
};
fetch('https://dev.namify.host/api/v1/domains/renew', 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/renew",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'order_id' => 124680932,
'duration' => 1,
'expiry_timestamp' => 1835699117
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://dev.namify.host/api/v1/domains/renew"
payload := strings.NewReader("{\n \"order_id\": 124680932,\n \"duration\": 1,\n \"expiry_timestamp\": 1835699117\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://dev.namify.host/api/v1/domains/renew")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"order_id\": 124680932,\n \"duration\": 1,\n \"expiry_timestamp\": 1835699117\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.namify.host/api/v1/domains/renew")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"order_id\": 124680932,\n \"duration\": 1,\n \"expiry_timestamp\": 1835699117\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"message": "Domain order renewed"
}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.
Body
Order ID of the domain registration to renew.
124680932
Renewal term in years (1–9).
1 <= x <= 91
Current expiry of the domain as a Unix epoch timestamp. Must match exactly — use GET /api/v1/domains/orders to retrieve it.
1835699117