Knowledge Base
Categories: Reseller Linux Hosting API
Search Reseller Linux Hosting Orders Using the API
Summary
When you want to find Reseller Linux Hosting orders using the API. This article explains the available search criteria and how matching order information is returned.
Description
Gets a list and details of Reseller Linux Hosting orders matching the specified search criteria.
Parameters
| Name | Data Type | Required / Optional | Description |
|---|---|---|---|
auth-userid | Integer | Required | Your Live Account Reseller ID used to authenticate the API request. |
api-key | String | Required | Your API key used to authenticate the API request. |
no-of-records | Integer | Required | Number of orders to be fetched. |
page-no | Integer | Required | Page number for which the order details are to be fetched. |
order-id | Array of Integers | Optional | Order ID or Order IDs of the Reseller Linux Hosting orders whose details need to be fetched. |
reseller-id | Array of Integers | Optional | Reseller ID or Reseller IDs whose orders need to be fetched. |
customer-id | Array of Integers | Optional | Customer ID or Customer IDs whose orders need to be fetched. |
show-child-orders | Boolean | Optional | Specifies whether Sub-Reseller orders need to be fetched. |
status | Array of Strings | Optional | Status of the order, such as Active, InActive, or Deleted. |
domain-name | String | Optional | Domain name of the Reseller Linux Hosting order. |
creation-date-start | String | Optional | UNIX timestamp for fetching orders whose creation date is greater than this value. |
creation-date-end | String | Optional | UNIX timestamp for fetching orders whose creation date is less than this value. |
expiry-date-start | String | Optional | UNIX timestamp for fetching orders whose expiry date is greater than this value. |
expiry-date-end | String | Optional | UNIX timestamp for fetching orders whose expiry date is less than this value. |
order-by | Array of Strings | Optional | One or more parameters by which the orders should be sorted. The default is orderid. |
HTTP Method
GET
Example Test URL Request
US Server
https://test.httpapi.com/api/resellerhosting/linux/us/search.json?auth-userid=0&api-key=key&no-of-records=1&page-no=1
India Server
https://test.httpapi.com/api/resellerhosting/linux/in/search.json?auth-userid=0&api-key=key&no-of-records=1&page-no=1
Sorting the Results
Use the order-by parameter to control the order in which matching records are returned.
For example, if:
-
page-nois1 -
no-of-recordsis30 -
order-byisorderid
the API returns the first 30 orders matching the search criteria, sorted by Order ID.
If page-no is changed to 2, the API returns the next set of 30 matching orders using the same sorting criteria.
Response
Returns the list of Reseller Linux Hosting orders that match the specified search criteria.
Did you find this article helpful?