Loading...

Knowledge Base

Fetch Customer Modify Price via the API

Description

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

Parameters

NameData TypeRequired / OptionalDescription
order-idIntegerRequiredThe ID of the order (passed in the URL path)
new-plan-idIntegerRequiredThe target cWatch plan ID (passed in the URL path)
auth-useridIntegerRequiredReseller ID (Authentication Parameter)
api-keyStringRequiredReseller API key (Authentication Parameter)
monthsIntegerRequiredTenure 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 }