Loading...

Knowledge Base

Search Archived Sub-Reseller Transactions Using the API

When you want to search archived sub-reseller transactions using the API. This article explains available search filters, transaction types, pagination parameters, and response details for archived sub-reseller transaction records.

 

Description

Gets a detailed list of the Sub-Reseller's Archived Transactions, matching the search criteria.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredYour Live Account Reseller Id
api-keyStringRequiredAn alphanumeric code that can be used to authenticate your API calls 
no-of-recordsIntegerRequiredNumber of Transactions to be fetched
page-noIntegerRequiredPage number for which details are to be fetched
reseller-idArray of IntegersOptionalReseller Id of the Sub-Reseller(s) whose Transactions are to be fetched
usernameArray of StringsOptionalUsername of the Sub-Reseller(s) whose Transactions are to be fetched
transaction-typeArray of StringsOptionalType of the Transactions. Possible values can be credit, debit, invoice, receipt.
transaction-keyStringOptionalTransaction key. Possible value can be manually or systemgenerated.
transaction-idArray of IntegersOptionalTransaction Ids
transaction-descriptionStringOptionalTransaction description
amt-range-startIntegerOptionalLowest amount in the range of Transactions you intend to list
amt-range-endIntegerOptionalHighest amount in the range of Transactions you intend to list
transaction-date-startStringOptionalUNIX TimeStamp for listing of Transactions whose Creation Date is greater than transaction-date-start
transaction-date-endStringOptionalUNIX TimeStamp for listing of Transactions whose Creation Date is less than transaction-date-end

HTTP Method

GET

Example Test URL Request

https://test.httpapi.com/api/billing/reseller-archived-transactions/search.json?auth-userid=0&api-key=key&no-of-records=1&page-no=1

Response

Returns a hash map of the Sub-Reseller's Archived Transactions containing the below details:

  • Transaction Id (reseller_transaction.transid)

  • Transaction Date (reseller_transaction.transactiondate)

  • Order Id associated with the Transaction (reseller_transaction.orderid)

  • Product Key (reseller_transaction.key)

  • Transaction Type (reseller_transaction.type)

  • Transaction Description (reseller_transaction.description)

  • Whether Transaction is Greedy (greedy)

  • Reseller Id Associated with the Transaction (reseller_transaction.resellerid)

  • Selling Currency Symbol of the Parent Reseller (reseller_transaction.sellingcurrencysymbol)

  • Transaction Amount in the Selling Currency (reseller_transaction.sellingamount)

  • Unutilised Transaction Amount in the Selling Currency (reseller_transaction.unutilisedsellingamount)

  • Accounting Currency Symbol of the Parent Reseller (reseller_transaction.accountingcurrencysymbol)

  • Transaction Amount in the Accounting Currency (reseller_transaction.accountingamount)

  • Unutilised Transaction Amount in the Accounting Currency (reseller_transaction.unutilisedaccountingamount)

  • Foreign Exchange Difference (forexdiff)

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