reseller

is added when reseller has a customer specific business

Executing an Order Without Payment

Description

Executes the pending actions against the specified Invoice Ids. You can also specify whether the Invoices need to be cancelled or kept pending.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
invoice-ids Array Of Integer Required Invoice Ids whose associated pending actions are to be executed
cancel-invoice Boolean Required

Indicates whether the Invoice needs to be cancelled or kept pending. Values can either be:

  • true - will cancel the Invoice and execute the action (to be used in cases where payment has been received through offline methods), or

  • false - will keep the Invoice pending and execute the action (for settlement upon receipt of payment at a later stage).

HTTP Method

POST

Example Test URL Request

https://test.httpapi.com/api/billing/execute-order-without-payment.xml?auth-userid=0&api-key=key&invoice-ids=0&invoice-ids=1&cancel-invoice=true

Response

Returns a hash map of executed actions containing the below details:

  • Invoice Id (invoiceid)

  • Order Id associated with the Invoice (51821176)

  • Customer Id associated with the Invoice (customerid)

  • Action Id of the Action associated with the Invoice (eaqid)

  • Action Type of the Action associated with the Invoice (actiontype)

  • Description of the Action associated with the Invoice (actiontypedesc)

  • Domain Name (description)

  • Status of the Action associated with the Invoice (actionstatus)

  • Description of the Action Status (actionstatusdesc)

  • Selling Currency Symbol of the Parent Reseller (sellingcurrencysymbol)

  • Transaction Amount in the Selling Currency (sellingamount)

  • Unutilised Transaction Amount in the Selling Currency (unutilisedsellingamount)

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.

Getting a Customer's Available Balance

Description

Gets the Available Balance of the specified Customer.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
customer-id Integer Required Customer Id of the Customer whose Available Balance is to be fetched

HTTP Method

GET

Example Test URL Request

https://test.httpapi.com/api/billing/customer-balance.json?auth-userid=0&api-key=key&customer-id=0

Response

Returns a hash map of the Customer's Available Balance containing the below details:

  • Selling Currency Symbol of the Parent Reseller (currencysymbol)

  • Available Balance Amount in the Selling Currency (sellingcurrencybalance)

  • Locked Amount in the Selling Currency (sellingcurrencylockedbalance)

  • Total Balance Amount in the Selling Currency (totalsellingbalance)

  • Available Balance Amount in the Accounting Currency (accountingcurrencybalance)

  • Locked Amount in the Accounting Currency (accountingcurrencylockedbalance)

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.

Paying Customer Transactions

Description

Allows to pay Customer's Invoices and / or Debit Notes specified. Atleast one of the parameters (Invoice Id or Debit Note Id) needs to be provided. The Invoices and Debit Notes would be settled only if the Customer has sufficient funds.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
invoice-ids Array Of Integer Required Invoice Ids that are to be settled
debit-ids Array Of Integer Required Debit Note Ids that are to be settled

HTTP Method

POST

Example Test URL Request

https://test.httpapi.com/api/billing/customer-pay.xml?auth-userid=0&api-key=key&invoice-ids=0&invoice-ids=1&debit-ids=0&debit-ids=1

Response

Returns a hash map of the specified Transactions (Invoices and / or Debit Notes) containing the below details:

  • Invoice Id (invoiceid)

  • Action Type (actiontype)

  • Description of the Action (actiontypedesc)

  • Action Id of the Action (eaqid)

  • Customer Id associated with the Transaction (customerid)

  • Action Status (actionstatus)

  • Description of the Action Status (actionstatusdesc)

  • Selling Currency Symbol of the Parent Reseller (sellingcurrencysymbol)

  • Transaction Amount in the Selling Currency (sellingamount)

  • Unutilised Transaction Amount in the Selling Currency (unutilisedsellingamount)

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.

Getting Greedy Transactions of a Customer

Description

Gets the specified Customer's Greedy Transactions along with their details.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
customer-id Integer Required Customer Id of the Customer whose Greedy Transactions are to be fetched

HTTP Method

GET

Example Test URL Request

https://test.httpapi.com/api/billing/customer-greedy-transactions.xml?auth-userid=0&api-key=key&customer-id=0

Response

Returns a hash map of the Customer's Transactions containing the below details:

  • Transaction Id (customer_transaction.transid)

  • Transaction Date (customer_transaction.transactiondate)

  • Transaction Type (customer_transaction.type)

  • Transaction Description (customer_transaction.description)

  • Whether Transaction is Greedy (greedy)

  • Customer Id Associated with the Transaction (customer_transaction.customerid)

  • Selling Currency Symbol of the Parent Reseller (customer_transaction.sellingcurrencysymbol)

  • Transaction Amount in the Selling Currency (customer_transaction.sellingamount)

  • Unutilised Transaction Amount in the Selling Currency (customer_transaction.unutilisedsellingamount)

  • Accounting Currency Symbol of the Parent Reseller (customer_transaction.accountingcurrencysymbol)

  • Transaction Amount in the Accounting Currency (customer_transaction.accountingamount)

  • Unutilised Transaction Amount in the Accounting Currency (customer_transaction.unutilisedaccountingamount)

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.

Getting Transaction Details of a Customer

Description

Gets a Customer's Transactions along with their details.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
transaction-ids Array of Integer Required Transaction Ids of the Transactions whose details are to be fetched

HTTP Method

GET

Example Test URL Request

https://test.httpapi.com/api/billing/customer-transactions.json?auth-userid=0&api-key=key&transaction-ids=0&transaction-ids=1

Response

Returns a hash map of the Customer's Transactions containing the below details:

  • Transaction Id (transid)

  • Order Id (orderid)

  • Transaction Key (transactionkey)

  • Transaction Date (transactiondate)

  • Transaction Type (type)

  • Transaction Description (description)

  • Product Key (key)

  • Transaction Settlement Date (timestamp)

  • Whether Total Receipts is updated due to the Transaction (totalreceiptupdated)

  • Transaction Cancellation Date - Applicable to Invoices (invoicecancellationdate)

  • Payment Reminder Days (paymentreminderdays)

  • Last Reminder Sent Date (lastreminder)

  • Whether Transaction is Greedy (greedy)

  • Whether the Transaction Description can be modified (isDescriptionModifiable)

  • Customer Id Associated with the Transaction (customerid)

  • Reseller Chain by RID (parentkey)

  • Customer Details (customer_name, customer_company, customer_address1, customer_city, customer_state, customer_country, customer_zip, customer_telnocc, customer_telno)

  • Reseller Id of the Customer's Parent Reseller (resellerid)

  • Parent Reseller Details (reseller_name,reseller_company, brandname, reseller_address1, reseller_city, reseller_state, reseller_country, reseller_zip, reseller_telnocc, reseller_telno)

  • Selling Currency Symbol of the Parent Reseller (sellingcurrencysymbol)

  • Transaction Amount in the Selling Currency (sellingamount)

  • Applicable Tax Amount in the Selling Currency (sellingtaxamount)

  • Transaction Amount without Tax in the Selling Currency (sellingamountwithouttax)

  • Unutilised Transaction Amount in the Selling Currency (unutilisedsellingamount)

  • Accounting Currency Symbol of the Parent Reseller (accountingcurrencysymbol)

  • Transaction Amount in the Accounting Currency (accountingamount)

  • Applicable Tax Amount in the Accounting Currency (accountingtaxamount)

  • Transaction Amount without Tax in the Accounting Currency (accountingamountwithouttax)

  • Unutilised Transaction Amount in the Accounting Currency (unutilisedaccountingamount)

  • Applicable Tax Rule Id (taxruleid)

  • Foreign Exchange Difference (forexdiff)

  • Whether Transaction Notification is to be sent to the Customer (sendcustomernotification)

  • Whether Transaction Notification is to be sent to the Parent Reseller (sendresellernotification)

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.

Getting the Reseller Pricing

Description

Gets the Reseller Slab Pricing.

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 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 Slab Pricing has to be retrieved. By default, Pricing of the current user will be retrieved.

HTTP Method

GET

Example Test URL Request

https://test.httpapi.com/api/products/reseller-price.json?auth-userid=0&api-key=key

Response

Returns a hash map with the Slab based Selling Price for the specified Reseller or the Reseller whose authorization details are used. The response structure will be:

Domain Names (TLDs)

"productkey":
{
"slab-order":
{
"pricing":
{
"action-name":
{
"tenure-in-years":"price"
}
}
"category":
{
"slab-category":
{
"name":"category-name",
"quantity":"category-quantity"
}
}
}
}

Example:


"domcno":
{
"0":
{
"pricing":
{
"addtransferdomain":
{
"1":"0.0"
},
"restoredomain":
{
"1":"0.0"
},
"addnewdomain":
{
"1":"0.0"
},
"renewdomain":
{
"1":"0.0"
}
},
"category":
{
"category2":
{
"name":"receipts",
"quantity":"0.0"
},
"category1":
{
"name":"hosting",
"quantity":"0.0"
}
}
}
}

Web Services


"hosting":
{
"productkey":
{
"bandid":
{
"pricing":
{
"action":0.0,
"ssl":0.0
}
"description":
{
"parameter":value
}
}
}
}

Example:


"hosting":
{
"email_plan":
{
"1":
{
"pricing":
{
"renew":0.0,
"add":0.0
},
"description":
{
"no_of_mail_accounts":5,
"default":false
}
}
},
"websitebuilder_plan":
{
"1":
{
"pricing":
{
"renew":0.0,
"add":0.0
},
"description":
{
"no_of_mail_accounts":1,
"default":true,
"webspace":100,
"noofpages":10
}
}
}
}

Single Domain Linux Hosting


"productkey":
{
"bandid":
{
"pricing":
{
"action":0.0,
"ssl":0.0
}
"description":
{
"parameter":value
}
}
}

Example:

US Server


"singledomainhostinglinuxus":
{
"1":
{
"pricing":
{
"renew":0.0,
"ssl":0.0,
"add":0.0
}
"description":
{
"no_of_mail_accounts":-1,
"default":true,
"bandwidth":-1,
"webspace":-1
}
}
}

UK Server


"singledomainhostinglinuxuk":
{
"1":
{
"pricing":
{
"renew":0.0,
"ssl":0.0,
"add":0.0
}
"description":
{
"no_of_mail_accounts":-1,
"default":true,
"bandwidth":-1,
"webspace":-1
}
}
}

India Server


"singledomainhostinglinuxin":
{
"1":
{
"pricing":
{
"renew":0.0,
"ssl":0.0,
"add":0.0
}
"description":
{
"no_of_mail_accounts":-1,
"default":true,
"bandwidth":-1,
"webspace":-1
}
}
}

Hong Kong Server


"singledomainhostinglinuxhk":
{
"1":
{
"pricing":
{
"renew":0.0,
"ssl":0.0,
"add":0.0
}
"description":
{
"no_of_mail_accounts":-1,
"default":true,
"bandwidth":-1,
"webspace":-1
}
}
}

Turkey Server


"singledomainhostinglinuxtr":
{
"1":
{
"pricing":
{
"renew":0.0,
"ssl":0.0,
"add":0.0
}
"description":
{
"no_of_mail_accounts":-1,
"default":true,
"bandwidth":-1,
"webspace":-1
}
}
}

Single Domain Windows Hosting


"productkey":
{
"bandid":
{
"pricing":
{
"action":0.0,
"ssl":0.0
}
"description":
{
"parameter":value
}
}
}

Example:

US Server


"singledomainhostingwindowsus":
{
"1":
{
"pricing":
{
"renew":0.0,
"ssl":0.0,
"add":0.0
}
"description":
{
"no_of_mail_accounts":-1,
"default":true,
"bandwidth":-1,
"webspace":-1
}
}
}

UK Server


"singledomainhostingwindowsuk":
{
"1":
{
"pricing":
{
"renew":0.0,
"ssl":0.0,
"add":0.0
}
"description":
{
"no_of_mail_accounts":-1,
"default":true,
"bandwidth":-1,
"webspace":-1
}
}
}

India Server


"singledomainhostingwindowsin":
{
"1":
{
"pricing":
{
"renew":0.0,
"ssl":0.0,
"add":0.0
}
"description":
{
"no_of_mail_accounts":-1,
"default":true,
"bandwidth":-1,
"webspace":-1
}
}
}

Hong Kong Server


"singledomainhostingwindowshk":
{
"1":
{
"pricing":
{
"renew":0.0,
"ssl":0.0,
"add":0.0
}
"description":
{
"no_of_mail_accounts":-1,
"default":true,
"bandwidth":-1,
"webspace":-1
}
}
}

Turkey Server


"singledomainhostingwindowstr":
{
"1":
{
"pricing":
{
"renew":0.0,
"ssl":0.0,
"add":0.0
}
"description":
{
"no_of_mail_accounts":-1,
"default":true,
"bandwidth":-1,
"webspace":-1
}
}
}

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
}
}
}

Turkey Server


"multidomainhostinglinuxtr":
{
"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
}
}
}

Turkey Server


"multidomainwindowshostingtr":
{
"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
}
}
}

Turkey Server


"resellerhostinglinuxtr":
{
"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
}
}
}

Turkey Server


"resellerwindowshostingtr":
{
"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
}
}
}

VPS Linux


"productkey":
{
"addons":
{
"addon1-name":price,
"addon2-name":price
},
"plans":
{
"planid":
{
"action":
{
"tenure-in-months":price
},
}
}
}

Example:


"vpslinuxus":
{
"addons":
{
"ssl":0.0,
"cpanel":0.0,
"whmcs":0.0
},
"plans":
{
"1":
{
"renew":
{
"1":0.0
},
"add":
{
"1":00.0
}
},
"2":
{
"renew":
{
"1":0.0
},
"add":
{
"1":0.0
}
}
}
}

Dedicated 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
}
}
}
}

Enterprise Email


"productkey":
{
"email_account_ranges":
{
"plan_specifications":
{
"action":
{
"tenure-in-months":price
}
}
}
}

Example:

US Server


"enterpriseemailus":
{
"email_account_ranges":
{
"1-5":
{
"renew":
{
"3":100.0,
"12":100.0
},
"add":
{
"3":100.0,
"12":100.0
}
},
"6-25":
{
"renew":
{
"3":100.0,
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
},
"26-49":
{
"renew":
{
"3":100.0
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
},
"50-200000":
{
"renew":
{
"3":100.0
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
}
}
}

India Server


"enterpriseemailin":
{
"email_account_ranges":
{
"1-5":
{
"renew":
{
"3":100.0
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
},
"6-25":
{
"renew":
{
"3":100.0
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
},
"26-49":
{
"renew":
{
"3":100.0
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
},
"50-200000":
{
"renew":
{
"3":100.0
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
}
}
}

Digital Certificates


"productkey":
{
"slab-order":
{
"pricing":
{
"certtype":
{
"action":
{
"tenure-in-years":"price"
}
}
}
"category":
{
"slab-category":
{
"name":"category-name",
"quantity":"category-quantity"
}
}
}
}

Example:


"thawtecert":
{
"0":
{
"pricing":
{
"ssl":
{
"renew":
{
"2":"200.0",
"1":"100.0"
},
"add":
{
"2":"200.0",
"1":"100.0"
},
"additionallicense":
{
"2":"100.0",
"1":"100.0"
}
}
"fssl":
{
"renew":
{
"2":"200.0",
"1":"100.0"
},
"add":
{
"2":"200.0",
"1":"100.0"
},
"additionallicense":
{
"2":"100.0",
"1":"100.0"
}
}
"wild":
{
"renew":
{
"2":"200.0",
"1":"100.0"
},
"add":
{
"2":"200.0",
"1":"100.0"
},
"additionallicense":
{
"2":"100.0",
"1":"100.0"
}
}
"sgc":
{
"renew":
{
"2":"200.0",
"1":"100.0"
},
"add":
{
"2":"200.0",
"1":"100.0"
},
"additionallicense":
{
"2":"100.0",
"1":"100.0"
}
}
}
"category":
{
"category2":
{
"name":"receipts",
"quantity":"0.0"
},
"category1":
{
"name":"hosting",
"quantity":"0.0"
}
}
}
}

Getting the Customer Pricing

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 longer wait time than usual.

Parameters

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

Web Services


"hosting":
{
"planid":
{
"action":
{
"tenure-in-months":price
},
"ssl":0.0
}
}

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
}
}
}

Turkey Server


"singledomainhostinglinuxtr":
{
"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
}
}
}

Turkey Server


"singledomainhostingwindowstr":
{
"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
}
}
}

Turkey Server


"multidomainhostinglinuxtr":
{
"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
}
}
}

Turkey Server


"multidomainwindowshostingtr":
{
"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
}
}
}

Turkey Server


"resellerhostinglinuxtr":
{
"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
}
}
}

Turkey Server


"resellerwindowshostingtr":
{
"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
}
}
}

VPS Linux


"productkey":
{
"addons":
{
"addon1-name":price,
"addon2-name":price
},
"plans":
{
"planid":
{
"action":
{
"tenure-in-months":price
},
}
}
}

Example:


"vpslinuxus":
{
"addons":
{
"ssl":0.0,
"cpanel":0.0,
"whmcs":0.0
},
"plans":
{
"1":
{
"renew":
{
"1":0.0
},
"add":
{
"1":0.0
}
},
"2":
{
"renew":
{
"1":0.0
},
"add":
{
"1":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
}
}
}
}

Enterprise Email


"productkey":
{
"email_account_ranges":
{
"plan_specifications":
{
"action":
{
"tenure-in-months":price
}
}
}
}

Example:

US Server


"enterpriseemailus":
{
"email_account_ranges":
{
"1-5":
{
"renew":
{
"3":100.0,
"12":100.0
},
"add":
{
"3":100.0,
"12":100.0
}
},
"6-25":
{
"renew":
{
"3":100.0,
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
},
"26-49":
{
"renew":
{
"3":100.0
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
},
"50-200000":
{
"renew":
{
"3":100.0
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
}
}
}

India Server


"enterpriseemailin":
{
"email_account_ranges":
{
"1-5":
{
"renew":
{
"3":100.0
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
},
"6-25":
{
"renew":
{
"3":100.0
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
},
"26-49":
{
"renew":
{
"3":100.0
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
},
"50-200000":
{
"renew":
{
"3":100.0
"12":100.0
},
"add":
{
"3":100.0
"12":100.0
}
}
}
}

Digital Certificates


"productkey":
{
"slab-order":
{
"pricing":
{
"certtype":
{
"action":
{
"tenure-in-years":"price"
}
}
}
"category":
{
"slab-category":
{
"name":"category-name",
"quantity":"category-quantity"
}
}
}
}

Example:


"thawtecert":
{
"0":
{
"pricing":
{
"ssl":
{
"renew":
{
"2":"200.0",
"1":"100.0"
},
"add":
{
"2":"200.0",
"1":"100.0"
},
"additionallicense":
{
"2":"100.0",
"1":"100.0"
}
}
"fssl":
{
"renew":
{
"2":"200.0",
"1":"100.0"
},
"add":
{
"2":"200.0",
"1":"100.0"
},
"additionallicense":
{
"2":"100.0",
"1":"100.0"
}
}
"wild":
{
"renew":
{
"2":"200.0",
"1":"100.0"
},
"add":
{
"2":"200.0",
"1":"100.0"
},
"additionallicense":
{
"2":"100.0",
"1":"100.0"
}
}
"sgc":
{
"renew":
{
"2":"200.0",
"1":"100.0"
},
"add":
{
"2":"200.0",
"1":"100.0"
},
"additionallicense":
{
"2":"100.0",
"1":"100.0"
}
}
}
"category":
{
"category2":
{
"name":"receipts",
"quantity":"0.0"
},
"category1":
{
"name":"hosting",
"quantity":"0.0"
}
}
}
}

Get ProductCategory-ProductKeys Mapping

Description

Gets the mapping of product category to product keys.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter

HTTP Method

GET

Example Test URL Request


https://test.httpapi.com/api/products/category-keys-mapping.json?auth-userid=0&api-key=key

Response

Returns a map with appropriate category-keys mapping.