Skip to content

Module Parameters

The module parameters are the data values passed into each registrar module function when called.

Registrar module functions all receive the same common set of parameters. These parameters provide information about the specific domain the module command is being invoked for. The parameters also contain the settings defined for the module itself.

Additional variables specific to the action being performed such as EPP code, nameservers and WHOIS contact information may be available depending upon the function being called.

VariableDescription
useridThe client ID who owns the domain
domainidThe unique ID of the domain
sldeg. yourdomain
tldeg. .com
regperiodThe registration term for the domain (1-10 years)
eppcodePresent only for incoming domain transfer orders (Transfers only)
Nameservers
ns1First Nameserver (Registrations, Transfers and Nameserver Updates only)
ns2Second Nameserver
ns3Third Nameserver
ns4Fourth Nameserver
ns5Fifth Nameserver
Contact Information
firstname
lastname
fullnameFirst name and last name combined
companyname
email
address1
address2
city
stateState code eg. TX
fullstateState name eg. Texas
postcodePostcode/Zip code
countrycodeCountry code eg. GB
countrynameCountry name eg. United Kingdom
phonenumberPhone number as the user provided it
phoneccCountry code determined based on country
fullphonenumberFormat: +CC.xxxxxxxxxxxx
additionalfieldsAn array of additional registrant information fields and their values
Admin/Tech/Billing
adminfirstname
adminlastname
admincompanyname
adminemail
adminaddress1
adminaddress2
admincity
adminstateState code eg. TX
adminfullstateState name eg. Texas
adminpostcodePostcode/Zip code
admincountryeg. GB
adminphonenumberPhone number as the user provided it
adminfullphonenumberFormat: +CC.xxxxxxxxxxxx
Domain Addons
dnsmanagementTrue/false for if DNS Management add-on is active
emailforwardingTrue/false for if Email Forwarding add-on is active
idprotectionTrue/false for if ID Protection add-on is active
Premium Parameters
premiumEnabledTrue if premium domain orders are enabled in WHMCS (Registration/Transfers only)
premiumCostThe cost price fetched at the time of the order being placed
Grace/Redemption Parameters
isInGracePeriodTrue if domain is within the renewal grace period. Available in the module renewal function only
isInRedemptionGracePeriodTrue if the domain is within the redemption grace period. Available in the module renewal function only
IDN Parameters
idnlanguageThe language code for the domain.
domain_punycodeThe Punycode version of the domain name.
sld_punycodeThe SLD with the Punycode domain name.
tld_punycodeThe TLD with the Punycode domain name.
is_idnWhether the domain is an IDN.