Loading...

Knowledge Base

Get the Payment Gateway Transactions of a Customer Account Using the API

When you want to retrieve payment gateway transactions for a customer account based on specific search criteria. This article explains the required parameters, filtering options, and API request format for fetching add fund or payment transaction details.

Getting Customer Transactions

Description

Gets the list of Customers' Payment Gateway Transactions, matching the search criteria.

Parameters

NameData TypeRequired / OptionalDescription
auth-useridIntegerRequiredAuthentication Parameter
api-keyStringRequiredAuthentication Parameter
payment-type-idIntegerRequiredPayment Type Id
transaction-idsArray of IntegerOptionalTransaction Ids
customer-idsArray of IntegerOptionalCustomer Id of the Customer(s) for whom the details are to be fetched
transaction-typeStringRequiredTransaction type. Values can be addfund or payment.
start-dateStringOptionalStart date of the duration for which Transactions are to be fetched
end-dateStringOptionalEnd date of the duration for which Transactions are to be fetched
statusArray of StringsOptionalStatus of the Transaction. Values can be AuthCancelled, AuthFailed, AuthPending, AuthStarted, FailedByCron, Refunded or Settled.
no-of-recordsIntegerRequiredNumber of records to be returned
page-noIntegerRequiredPage number for which records are required

HTTP Method

GET

Example Test URL Request

https://test.httpapi.com/api/pg/customer-transactions.xml?auth-userid=0&api-key=key&payment-type-id=1&transaction-type=addfund&no-of-records=10&page-no=1

Response

Returns a hash map of Customers' Payment Gateway Transactions containing the below details:

  • Transaction Id (transid)

  • Transaction Creation Date (creationdt)

  • Entity initiating the Transaction (role)

  • Customer Id (userid)

  • Transaction Status (status)

  • Transaction Amount in the Selling Currency of the Parent Reseller (sellingamount)

  • Amount Charged in the Selling Currency of the Parent Reseller (chargedamount)

  • Transaction Amount in the Accounting Currency of the Parent Reseller (accountingamount)

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