Registrar integration
Pricing & coupon API
Approved registrars receive an API key and secret. Requests use HMAC-SHA256 signatures and JSON payloads.
Endpoint
POST https://www.cheapregistrations.com/api/v1/prices.php
Headers
Content-Type: application/json
X-API-Key: YOUR_PUBLIC_API_KEY
X-Timestamp: 1786168340
X-Signature: HMAC_SHA256(timestamp + "." + raw_request_body, API_SECRET)
Example JSON
{
"prices": [
{
"tld": "net",
"registration": 11.99,
"renewal": 14.99,
"transfer": 10.99
}
],
"coupons": [
{
"tld": "net",
"code": "NETSAVE",
"discounted_price": 8.99,
"expires_at": "2026-09-30T23:59:59Z",
"notes": "New registrations only"
}
]
}
cURL example
BODY='{"prices":[{"tld":"net","registration":11.99,"renewal":14.99,"transfer":10.99}]}'
TS=$(date +%s)
SIG=$(printf "%s.%s" "$TS" "$BODY" | openssl dgst -sha256 -hmac "YOUR_API_SECRET" -hex | sed 's/^.* //')
curl -X POST "https://www.cheapregistrations.com/api/v1/prices.php" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_PUBLIC_API_KEY" \
-H "X-Timestamp: $TS" \
-H "X-Signature: $SIG" \
--data "$BODY"