Knowledge Base

API Actions

RegisterDomain:

    This command is used to send a Register command to the registrar.<br /><br />
    <b>Request Parameters</b>
    <table class="table table-bordered ">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
        <tr><td>regperiod</td><td>Number</td><td>Yes</td><td>Registration period</td></tr>
        <tr><td>nameserver1</td><td>String</td><td>No</td><td>First nameserver</td></tr>
        <tr><td>nameserver2</td><td>String</td><td>No</td><td>Second nameserver</td></tr>
        <tr><td>nameserver3</td><td>String</td><td>No</td><td>Third nameserver</td></tr>
        <tr><td>nameserver4</td><td>String</td><td>No</td><td>Fourth nameserver</td></tr>
        <tr><td>nameserver5</td><td>String</td><td>No</td><td>Fifth nameserver</td></tr>
        <tr><td>dnsmanagement</td><td>Number</td><td>No</td><td>Enables dns management for this domain</td></tr>
        <tr><td>emailforwarding</td><td>Number</td><td>No</td><td>Enables email forwarding for this domain</td></tr>
        <tr><td>idprotection</td><td>Number</td><td>No</td><td>Enables id protection for this domain</td></tr>
        <tr><td>firstname</td><td>String</td><td>Yes</td><td>First name of the user</td></tr>
        <tr><td>lastname</td><td>String</td><td>Yes</td><td>Last name of the user</td></tr>
        <tr><td>address1</td><td>String</td><td>Yes</td><td>First part of user address</td></tr>
        <tr><td>address2</td><td>String</td><td>No</td><td>Second part of user address</td></tr>
        <tr><td>city</td><td>String</td><td>Yes</td><td>City of the user</td></tr>
        <tr><td>state</td><td>String</td><td>Yes</td><td>State/Province of the user</td></tr>
        <tr><td>postcode</td><td>String</td><td>Yes</td><td>Postal/ZIP Code of the user</td></tr>
        <tr><td>country</td><td>String</td><td>Yes</td><td>Country of the user</td></tr>
        <tr><td>phonenumber</td><td>String</td><td>Yes</td><td>Phone number in the format +NNN.NNNNNNNNNN</td></tr>
        <tr><td>email</td><td>String</td><td>Yes</td><td>Email address of the user</td></tr>
        <tr><td>adminfirstname</td><td>String</td><td>No</td><td>First name of the admin user</td></tr>
        <tr><td>adminlastname</td><td>String</td><td>No</td><td>Last name of the admin user</td></tr>
        <tr><td>adminaddress1</td><td>String</td><td>No</td><td>First part of admin user address</td></tr>
        <tr><td>adminaddress2</td><td>String</td><td>No</td><td>Second part of admin user address</td></tr>
        <tr><td>admincity</td><td>String</td><td>No</td><td>City of the admin user</td></tr>
        <tr><td>adminstate</td><td>String</td><td>No</td><td>State/Province of the admin user</td></tr>
        <tr><td>adminpostcode</td><td>String</td><td>No</td><td>Postal/ZIP Code of the admin user</td></tr>
        <tr><td>admincountry</td><td>String</td><td>No</td><td>Country of the admin user</td></tr>
        <tr><td>adminphonenumber</td><td>String</td><td>No</td><td>Phone number in the format +NNN.NNNNNNNNNN</td></tr>
        <tr><td>adminemail</td><td>String</td><td>No</td><td>Email address of the admin user</td></tr>
        <tr><td>domainfields</td><td>String</td><td>No</td><td>A base64 encoded serialized array of the TLD specific field values</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=RegisterDomain&sld=exampledomain&tld=com&regperiod=1&nameserver1=ns1.yourdomain.com&nameserver2=ns2.yourdomain.com&firstname=test&lastname=test&companyname=company&address1=addresss&city=city&state=region&country=US&postcode=12345&phonenumber=1234567890&email=admin@exampledomain.com' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success","msg":"Domain has been registered"}</pre>
   <br />

   <h3>TransferDomain</h3>
   This command is used to send a Transfer command to the registrar.<br /><br />
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
        <tr><td>transfersecret</td><td>String</td><td>No</td><td>Domain authorization code</td></tr>
        <tr><td>regperiod</td><td>Number</td><td>Yes</td><td>Registration period</td></tr>
        <tr><td>nameserver1</td><td>String</td><td>No</td><td>First nameserver</td></tr>
        <tr><td>nameserver2</td><td>String</td><td>No</td><td>Second nameserver</td></tr>
        <tr><td>nameserver3</td><td>String</td><td>No</td><td>Third nameserver</td></tr>
        <tr><td>nameserver4</td><td>String</td><td>No</td><td>Fourth nameserver</td></tr>
        <tr><td>nameserver5</td><td>String</td><td>No</td><td>Fifth nameserver</td></tr>
        <tr><td>dnsmanagement</td><td>Number</td><td>No</td><td>Enables dns management for this domain</td></tr>
        <tr><td>emailforwarding</td><td>Number</td><td>No</td><td>Enables email forwarding for this domain</td></tr>
        <tr><td>idprotection</td><td>Number</td><td>No</td><td>Enables id protection for this domain</td></tr>
        <tr><td>firstname</td><td>String</td><td>Yes</td><td>First name of the user</td></tr>
        <tr><td>lastname</td><td>String</td><td>Yes</td><td>Last name of the user</td></tr>
        <tr><td>address1</td><td>String</td><td>Yes</td><td>First part of user address</td></tr>
        <tr><td>address2</td><td>String</td><td>No</td><td>Second part of user address</td></tr>
        <tr><td>city</td><td>String</td><td>Yes</td><td>City of the user</td></tr>
        <tr><td>state</td><td>String</td><td>Yes</td><td>State/Province of the user</td></tr>
        <tr><td>postcode</td><td>String</td><td>Yes</td><td>Postal/ZIP Code of the user</td></tr>
        <tr><td>country</td><td>String</td><td>Yes</td><td>Country of the user</td></tr>
        <tr><td>phonenumber</td><td>String</td><td>Yes</td><td>Phone number in the format +NNN.NNNNNNNNNN</td></tr>
        <tr><td>email</td><td>String</td><td>Yes</td><td>Email address of the user</td></tr>
        <tr><td>adminfirstname</td><td>String</td><td>No</td><td>First name of the admin user</td></tr>
        <tr><td>adminlastname</td><td>String</td><td>No</td><td>Last name of the admin user</td></tr>
        <tr><td>adminaddress1</td><td>String</td><td>No</td><td>First part of admin user address</td></tr>
        <tr><td>adminaddress2</td><td>String</td><td>No</td><td>Second part of admin user address</td></tr>
        <tr><td>admincity</td><td>String</td><td>No</td><td>City of the admin user</td></tr>
        <tr><td>adminstate</td><td>String</td><td>No</td><td>State/Province of the admin user</td></tr>
        <tr><td>adminpostcode</td><td>String</td><td>No</td><td>Postal/ZIP Code of the admin user</td></tr>
        <tr><td>admincountry</td><td>String</td><td>No</td><td>Country of the admin user</td></tr>
        <tr><td>adminphonenumber</td><td>String</td><td>No</td><td>Phone number in the format +NNN.NNNNNNNNNN</td></tr>
        <tr><td>adminemail</td><td>String</td><td>No</td><td>Email address of the admin user</td></tr>
        <tr><td>domainfields</td><td>String</td><td>No</td><td>A base64 encoded serialized array of the TLD specific field values</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=TransferDomain&sld=exampledomain&tld=com&transfersecret=gd23h231s21&regperiod=1&nameserver1=ns1.yourdomain.com&nameserver2=ns2.yourdomain.com&firstname=test&lastname=test&companyname=company&address1=addresss&city=city&state=region&country=US&postcode=12345&phonenumber=1234567890&email=admin@exampledomain.com' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success","msg":"Domain transfer initiated successfully."}</pre>
   <br />     

   <h3>RenewDomain</h3>
   This command is used to send a Renew command to the registrar.<br /><br />
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
        <tr><td>regperiod</td><td>Number</td><td>Yes</td><td>Registration period</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=RenewDomain&sld=exampledomain&tld=com&regperiod=1' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success","msg":"The domain has been successfully."}</pre>
   <br /> 

   <h3>GetNameservers</h3>
   This command is used to obtain the nameservers of a domain.<br /><br />
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetNameservers&sld=exampledomain&tld=com' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success","ns1":"ns1.exampledomain.com","ns2":"ns2.exampledomain.com"}</pre>
   <br /> 

   <h3>SaveNameservers</h3>
   This command is used to update the nameservers of a domain.<br /><br />
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
        <tr><td>nameserver1</td><td>String</td><td>No</td><td>First nameserver</td></tr>
        <tr><td>nameserver2</td><td>String</td><td>No</td><td>Second nameserver</td></tr>
        <tr><td>nameserver3</td><td>String</td><td>No</td><td>Third nameserver</td></tr>
        <tr><td>nameserver4</td><td>String</td><td>No</td><td>Fourth nameserver</td></tr>
        <tr><td>nameserver5</td><td>String</td><td>No</td><td>Fifth nameserver</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=SaveNameservers&sld=exampledomain&tld=com&ns1=ns1.exampledomain.com&ns2=ns2.exampledomain.com' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success"}</pre>
   <br />

   <h3>ReleaseDomain</h3>
   This command is used to send a Release command to the registrar.<br /><br />
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
        <tr><td>newtag</td><td>String</td><td>Yes</td><td>The new tag for the domain</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=ReleaseDomain&sld=exampledomain&tld=com&newtag=1AND1-TEST' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success"}</pre>
   <br /> 

   <h3>RequestDelete</h3>
   This function is called when a domain is requested to be deleted<br /><br />
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=RequestDelete&sld=exampledomain&tld=com' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success"}</pre>
   <br /> 

   <h3>GetEPPCode</h3>
   This command is used to obtain the EPP Code of a domain.<br /><br />
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetEPPCode&sld=exampledomain&tld=com' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success","eppcode":"23svxce123fds"}</pre>
   <br /> 

   <h3>GetContactDetails</h3>
   This command is used to perform a whois lookup on a specified domain.<br /><br />
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetContactDetails&sld=exampledomain&tld=com' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success","Registrant":{"Name":"John Doe","Company":"Company name","Address":"P.O.","City":"Amsterdam","Country":"NL","Zip_Code":"1001 GT","Email":"john@exampledomain.com","Telephone":"N\/A"}}</pre>
   <br /> 

   <h3>SaveContactDetails</h3>
   his command is used to update the contact information on a domain.<br /><br />
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
        <tr><td>contactdetails</td><td>Array</td><td>Yes</td><td>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=SaveContactDetails&sld=exampledomain&tld=com&contactdetails[Registrant][Name]=John%20Doe&contactdetails[Registrant][Company]=Company%20name&contactdetails[Registrant][Address]=Address&contactdetails[Registrant][City]=Amsterdam&contactdetails[Registrant][Country]=NL&contactdetails[Registrant][Zip_Code]=1001 GT&contactdetails[Registrant][Email]=test@exampledomain.com&contactdetails[Registrant][Telephone]=N/A' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success","Registrant":{"Name":"John Doe","Company":"Company name","Address":"P.O.","City":"Amsterdam","Country":"NL","Zip_Code":"1001 GT","Email":"john@exampledomain.com","Telephone":"N\/A"}}</pre>
   <br /> 

   <h3>DomainGetLockingStatus</h3>
   This command is used to obtain the lock state of a domain.<br /><br />
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=domaingetlockingstatus&sld=exampledomain&tld=com' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success","lockstatus":"unlocked"}</pre>
   <br />

   <h3>DomainUpdateLockingStatus</h3>
   This command is used to update the lock state of a domain.<br /><br />
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
        <tr><td>lockstatus</td><td>Null/Number</td><td>No</td><td>To lock the domain, set it to '1'</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=domainupdatelockingstatus&sld=exampledomain&tld=com&lockstatus=' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success"}</pre>
   <br />

   <h3>GetDNS</h3>
   This function is called when the DNS Host Records are requested to be viewed within WHMCS
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetDNS&sld=exampledomain&tld=com' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"0":{"hostname":"*","type":"A","address":"0.0.0.0","priority":null},"1":{"hostname":"mail","type":"MXE","address":"0.0.0.0","priority":"10"},"result":"success"}</pre>
   <br />

   <h3>SaveDNS</h3>
   This function is called when any changes to DNS Host Records information is submitted
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
        <tr><td>dnsrecords</td><td>String</td><td>Yes</td><td>A base64 encoded serialized array of the dns records.</td></tr>
        <tr><td colspan="4">base64_encode(serialize(array(0=>array("hostname"=>"*","type"=>"A","address"=>"0.0.0.0","priority"=>"N/A","recid"=>""))));;</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=SaveDNS&sld=exampledomain&tld=com&dnsrecords=czowOiIiOw==' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success"}</pre>
   <br />

   <h3>RegisterNameserver</h3>
   This function is called when a child nameserver is requested to be registered
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
        <tr><td>nameserver</td><td>String</td><td>Yes</td><td></td></tr>
        <tr><td>ipaddress</td><td>String</td><td>Yes</td><td></td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=RegisterNameserver&sld=exampledomain&tld=com&nameserver=test.exampledomain.com&ipaddress=1.1.1.1' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success"}</pre>
   <br />

   <h3>ModifyNameserver</h3>
   This function is called when a child nameserver is requested to be edited
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
        <tr><td>nameserver</td><td><td>String</td><td>Yes</td><td></td></tr>
        <tr><td>currentipaddress</td><td>String</td><td>Yes</td><td></td></tr>
        <tr><td>newipaddress</td><td>String</td><td>Yes</td><td></td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=ModifyNameserver&sld=exampledomain&tld=com&nameserver=test.exampledomain.com&currentipaddress=1.1.1.1&newipaddress=2.2.2.2' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success"}</pre>
   <br />

   <h3>DeleteNameserver</h3>
   This function is called when a child nameserver is requested to be deleted
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
        <tr><td>nameserver</td><td>String</td><td>Yes</td><td></td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=DeleteNameserver&sld=exampledomain&tld=com&nameserver=test.exampledomain.com' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success"}</pre>
   <br />

   <h3>GetEmailForwarding</h3>
   This function is called when the Email Forwarding are requested to be viewed within WHMCS
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=GetEmailForwarding&sld=exampledomain&tld=com' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"1":{"prefix":"test","forwardto":"test@exampledomain.com"},"result":"success"}</pre>
   <br />

   <h3>SaveEmailForwarding</h3>
   This function is called when the Email Forwarding are requested to be viewed within WHMCS
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
        <tr><td>prefix</td><td>String</td><td>Yes</td><td>A base64 encoded serialized array of the prefixes.</td></tr>
        <tr><td colspan="4">base64_encode(serialize(array(0=>"test"))));</td></tr>
        <tr><td>forwardto</td><td>String</td><td>Yes</td><td>A base64 encoded serialized array of the forwards.</td></tr>
        <tr><td colspan="4">base64_encode(serialize(array(0=>"test@exampledomain.com")));</td></tr>

   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=SaveEmailForwarding&sld=exampledomain&tld=com&prefix=czowOiIiOw==&forwardto=czowOiIiOw==' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success"}</pre>
   <br />

   <h3>Sync</h3>
   This function can include syncing status changes, renewals, and expiry dates.
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=Sync&sld=exampledomain&tld=com' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success"}</pre>
   <br />

   <h3>TransferSync</h3>
   Tthis function is called for every domain in the Pending Transfer status each time your domain sync cron runs.
   <b>Request Parameters</b>
   <table class="table table-bordered">
        <thead class="domain-head">
            <tr><th>Name</th><th>Type</th><th>Required?</th><th>Description</th></tr>
        </thead>
        <tr><td>sld</td><td>String</td><td>Yes</td><td>Domain name</td></tr>
        <tr><td>tld</td><td>String</td><td>Yes</td><td>Suffix attached to domain name</td></tr>
        <tr><td>domain</td><td>String</td><td>Yes</td><td>Full domain name</td></tr>
        <tr><td>regperiod</td><td>Int</td><td>Yes</td><td>Registration period</td></tr>
   </table>
   <b>Example Request:</b><br />
   <pre>curl 'https://manage.moxrox.com/domainsResellerAPI/api.php' --data 'token=AaLc8eNZWsZtWlT9LtT7NUha&authemail=test@exampledomain.com&action=TransferSync&sld=exampledomain&tld=com&domain=exampledomain.com&regperiod=1' --compressed</pre>
   <b>Example Response:</b><br />
   <pre>{"result":"success"}</pre>
   <br />
   <style type="text/css">.domain-head{background-color: #f5f5f5;} pre{word-break: break-all;display:block;word-wrap: break-word;max-width:600px;}</style>
Please rate this article to help us improve our Knowledge Base.

239 0