Skip to main content
POST
Renew Domain

Headers

username
string<email>
required

Reseller email address registered in WHMCS

token
string
required

HMAC-SHA256 authentication token.

PHP formula: base64_encode(hash_hmac('sha256', $apiKey, $email . ':' . gmdate('y-m-d H')))

Important: hash_hmac without the 3rd parameter true (returns hex, not binary), then base64_encode of the hex result. The token is 88 characters long.

An optional timestamp header (Unix timestamp, 60-second tolerance) can be sent to synchronize time.

Example:

"YTk4YjRmNjI..."

Body

application/x-www-form-urlencoded
domain
string
required

Full domain name to renew

Example:

"example.com"

regperiod
integer
required

Renewal period in years

Example:

1

addons
object

Domain addons. Each key is an addon name, value is a boolean indicating whether it is enabled.

idnLanguage
string

Language code for IDN domains

Response

Success - Returns "success"

The response is of type string.

Example:

"success"