Description
Gets the Reseller's Cost Price.
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 longer wait time than usual.
Parameters
| Name | Data Type | Required / Optional | Description |
|---|---|---|---|
| auth-userid | Integer | Required | Authentication Parameter |
| api-key | String | Required | Authentication Parameter |
| reseller-id | Integer | Optional | Reseller ID of the Reseller whose Cost Price has to be retrieved. By default, Cost Price of the current user will be retrieved. |
HTTP Method
GET
Example Test URL Request
https://test.httpapi.com/api/products/reseller-cost-price.json?auth-userid=0&api-key=key
Response
Returns a hash map with the Cost Price for the specified Reseller or the Reseller whose authorization details are used. The response structure will be:
Domain Names (TLDs)
"productkey":
{
"action-name":
{
"tenure-in-years":"price"
}
}
Example:
domcno":
{
"addtransferdomain":
{
"1":"0.0"
},
"restoredomain":
{
"1":"0.0"
},
"addnewdomain":
{
"1":"0.0"
},
"renewdomain":
{
"1":"0.0"
}
}
