Loading...

Knowledge Base

Search Sub-Resellers Using the API

When you want to search sub-reseller accounts using the API. This article explains search filters, pagination parameters, sub-reseller status options, receipt filters, and response details for matching sub-reseller records.

Search

Description

Gets details of the Sub-Resellers that match the Search criteria.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
no-of-recordsIntegerRequiredNumber of records to be fetched. This should be a value between 10 to 500.
page-noIntegerRequiredPage number for which details are to be fetched
reseller-idArray of IntegersOptionalReseller Id of Sub-Reseller(s)
usernameStringOptionalUsername of Sub-Reseller. Username should be an email address.
nameStringOptionalName of Sub-Reseller
companyStringOptionalCompany Name of Sub-Reseller
cityStringOptionalCity
stateStringOptionalState
statusStringOptionalStatus of Sub-Reseller. Values can be Active, Suspended and Deleted.
creation-date-startStringOptionalUNIX TimeStamp for listing of Sub-Resellers whose Creation Date is greater than creation-date-start
creation-date-endStringOptionalUNIX TimeStamp for listing of Sub-Resellers whose Creation Date is less than creation-date-end
total-receipt-startFloatOptionalTotal receipts of Sub-Resellers which is greater than total-receipt-start
total-receipt-endFloatOptionalTotal receipts of Sub-Resellers which is less than total-receipt-end

HTTP Method

GET

Example Test URL Request

https://test.httpapi.com/api/resellers/search.json?auth-userid=0&api-key=key&no-of-records=10&page-no=1

Response

Returns a hash map containing the below details of the Sub-Resellers that match the search criteria:

  • Number of Sub-Resellers requested matching the search criteria (recsonpage)

    Following details of each Sub-Resellers

    • Reseller Id (reseller.resellerid)

    • Username (reseller.username)

    • Name (reseller.name)

    • Company (reseller.company)

    • City (reseller.city)

    • State (reseller.state)

    • Country Code (reseller.country)

    • Current Status (reseller.resellerstatus)

    • Total Receipts (reseller.totalreceipts)

  • Number of Sub-Resellers in the System matching the search criteria (recsindb)

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