WHMCS
Sell Gatehills domains from WHMCS
The Gatehills registrar module for WHMCS 8.x (PHP 8.1+) uses the REST API: registrations, transfers, renewals, DNS, privacy, EPP codes and price sync, paid from your prepaid balance.
Requirements
- A Gatehills reseller account (ask support) with billing details and a prepaid balance or an agreed credit limit.
- An API key from Client area → API keys with scopes
domains:write,contacts:write,dns:write(andbilling:readif you want the balance), restricted to the IP addresses of your WHMCS server. - PHP with
curlandjson; outbound HTTPS to the API.
Installation
- Copy
modules/registrars/gatehills/into your WHMCS installation. - System Settings → Domain Registrars: activate Gatehills and paste the API key (stored encrypted by WHMCS).
- System Settings → Domain Pricing: choose Gatehills as automatic registrar. Optionally use Registrar TLD Sync to import our prices and add your margin.
- Optionally set Gatehills as Domain Lookup Provider.
- Make sure the WHMCS cron runs: it syncs expiry dates, status and incoming transfers.
Supported functions
| WHMCS | Gatehills API |
|---|---|
| RegisterDomain, TransferDomain, RenewDomain | POST /domains/register, /domains/transfer, /domains/{name}/renew |
| Get/SaveNameservers, Get/SaveRegistrarLock | GET /domains/{name}, PUT …/nameservers, PUT …/lock |
| Get/SaveContactDetails | GET/PUT /domains/{name}/contacts, POST /contacts |
| GetEPPCode, ReleaseDomain (.uk tag) | GET …/authcode (regenerated when needed), POST …/release |
| GetDNS / SaveDNS | /domains/{name}/dns/records (zones on Gatehills DNS) |
| Register/Modify/DeleteNameserver (glue) | /domains/{name}/hosts |
| IDProtectToggle, RequestDelete | PUT …/privacy, POST …/delete |
| Sync, TransferSync | GET /domains/{name}, GET /transfers/{name} |
| CheckAvailability, GetDomainSuggestions, GetTldPricing | POST /domains/check, GET /pricing |
| Restore from redemption (admin button) | GET/POST /domains/{name}/restore |
Good to know
- Contacts need a real mailbox the registrant reads: relay and disposable addresses are refused with
400 invalid_contact, and WHMCS shows why. - Every API error code has a clear message in the module.
- DNSSEC is available in the API (WHMCS has no standard function for it).