INFORMATION

Endpoint
https://woza.io/dash/modules/addons/DomainsReseller/api/index.php
Authorization
  • UsernameThis is an email address of the reseller's client registered in your WHMCS.
  • Token

    Token is an API Key transformed into SHA256 hash using the reseller's email address and the current time encoded with base64.

    base64_encode(hash_hmac("sha256", "<api-key>", "<email>:<gmdate("y-m-d H")>)"))
Example
$endpoint   = "https://woza.io/dash/modules/addons/DomainsReseller/api/index.php";
$action     = "/order/domains/renew";
$params     = [
    "domain"    => "example.com",
    "regperiod" => "3",
    "addons"    => [
        "dnsmanagement"     => 0,
        "emailforwarding"   => 1,
        "idprotection"      => 1,
    ]
];
$headers = [
    "username: [email protected]",
    "token: ". base64_encode(hash_hmac("sha256", "1234567890QWERTYUIOPASDFGHJKLZXCVBNM", "[email protected]:".gmdate("y-m-d H")))
];

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, "{$endpoint}{$action}");
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($params));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($curl);
curl_close($curl);
 
 
 
 
 
 
 
CAK

 

 

CALLS

POST - /order/domains/register - Register Domain
  • domaintype: text validators: required, text
  • regperiodtype: numeric validators: required, numeric
  • domainfieldstype: text validators: text
  • addonstype: addons 
  • nameserverstype: nameservers validators: required
  • contactstype: contacts validators: required
POST - /order/domains/transfer - Transfer Domain
  • domaintype: text validators: required, text
  • eppcodetype: text validators: text
  • regperiodtype: numeric validators: required, numeric
  • domainfieldstype: text validators: text
  • addonstype: addons 
  • nameserverstype: nameservers validators: required
  • contactstype: contacts validators: required
POST - /order/domains/renewre - Renew Domain
  • domaintype: text validators: required, text
  • regperiodtype: numeric validators: required, numeric
  • addonstype: addons 
GET - /domains/{domain}/release - Release Domain
  • domaintype: text validators: required, text
  • transfertagtype: text validators: required, text
GET - /domains/{domain}/eppcode - Get EPP Code
  • domaintype: text validators: required, text
GET - /domains/{domain}/contact - Get Contact Details
  • domaintype: text validators: required, text
POST - /domains/{domain}/contact - Save Contact Details
  • domaintype: text validators: required, text
  • contactdetailstype: contactdetails validators: required
GET - /domains/{domain}/contact - Get Registrar Lock
  • domaintype: text validators: required, text
POST - /domains/{domain}/contact - Save Registrar Lock
  • domaintype: text validators: required, text
  • lockstatustype: text validators: required, text
GET - /domains/{domain}/dns - Get DNS
  • domaintype: text validators: required, text
POST - /domains/{domain}/dns - Save DNS
  • domaintype: text validators: required, text
  • dnsrecordstype: dnsrecords validators: required
POST - /domains/{domain}/delete - Request Deletion
  • domaintype: text validators: required, text
POST - /domains/{domain}/transfersync - Transfer Sync
  • domaintype: text validators: required, text
POST - /domains/{domain}/sync - Domain Sync
  • domaintype: text validators: required, text
GET - /domains/{domain}/email - Get Email Forwarding
  • domaintype: text validators: required, text
Was this answer helpful? 0 Users Found This Useful (1 Votes)