Get the Modify or Upgrade Price for a Multi Domain Windows Hosting Order Using the API
Summary
When you want to check the price for modifying or upgrading a Multi Domain Windows Hosting order using the API. This article explains the required order and plan inputs and how the applicable price is returned.
Description
Gets the applicable modify or upgrade price for a particular Multi Domain Windows Hosting order.
Parameters
| Name | Data Type | Required / Optional | Description |
|---|---|---|---|
auth-userid | Integer | Required | Your Live Account Reseller ID used to authenticate the API request. |
api-key | String | Required | Your API key used to authenticate the API request. |
order-id | Integer | Required | The Order ID for which the modify or upgrade price is to be fetched. |
new-plan-id | Integer | Required | The new plan to which the order is to be upgraded or downgraded. You can retrieve the available plan IDs using the Plan Details API described below. |
months | Integer | Required | The number of months in the new plan for which the order is to be placed. |
Get the New Plan ID
Use the Plan Details API to retrieve the available Multi Domain Windows Hosting plan IDs.
HTTP Method
GET
Example Test URL Request
https://test.httpapi.com/api/products/plan-details.json?auth-userid=0&api-key=key
The Multi Domain Windows Hosting plans are returned under the relevant product key.
US, Texas Server
multidomainhostingwindows
India Server
multidomainwindowshostingin
Use the required plan ID returned in the response as the new-plan-id.
Get the Modify or Upgrade Price
HTTP Method
GET
Example Test URL Request
US, Texas Server
https://test.httpapi.com/api/multidomainhosting/windows/us/modify-pricing.json?auth-userid=0&api-key=key&order-id=0&new-plan-id=0&months=0
India Server
https://test.httpapi.com/api/multidomainhosting/windows/in/modify-pricing.json?auth-userid=0&api-key=key&order-id=0&new-plan-id=0&months=0
Response
Returns the applicable modify or upgrade price for the specified Multi Domain Windows Hosting order.
Example:
{
"upgradecost": 0.0,
"modifiedOrderPrice": 0.0,
"endtime": "0000000000",
"remainingmonths": 0,
"currentOrderPrice": 0.0
}
Where:
-
currentOrderPrice— Current price of the order for the remaining months. -
modifiedOrderPrice— New applicable price of the order based on the new plan. -
upgradecost— Actual applicable price, calculated asmodifiedOrderPrice - currentOrderPrice.