Loading...

Knowledge Base

Get the Modify or Upgrade Price for a Reseller Windows Hosting Order Using the API

When you want to retrieve the applicable modify or upgrade price for a Reseller Windows Hosting order using the API. This article explains the required authentication parameters, order and plan inputs, tenure details, and upgrade pricing response information. 

Get Modify/Upgrade Price

Description

Gets the applicable modify/upgrade price for a particular Reseller Windows Hosting Order.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
order-idIntegerRequiredThe Order ID for which the details are to be fetched.
new-plan-idIntegerRequiredThe new plan to which the Order is to be upgraded/downgraded. To fetch the plan details: plan-id etc., use this method.
monthsIntegerRequiredThe number of months (tenure) in the new plan for which the Order to be placed.

HTTP Method

GET

Example Test URL Request

US Server https://test.httpapi.com/api/resellerhosting/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/resellerhosting/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/upgrade price for a particular Reseller Windows Hosting Order.

Example:

{ "upgradecost":0.0, "modifiedOrderPrice":0.0, "endtime":"0000000000", "remainingmonths":0, "currentOrderPrice":0.0 }

where

  • currentOrderPrice: The current pricing of the Order for remaining months.

  • modifiedOrderPrice: New applicable pricing of the Order as per the new plan.

  • upgradecost: Actual price applicable i.e. modifiedOrderPrice - currentOrderPrice.

 
 

Loading...