Add cWatch Order

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


Description

Creates a new cWatch order for a customer.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Reseller ID (Authentication Parameter)
api-key String Required Reseller API key (Authentication Parameter)
domain-name String Required Domain name to associate with the order
customer-id Integer Required ID of the customer placing the order
plan-id Integer Required ID of the cWatch plan
noOfMonths Integer Required Subscription duration in months (e.g. 1)
invoice-option String Required Invoice generation option (e.g. NoInvoice)
additional-param-json String Optional Optional URL-encoded JSON string for extra parameters

HTTP Method

POST

Example Request

POST https://httpapi.com/restapi/product/cwatch/order?auth-userid=0&api-key=key&domain-name=example.com&customer-id=322754&plan-id=0&noOfMonths=1&invoice-option=NoInvoice

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

Response

Returns the details of the newly created cWatch order, including the Order ID and its status. Representative example:

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