live chat
24/7 Emergency Hotline USA

Account Price List Get

Resource path /Account/PriceList/Get

https://testapi.internet.bs/Account/PriceList/Get?ApiKey=testapi&Password=testpass

The command is intended to obtain our pricelist.
HTTPS POST/GET Request parameters:

Parameter name Description

ApiKey

The API key that we provided to you when you requested API access for your account

Password

The password we provided when you requested API access for your account

discountCode
(optional)

A discount code for which to get the prices. If the discount code does not exist or is not valid anymore the regular prices will be returned. By default it is empty.

Currency
(optional)

The prices currency. If not provided we will return prices in your default currency.

version
(optional)

The command version. Possible values are 1 and 2. Default value is 1 and it will return the price for the first year of registration, first year of renewal, etc. If set to 2 then command will return all current prices for all products.

ResponseFormat
(optional)

This specifies how the response will be returned. Possible values are TEXT, JSON and XML.
The default value is TEXT however we encourage you to use JSON for easier result parsing (please refer to http://www.json.org for more details about JSON).

Returned data:

STATUS=SUCCESS or FAILURE
TRANSACTID=Transaction ID reference
Currency=The price currency
Product=The product (ex: .com registration, .com renewal, .com transfer)
Price=The price in the Currency

Product, Price and Currency will appear multiple times: once for every product.

Example:

https://testapi.internet.bs/Account/PriceList/Get?ApiKey=testapi&Password=testpass&currency=cad

Result:

transactid=9f02bff265d0ee1fd50900dd2701f09b
status=SUCCESS
product_0_name=.in registration
product_0_price=4.91
product_0_currency=CAD
product_1_name=.ind.in renewal
product_1_price=14.80
product_1_currency=CAD
product_2_name=.ind.in registration
product_2_price=14.80
product_2_currency=CAD
product_3_name=.org.in transfer
product_3_price=14.80
product_3_currency=CAD
product_4_name=.fr trade
product_4_price=14.80
product_4_currency=CAD
product_5_name=.org.in renewal
product_5_price=14.80
product_5_currency=CAD
product_6_name=.org.in registration
product_6_price=14.80
product_6_currency=CAD
product_7_name=.net.in transfer
product_7_price=14.80
product_7_currency=CAD
product_8_name=.net.in renewal
product_8_price=14.80
product_8_currency=CAD
product_9_name=.net.in registration
product_9_price=14.80
product_9_currency=CAD
product_10_name=.co.in transfer
product_10_price=14.80
product_10_currency=CAD
...

Example (version=2):

https://testapi.internet.bs/Account/PriceList/Get?ApiKey=testapi&Password=testpass&currency=usd

Result:

transactid=cdbbd5cb4e1af14390e9592cbf79f099
status=SUCCESS
currency=USD
pricelevel=Diamond
product_0_type=.biz
product_0_operation=registration
product_0_period_4=7.43
product_0_period_5=7.50
product_0_period_6=7.54
product_0_period_7=7.57
product_0_period_8=7.59
product_0_period_9=7.61
product_0_period_10=7.62
product_1_type=.biz
product_1_operation=renewal
product_1_period_1=7.99
product_1_period_2=7.99
product_1_period_3=7.75
product_1_period_4=7.75
product_1_period_5=7.75
product_1_period_6=7.75
product_1_period_7=7.75
product_1_period_8=7.75
product_1_period_9=7.75
product_1_period_10=7.75
product_2_type=.biz
product_2_operation=transfer
product_2_period_1=8.99
product_3_type=.com
product_3_operation=registration
product_3_discount=75percent
product_3_period_3=5.43
product_3_period_4=6.01
product_3_period_5=6.36
product_3_period_6=6.59
product_3_period_7=6.75
product_3_period_8=6.88
product_3_period_9=6.98
product_3_period_10=7.05
...

Possible errors

CodeSample error message
108001Discount is not available!

Note: generic error codes and messages please see here.