Skip to main content
GET
/
tlds
/
pricing
Get TLDs Pricing
curl --request GET \
  --url https://vicem.com/modules/addons/DomainsReseller/api/index.php/tlds/pricing \
  --header 'token: <token>' \
  --header 'username: <username>'
[
  {
    "tld": ".com",
    "registrationPrice": "13.75",
    "renewalPrice": "13.75",
    "transferPrice": "13.75",
    "graceFee": "0.00",
    "graceDays": -1,
    "redemptionDays": -1,
    "redemptionFee": "-1.00",
    "currencyCode": "EUR",
    "years": [
      1
    ]
  }
]

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..."

Response

Success - Returns pricing for all TLDs

tld
string

Domain extension (TLD)

Example:

".com"

registrationPrice
string

Registration price

Example:

"13.75"

renewalPrice
string

Renewal price

Example:

"13.75"

transferPrice
string

Transfer price

Example:

"13.75"

graceFee
string

Grace period fee

Example:

"0.00"

graceDays
integer

Grace period days (-1 if not applicable)

Example:

-1

redemptionDays
integer

Redemption period days (-1 if not applicable)

Example:

-1

redemptionFee
string

Redemption fee (-1.00 if not applicable)

Example:

"-1.00"

currencyCode
string

Currency code

Example:

"EUR"

years
integer[]

Available registration periods (in years)

Example:
[1]