reseller

is added when reseller has a customer specific business

Get Customer Pricing

Description

Use this method to get details of the pricing for the VPS Linux plans.

Response

Returns a map with the prices of the VPS Linux plans along with the prices of the other products.

The response structure for the VPS Linux product will be:


"productkey":
{
"addons":
{
"addon1-name":price,
"addon2-name":price
},
"plans":
{
"planid":
{
"action":
{
"tenure-in-months":price
},
}
}
}

Example:

Get Modify/Upgrade Price

Description

Gets the applicable modify/upgrade price for a particular VPS Linux Order.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
order-id Integer Required Order ID of the Order for which the details are to be fetched
new-plan-id Integer Required The new plan to which the Order is to be upgraded/downgraded. To fetch the plan details: plan-id etc., use this method.
months Integer Optional The number of months (tenure) in the new plan for which the Order to be placed. Default value is remaining months of the VPS Linux Order.

HTTP Method

GET

Example Test URL Request


Response

Returns the applicable modify/upgrade price for a particular VPS Linux Order.

Example:


{
"upgradecost":0.0,
"modifiedOrderPrice":0.0,
"endtime":"0000000000",
"remainingmonths":0,
"currentOrderPrice":0.0
}

where

  • currentOrderPrice: The current pricing of the Order for remaining months.

  • modifiedOrderPrice: New applicable pricing of the Order as per the new plan.

  • upgradecost: Actual price applicable i.e. modifiedOrderPrice - currentOrderPrice

Search Orders

Description

Gets a list and details of the VPS Linux Orders matching the search criteria.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
no-of-records Integer Required Number of Orders to be fetched
page-no Integer Required Page number for which details are to be fetched
order-id Array of Integers Optional Order ID(s) of the VPS Linux Order(s) whose details need to be fetched
reseller-id Array of Integers Optional Reseller Id(s) of the Reseller(s) whose Orders need to be fetched
customer-id Array of Integers Optional Customer Id(s) of the Customer(s) whose Orders need to be fetched
show-child-orders Boolean Optional Whether Sub-Reseller Orders need to be fetched or not
status Array of Strings Optional Status of the Order: Active, InActive, Deleted, etc.
domain-name String Optional Domain name associated with the VPS Linux Order
creation-date-start String Optional UNIX TimeStamp for listing of the VPS Linux Orders whose Creation Date is greater than creation-date-start
creation-date-end String Optional UNIX TimeStamp for listing of the VPS Linux Orders whose Creation Date is less than creation-date-end
expiry-date-start String Optional UNIX TimeStamp for listing of the VPS Linux Orders whose expiry date is greater than expiry-date-start
expiry-date-end String Optional UNIX TimeStamp for listing of the VPS Linux Orders whose expiry date is less than expiry-date-end
order-by Array of Strings Optional One or more parameters by which you want to sort the Orders. Default is orderid.

Example:

If page-no is 1, no-of-records is 30 and order-by is orderid; it will fetch the first 30 Orders which suit the search criteria sorted by orderid.
If page-no is 2, no-of-records is 30 and order-by is orderid; it will fetch the second batch of 30 Orders sorted by orderid.

HTTP Method

GET

Example Test URL Request


Response

Returns the list of the VPS Linux Orders which match the search criteria.

Get Details

Description

Gets the details of an existing VPS Linux Order.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
order-id Integer Required Order ID of the Order for which the details are to be fetched

HTTP Method

GET

Example Test URL Request


Response

Returns a hash map containing the below details:

  • Order ID (entityid)

  • Order Description (description)

  • Domain Name (domainname)

  • Current Order Status under the System (currentstatus) - value will be InActive, Active, Suspended or Deleted

  • Product key (productkey)

  • Product Category (productcategory)

  • Order Creation Date (creationtime)

  • Expiry Date (endtime)

  • Whether Order belongs to a Customer directly under the Reseller (isImmediateReseller)

  • Reseller Chain by RID (parentkey)

  • Customer ID Associated with the Order (customerid)

  • Whether Order Suspended due to Expiry (isOrderSuspendedUponExpiry)

  • Whether Order Suspended by Parent Reseller (orderSuspendedByParent)

  • Whether Order Deletion is Allowed (allowdeletion)

  • Cost Price for Reseller (resellercost)

  • Cost Price for Customer (customercost)

  • IP Address (ipAddress)

  • Plan ID of the VPS Plan (planid)

  • Status of the VPS Plan (paused)

  • Admin User for the VPS Order (siteadminusername)

  • Password for the above Admin USer (siteadminpassword)

  • Whether the VPS Plan includes WHMCS Addon (includes_whmcs)

  • Installed Operating System (os_name)

  • Details of the Addons (addons)

    • Addon ID of the Addon (addOnID)

    • Addon Name (name)

    • Addon Creation Date (creationTime)

    • Payment Status for the Addon (is_paid)

    • License Key for the WHMCS Addon (licenseKey)

    • Number of Domains for the Plesk Addon (noOfDomains)

    • Login URL for the cPanel / Plesk / Virtuozzo Addon (loginURL)

    • Admin User for the cPanel / Plesk / Virtuozzo Addon (username)

    • IP Address (ipAddress)

In case of any errors, a status key with value as ERROR alongwith an error message will be returned.

Delete Add-on

Description

Deletes the specified Add-on of the VPS Linux Order.

Parameters

Name Data Type Required / Optional Description
auth-userid Integer Required Authentication Parameter
api-key String Required Authentication Parameter
order-id Integer Required Order ID of the Order for which the specified Add-on is to be deleted
addon-id Integer Required ID of the Add-on to be deleted. Use this method to fetch the Add-on ID.

HTTP Method

POST

Example Test URL Request


Response

Returns a map of the execution details of the deleting Add-on operation.