Fetch cWatch Customer Modify Price

KB Tags associated with this article:
Use any one tag
KB Tags
Body


Description

Fetches the customer-facing price for upgrading an order to a new plan for a given tenure.

Parameters

Name Data Type Required / Optional Description
order-id Integer Required The ID of the order (passed in the URL path)
new-plan-id Integer Required The target cWatch plan ID (passed in the URL path)
auth-userid Integer Required Reseller ID (Authentication Parameter)
api-key String Required Reseller API key (Authentication Parameter)
months Integer Required Tenure in months for pricing (e.g. 12)

HTTP Method

GET

Example Request

GET https://httpapi.com/restapi/product/cwatch/order/855650/plan/300800/cost?auth-userid=0&api-key=key&months=12

Response

Returns the applicable customer-facing price for upgrading the order to the specified plan and tenure. Representative example:

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