Skip to main content
GET
/
order
/
pricing
/
domains
/
renew
Get Pricing (Renew)
curl --request GET \
  --url https://vicem.com/modules/addons/DomainsReseller/api/index.php/order/pricing/domains/renew \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --header 'token: <token>' \
  --header 'username: <username>' \
  --data domain=example.com
{
  "1": "13.75",
  "2": "27.50"
}

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 (e.g. example.com). The TLD is extracted automatically.

Example:

"example.com"

Response

Success - Returns renew pricing per period

{key}
string