API integrate with billing program:
--- create,modify,delete,getinfo hosting plan
--- create,modify,delete,suspend,getinfo account
Plan:
------------------------
CREATE
------------------------
/var/panel/mm/plans/root|reseller_plan123
eg. /var/panel/mm/plans/root_plan123
/var/panel/mm/plans/reseller1_plan123
plan=root_plan123
disklimit=unlimited
bwlimit=unlimited
ftplimit=unlimited
emaillimit=unlimited
emailquota=unlimited
emailfwdlimit=unlimited
dbmysqllimit=unlimited
dbpgsqllimit=unlimited
subdomlimit=unlimited
parkedlimit=unlimited
addonlimit=unlimited
z_filemgr=yes
z_img=yes
z_dirprivacy=yes
z_diskusage=yes
z_webdisk=yes
z_ftp=yes
z_backup=yes
z_mysql=yes
z_sitepub=yes
z_domlist=yes
z_addondom=yes
z_subdom=yes
z_parkdom=yes
z_redirects=yes
z_rewrite=yes
z_dns=yes
z_emailacct=yes
z_emailfwd=yes
z_emaildefault=yes
z_webmail=yes
z_visitorlog=yes
z_errorlog=yes
z_bwlog=yes
z_rawacclog=yes
z_trafficstats=yes
z_ipblock=yes
z_ssltls=yes
z_shell=yes
z_hotlinkpro=yes
z_multiphp=yes
z_fcgi=yes
z_cronjob=yes
z_indexes=yes
z_pwsec=yes
------------------------
MODIFY
------------------------
Modify:
/var/panel/mm/plans/user_plan123
------------------------
DELETE
------------------------
delete :
/var/panel/mm/plans/user_plan123
Account:
------------------------
CREATE
------------------------
1608434399.3055.txt
mydomain=account123.com
username=account123
password=12345678
adminemail=o@ooeeeoo.com
acctype=main
owner=account123
plan=custom
diskspace=unlimited
bandwidth=unlimited
ftp=unlimited
email=unlimited
emailspace=unlimited
emailfwd=unlimited
dbmysql=unlimited
dbpgsql=unlimited
subdom=unlimited
parked=unlimited
addon=unlimited
dedip=0
shellaccess=0
webstat=0
php=php56
cgi=0
ssl=1
backup=1
webdav=1
freessl=1
reselleropt=0
z_value.txt
z_filemgr=yes
z_img=yes
z_dirprivacy=yes
z_diskusage=yes
z_webdisk=yes
z_ftp=yes
z_backup=yes
z_mysql=yes
z_sitepub=yes
z_domlist=yes
z_addondom=yes
z_subdom=yes
z_parkdom=yes
z_redirects=yes
z_rewrite=yes
z_dns=yes
z_emailacct=yes
z_emailfwd=yes
z_emaildefault=yes
z_webmail=yes
z_visitorlog=yes
z_errorlog=yes
z_bwlog=yes
z_rawacclog=yes
z_trafficstats=yes
z_ipblock=yes
z_ssltls=yes
z_shell=yes
z_hotlinkpro=yes
z_multiphp=yes
z_cronjob=yes
z_indexes=yes
z_pwsec=yes
/var/runc/mm newacct "1608434399.3055.txt"
------------------------
MODIFY
------------------------
File to modify: /var/panel/domains/domain.com
/var/runc/http http_awstats "domain.com"
/var/runc/http http_awstatsremove "domain.com"
/var/runc/http http_fcgienable "domain.com"
/var/runc/http http_fcgidisable "domain.com"
/var/runc/sys sys_enable_sftponly "username"
/var/runc/sys sys_disable_sftponly "username"
------------------------
SUSPEND
------------------------
/var/runc/mm acctsuspend_unsp "acct_username" "off"
------------------------
DELETE
------------------------
/var/runc/mm acctdelete "account123.com"