CancelHostAccount


Definition

Enable or disable a Web hosting account, or mark a Web hosting account for deletion at the end of the current billing cycle.

Usage

Use this command to enable a Web hosting account, unless it has been disabled by our system for nonpayment or overages. In those circumstances, the Web hosting account must be enabled by a customer service representative.

Use this command to disable a Web hosting account.

Use this command to flag a Web hosting account for deletion at the end of the billing cycle.

Use this command to remove a deletion flag on a Web hosting account.

Availability

All resellers have access to this command.

Implementation on eNom.com

This command is not implemented on enom.com.

Constraints

The query must meet the following requirements:

  • The login ID and password must be valid.
  • The Web hosting account must belong to this domain name account.
  • This command cannot be used to enable an account that has been disabled by our system for nonpayment or overages. In those circumstances, the Web hosting account must be enabled by a customer service representative.

Input parameters

Build the query string using this syntax:

https://resellertest.enom.com/interface.asp?
command=nameofcommand&uid=yourloginid&pw=yourpassword
&paramname=paramvalue&nextparamname=nextparamvalue

 

Parameter Status Description Max Size
UID Required Account login ID 20
PW Required Account password 20
HostAccount Required Name of Web hosting account 14
Enable Optional; default is 1 Enabled status of this Web hosting account. Set to 0 or false to disable the Web hosting account. Anything else enables the account unless it has been disabled by our system for nonpayment or overages. If disabled by our system, the Web hosting account can only be enabled by a customer service representative. 5
Delete Optional; default is 0 Deletion flag for this Web hosting account. Set to 1 or true to flag the Web hosting account for deletion at the end of the billing cycle. Anything else leaves it as an active account or removes any deletion flag. 5
TotalCancel Optional; default is 0 Cancel this Web hosting account? Set to 1 to delete at the end of the billing cycle. 5
DropdownReason Required Reason for cancelling this Web hosting account. Permitted values are: 1 No longer needed 2 Not as expected 3 Price/value 4 Technical issue 5 Support issue 6 Unsupported functionality 7 Other reason not listed 1
FreeformReason Required Detailed explanation for cancelling this Web hosting account. Most commonly, this would be user-generated text. 200
ResponseType Optional Format of response. Options are Text (default), HTML, or XML. 4

 

Returned parameters and values

Parameter Description
Command Name of command executed
Language Language flag for error messages
ErrCount The number of errors if any occurred. If greater than 0 check the Err(1 to ErrCount) values.
Err(x) Error messages explaining the failure. These can be presented as is back to the client.
Done True indicates this entire response has reached you successfully.

 

Notes

  • If a Web hosting account has been disabled, then the GetHostAccount commands and other commands will return an error: Host account has been disabled. Please contact customer service.
  • The default response format is plain text. To receive the response in HTML or XML format, send ResponseType=HTML or ResponseType=XML in your request.
  • Check the return parameter ErrCount. If greater than 0 the transaction failed. The parameter Err(ErrCount) can be presented to the client. Otherwise process the returned parameters as defined above.

Example