Invoke delete command on domain's related module (if supported)
GET http://url_to_your_hostbill.com/admin/api.php?token=:TOKEN&call=domainDelete&id=:ID
<?php include 'class.hbwrapper.php'; $hbw = HBWrapper::singleton(); $hbw->setAPIUrl('http://url_to_hb.com/admin/api.php'); if($hbw->logIn("adminlogin","password")) { $return = $hbw->domainDelete(array('id'=>:ID)); print_r($return); } ?>
<?php //Use this method to access HostBill api from HostBill modules $api = new ApiWrapper(); $return = $api->domainDelete(array('id'=>:ID)); print_r($return); ?>
{ "success": true, "call": "domainDelete", "server_time": 1476356231, "info": [ "Domain aaa.com deleted" ] }