API reference · /api/v1
WHMCS module
Sell and manage Domain.af domains from WHMCS 8.0 or later with the official registrar module. Your customers manage nameservers, contacts, lock, EPP codes, WHOIS Privacy, Domain Protection and DNS from the WHMCS client area.
Install
- Download the module zip from the reseller portal (API access → Documentation) and upload the
modules/registrars/domainaffolder to your WHMCS installation. - In the reseller portal, create an API key for WHMCS. Recommended: restrict it to your WHMCS server's IP.
- In WHMCS go to System Settings → Domain Registrars, activate Domain.af and enter the API URL (
https://www.domain.af/api/v1), Key ID and secret. Saving tests the connection. - Under Domain Pricing, assign the extensions to Domain.af and use Registrar TLD Sync to import your cost prices.
- Make sure the WHMCS cron runs, so domain status and expiry dates synchronise.
How billing works
WHMCS bills your customers. Each registration, renewal, transfer and add-on is charged to your Domain.af account credit at your reseller price. If your balance is too low, the WHMCS action fails with a clear "insufficient balance" message and nothing is charged.
The full installation and configuration guide is included in the module package (README.md).