UpdateHostPackagePricing


Definition

Use this command to change the selling price of Web hosting components, at different quantity levels.

Usage

Use this command to set your selling prices for Web hosting components, and to set the price breaks at increasing quantity levels.

This command allows you to set prices either for retail customers or for one subaccount.

Availability

All resellers have access to this command.

Implementation on eNom.com

Log on to resellertest.enom.com with Login ID resellid, password resellpw.

https://resellertest.enom.com/myaccount/hostingpricing.asp

Below the Set Component Unit Pricing table, the save changes button calls the UpdateHostPackagePricing command.

Constraints

The query must meet the following requirements:

  • The login ID and password must be valid.
  • The price breaks for this account’s customers must come into effect at the same quantity levels as this account’s wholesale price breaks. For example, if you receive a wholesale price break at 20 units, any retail price break you offer to your customers must be at 20 units; it cannot be at 15 or 25.

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
SubID Optional Login ID of subaccount for which you want to set wholesale prices. If omitted, this command sets retail prices. 20
PriceBreakCount Optional Number of price brackets in this response 2
QtyX
X=1 to PriceBreakCount
Recommended In the pricing structure for this account, the lower end of quantity range X for this component. For example, if Qty1=1 and Qty2=5, the prices in the Qty1=1 node apply to quantities of 1 to 4 of each Web hosting component listed in this query string. 2
StoragePriceX Optional Price of each Web storage unit in this quantity bracket, in DD.cc format. Each Web storage unit contains 1GB. 1000.00
BandwidthPriceX Optional Price of each bandwidth unit in this quantity bracket, in DD.cc format. Each bandwidth unit contains 20GB. 1000.00
POPPriceX Optional Price of each POP email unit in this quantity bracket, in DD.cc format. Each POP mail unit contains 10 email boxes. 1000.00
DatabasePriceX Optional Price of each SQL database unit in this quantity bracket, in DD.cc format. Each database unit contains 250MB. 1000.00
ResponseType Optional Format of response. Options are Text (default), HTML, or XML. 4

 

Returned parameters and values

Parameter Description
ResellerQtyX
(In HTML output, the output parameters for each package are numbered; X=1 to PackageCount)
In the wholesale pricing structure for this account, the lower end of the quantity range for this component. For example, if one ResellerQty=1 and the next largest is ResellerQty=5, the prices in the ResellerQty=1 node apply to quantities of 1 to 4 of each Web hosting component listed in this query string
RetailQtyX In the retail (selling price) structure for this account, the lower end of the quantity range for this component. For example, if one RetailQty=1 and the next largest is RetailQty=5, the prices in the RetailQty=1 node apply to quantities of 1 to 4 of each Web hosting component listed in this query string.
ResellerBandwidthPriceX Cost to this account (wholesale price) of bandwidth units in this quantity range. Each bandwidth unit contains 20GB.
RetailBandwidthPriceX Selling (retail) price of bandwidth units in this quantity range. Each bandwidth unit contains 20GB.
ResellerWebStoragePriceX Cost to this account (wholesale price) of Web storage units in this quantity range. Each Web hosting unit contains 1GB.
RetailWebStoragePriceX Selling (retail) price of Web storage units in this quantity range. Each Web hosting unit contains 1GB.
ResellerDBStoragePriceX Cost to this account (wholesale price) of SQL database storage units in this quantity range. Each SQL database unit contains 250MB.
RetailDBStoragePriceX Selling (retail) price of SQL database storage units in this quantity range. Each SQL database unit contains 250MB.
ResellerPOPMailPriceX Cost to this account (wholesale price) of POP email units to include in this quantity range. Each POP mail unit contains 10 email boxes.
RetailPOPMailPriceX Selling (retail) price of POP email units to include in this quantity range. Each POP mail unit contains 10 email boxes
PackageCount Number of quantity brackets listed in this response
Command Name of command executed
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

  • 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 parameterErr(ErrCount) can be presented to the client. Otherwise process the returned parameters as defined above.

Example