Renew cWatch Orders

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


Description

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

Parameters

Name Data Type Required / Optional Description
order-id Integer Required The ID of the order to renew (passed in the URL path)
months Integer Required Number of months for the renewal tenure (passed in the URL path)
auth-userid Integer Required Reseller ID (Authentication Parameter)
api-key String Required Reseller API key (Authentication Parameter)
noOfMonths Integer Required Subscription duration in months (e.g. 12)
invoice-option String Required Invoice generation option (e.g. NoInvoice)
discount-amount Float Optional Discount 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" }