Knowledge Base
Categories: Billing & Transactions API
How to Fetch Customer Pricing Using the Products Pricing API
When your system or integration needs to retrieve customer-specific product pricing automatically. This article explains how to fetch customer pricing using the Products Pricing API.
Description
Gets the generic Customer Pricing or a particular Customer's Cost Price if the Customer ID is provided.
NOTE It is recommended you cache all pricing information to ensure you do not have to send API queries to the platform. As there are a huge number of products, the accompanying data may cause a longer wait time than usual.
Parameters
|
Name
|
Data Type
|
Required / Optional
|
Description
|
|---|---|---|---|
|
auth-userid
|
Integer
|
Required
| Your Live Account Reseller Id |
|
api-key
|
String
|
Required
| An alphanumeric code that can be used to authenticate your API calls |
|
customer-id
|
Integer
|
Optional
|
Customer ID of the Customer whose Cost Price has to be retrieved. By default, generic Customer Pricing will be retrieved.
|
HTTP Method
GET
Example Test URL Request
https://test.httpapi.com/api/products/customer-price.json?auth-userid=0&api-key=key
Response
Returns a hash map with the generic Customer Pricing or the specified Customer's Cost Price. The response structure will be:
Domain Names (TLDs) "productkey": { "action-name": { "tenure-in-years":"price" } }
Example:
"dotnet": { "addtransferdomain": { "1":"0.0" }, "restoredomain": { "1":"0.0" }, "addnewdomain": { "1":"0.0" }, "renewdomain": { "1":"0.0" } }
Web Services "hosting": { "planid": { "action": { "tenure-in-months":price }, "ssl":0.0 } }
Single Domain Linux Hosting "productkey": { "planid": { "action": { "tenure-in-months":price }, "ssl":price } }
Single Domain Windows Hosting "productkey": { "planid": { "action": { "tenure-in-months":price }, "ssl":price } }
Multi Domain Linux Hosting "productkey": { "planid": { "action": { "tenure-in-months":price }, "ssl":price } }
Example:
"hosting": { "0": { "renew": { "12":0.0, "24":0.0 }, "ssl":0.0, "add": { "12":0.0, "24":0.0 } }, "1": { "renew": { "12":0.0, "24":0.0 }, "add": { "12":0.0, "24":0.0 } } }
Single Domain Linux Hosting "productkey": { "planid": { "action": { "tenure-in-months":price }, "ssl":price } }
Example:
US Server "singledomainhostinglinuxus": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
UK Server "singledomainhostinglinuxuk": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
India Server "singledomainhostinglinuxin": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
Hong Kong Server "singledomainhostinglinuxhk": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
Single Domain Windows Hosting "productkey": { "planid": { "action": { "tenure-in-months":price }, "ssl":price } }
Example:
US Server "singledomainhostingwindowsus": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
UK Server "singledomainhostingwindowsuk": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
India Server "singledomainhostingwindowsin": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
Hong Kong Server "singledomainhostingwindowshk": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
Multi Domain Linux Hosting "productkey": { "planid": { "action": { "tenure-in-months":price }, "ssl":price } }
Example:
US Server "multidomainhosting": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
UK Server "multidomainhostinglinuxuk": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
India Server "multidomainhostinglinuxin": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
Hong Kong Server "multidomainhostinglinuxhk": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
Multi Domain Windows Hosting "productkey": { "planid": { "action": { "tenure-in-months":price }, "ssl":price } }
Example:
US Server "multidomainwindowshosting": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
UK Server "multidomainwindowshostinguk": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
India Server "multidomainwindowshostingin": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
Hong Kong Server "multidomainwindowshostinghk": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
Reseller Linux Hosting "productkey": { "planid": { "action": { "tenure-in-months":price }, "ssl":price } }
Example:
US Server "resellerhosting": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
UK Server "resellerhostinglinuxuk": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
India Server "resellerhostinglinuxin": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
Reseller Windows Hosting "productkey": { "planid": { "action": { "tenure-in-months":price }, "ssl":price } }
Example:
US Server "resellerwindowshosting": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
UK Server "resellerwindowshostinguk": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
India Server "resellerwindowshostingin": { "1": { "renew": { "3":0.0, "12":0.0 }, "ssl":0.0, "add": { "3":0.0, "12":0.0 } }, "2": { "renew": { "3":0.0, "12":0.0 }, "add": { "3":0.0, "12":0.0 } } }
Dedicated Server Linux "productkey": { "addons": { "addon1-name":price, "addon2-name":price }, "plans": { "planid": { "action": { "tenure-in-months":price }, } } }
Example: "dedicatedserverlinuxus": { "addons": { "storage_1":0.0, "cpanel":0.0, "whmcs":0.0, "ipaddress":0.0, "storage_5":0.0, "storage_4":0.0, "storage_3":0.0, "storage_2":0.0 }, "plans": { "105": { "renew": { "1":0.0 }, "add": { "1":0.0 } }, "106": { "renew": { "1":0.0 }, "add": { "1":0.0 } } } }
Did you find this article helpful?