Skip to main content
POST
/
api
/
v1
/
domains
/
renew
Renew a domain
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
}
'
{ "status": "SUCCESS", "message": "Domain order renewed" }

Authorizations

Authorization
string
header
required

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

application/json
order_id
integer
required

Order ID of the domain registration to renew.

Example:

124680932

duration
integer
required

Renewal term in years (1–9).

Required range: 1 <= x <= 9
Example:

1

expiry_timestamp
integer
required

Current expiry of the domain as a Unix epoch timestamp. Must match exactly — use GET /api/v1/domains/orders to retrieve it.

Example:

1835699117

Response

Domain renewed successfully.

status
string
Example:

"SUCCESS"

message
string
Example:

"Domain order renewed"