Loading...

Knowledge Base

Add cWatch Order via the API

Description

Creates a new cWatch order for a customer.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredReseller ID (Authentication Parameter)
api-keyStringRequiredReseller API key (Authentication Parameter)
domain-nameStringRequiredDomain name to associate with the order
customer-idIntegerRequiredID of the customer placing the order
plan-idIntegerRequiredID of the cWatch plan
noOfMonthsIntegerRequiredSubscription duration in months (e.g. 1)
invoice-optionStringRequiredInvoice generation option (e.g. NoInvoice)
additional-param-jsonStringOptionalOptional 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" }