Loading...

Knowledge Base

Renew cWatch Orders via the API

Description

Renews an existing cWatch order for a specified number of months.

Parameters

NameData TypeRequired / OptionalDescription
order-idIntegerRequiredThe ID of the order to renew (passed in the URL path)
monthsIntegerRequiredNumber of months for the renewal tenure (passed in the URL path)
auth-useridIntegerRequiredReseller ID (Authentication Parameter)
api-keyStringRequiredReseller API key (Authentication Parameter)
noOfMonthsIntegerRequiredSubscription duration in months (e.g. 12)
invoice-optionStringRequiredInvoice generation option (e.g. NoInvoice)
discount-amountFloatOptionalDiscount amount to apply (e.g. 0)

HTTP Method

PATCH

Example Request

PATCH https://httpapi.com/restapi/product/cwatch/order/854193/tenure/12?auth-userid=0&api-key=key&noOfMonths=12&invoice-option=NoInvoice&discount-amount=0

Content-Type: application/x-www-form-urlencoded

Response

Returns the status of the renewal, including the updated order tenure. Representative example:

{ "orderid": "854193", "status": "Success" }