Getting the Customer Pricing

Getting the Customer Pricing

Description

Gets the generic Customer Pricing or a particular Customer's Cost Price if the Customer ID is provided.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key or auth-password String Required Authentication Parameter
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"
                }
        }