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
- domain
type: text
validators: required, text
- regperiod
type: numeric
validators: required, numeric
- domainfields
type: text
validators: text
- addons
type: addons
- nameservers
type: nameservers
validators: required
- contacts
type: contacts
validators: required
POST - /order/domains/transfer - Transfer Domain
- domain
type: text
validators: required, text
- eppcode
type: text
validators: text
- regperiod
type: numeric
validators: required, numeric
- domainfields
type: text
validators: text
- addons
type: addons
- nameservers
type: nameservers
validators: required
- contacts
type: contacts
validators: required
POST - /order/domains/renewre - Renew Domain
- domain
type: text
validators: required, text
- regperiod
type: numeric
validators: required, numeric
- addons
type: addons
GET - /domains/{domain}/release - Release Domain
- domain
type: text
validators: required, text
- transfertag
type: text
validators: required, text
GET - /domains/{domain}/eppcode - Get EPP Code
- domain
type: text
validators: required, text
GET - /domains/{domain}/contact - Get Contact Details
- domain
type: text
validators: required, text
POST - /domains/{domain}/contact - Save Contact Details
- domain
type: text
validators: required, text
- contactdetails
type: contactdetails
validators: required
GET - /domains/{domain}/contact - Get Registrar Lock
- domain
type: text
validators: required, text
POST - /domains/{domain}/contact - Save Registrar Lock
- domain
type: text
validators: required, text
- lockstatus
type: text
validators: required, text
GET - /domains/{domain}/dns - Get DNS
- domain
type: text
validators: required, text
POST - /domains/{domain}/dns - Save DNS
- domain
type: text
validators: required, text
- dnsrecords
type: dnsrecords
validators: required
POST - /domains/{domain}/delete - Request Deletion
- domain
type: text
validators: required, text
POST - /domains/{domain}/transfersync - Transfer Sync
- domain
type: text
validators: required, text
POST - /domains/{domain}/sync - Domain Sync
- domain
type: text
validators: required, text
GET - /domains/{domain}/email - Get Email Forwarding
- domain
type: text
validators: required, text