SetPlanSetting

Reseller Plan > API
API Name: SetPlanSetting

Description: This api will set hosting account plan settings.

Method: HTTP POST/GET

API URL: https://resellerapi.smarterasp.net/setPlanSetting

Parameters:


Parameter_Name     
Type
Length 
Description  
resellerid
string
9
This is your reseller account's customer id
resellerkey
guid
48 This is your reseller key
username string
8 to 20
This is the username of the hosting account.
settingtype
string
 
This is a list of type you can use.
bandwidth
webspace
sitenum
ftpnum
mssqlnum
mssqlspace
mysqlnum
mysqlspace
emailnum
emailspace
terms
task

quota int Remark:  Bandwidth are in 'GB', the rest of the setting types are in 'MB'

Return

This function will return 'successful' message OR error message.

{"result": {"status" : "true/false", "code" : "response_code", "message" : "response_message" , "data" : ""}}


Error Code


G1000="Invalid Reseller Account/Authentication Error"
G1001="Invalid Hosting Account/Account Doesn't Belong To This Reseller"
G2000= [this is a general invalid parameter message]
G2001= [this is for other general error message]

S1000="Setting Quota Error."  (Detailed error message is in the 'data' section of the return info.)