GatehillsDevelopers

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 (and billing:read if you want the balance), restricted to the IP addresses of your WHMCS server.
  • PHP with curl and json; outbound HTTPS to the API.

Installation

  1. Copy modules/registrars/gatehills/ into your WHMCS installation.
  2. System Settings → Domain Registrars: activate Gatehills and paste the API key (stored encrypted by WHMCS).
  3. System Settings → Domain Pricing: choose Gatehills as automatic registrar. Optionally use Registrar TLD Sync to import our prices and add your margin.
  4. Optionally set Gatehills as Domain Lookup Provider.
  5. Make sure the WHMCS cron runs: it syncs expiry dates, status and incoming transfers.

Supported functions

WHMCSGatehills API
RegisterDomain, TransferDomain, RenewDomainPOST /domains/register, /domains/transfer, /domains/{name}/renew
Get/SaveNameservers, Get/SaveRegistrarLockGET /domains/{name}, PUT …/nameservers, PUT …/lock
Get/SaveContactDetailsGET/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, RequestDeletePUT …/privacy, POST …/delete
Sync, TransferSyncGET /domains/{name}, GET /transfers/{name}
CheckAvailability, GetDomainSuggestions, GetTldPricingPOST /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).