EdfaPay Logo

Transaction History

Retrieve and display transaction history for the current terminal. Access detailed information about past transactions including receipts.

Overview

Retrieve transaction records with optional pagination. Access detailed information for individual transactions by their transaction number.

txnHistory()

Retrieve a list of transactions with optional pagination.

txnDetail()

Get detailed information for a specific transaction.

On docs.edfapay.com

For a back office, the same transactions are in the dashboard and its reports: Transactions.

Pagination

For large transaction volumes, pass a Pagination. A Pagination defaults to pageNumber 0, pageSize 50, newest first. The response is the list for that page only, with no total count: request the next pageNumber until a page comes back with fewer than pageSize transactions.

Get Transaction History

Retrieve past transactions for the current terminal, one page at a time when you pass a Pagination. In Kotlin and Java, onSuccess receives the page as a List of Transaction. In Flutter and React Native, onSuccess receives a map whose value key holds the list; each transaction is a map with the keys listed under Transaction Model.

Loading...

Get Transaction Detail

Retrieve full details of one transaction. Pass its transaction number as txnId: transactionNumber in Kotlin and Java, the transaction_number key in Flutter and React Native, for example from a transaction returned by txnHistory().

Loading...

Transaction Model

Properties of each Transaction returned by txnHistory() and txnDetail(). Flutter and React Native receive each transaction as a map with the keys in the second column. Java reads each field with its getter, for example getRrn(). In Kotlin and Java, formattedAmount(currency) returns the amount followed by the transaction's currency, or by the currency you pass when the transaction has none, and transactionType() returns operationType as a TransactionType.

Kotlin, Java (field)Flutter, React Native (map key)TypeDescription
transactionNumbertransaction_numberString?Transaction id; pass it to txnDetail()
rrnrrnString?Retrieval Reference Number
authCodeauth_codeString?Authorization code from issuer
amountamountStringTransaction amount
currencycurrencyString?Currency code (ISO 4217 numeric, e.g. 682 for SAR)
statusstatusStringTransaction status
operationTypeoperation_typeString?Type (PURCHASE, REFUND, etc.)
cardNumbercredit_numberStringCard number (partially masked)
scheme_idschemeString?Card scheme identifier
formattedSchemeformatted_schemeString?Card brand (Visa, Mastercard, etc.)
cardholderNamecardholder_nameString?Name on card
createdDatecreated_dateStringTransaction creation date
formattedCreatedDateformatted_created_dateString?Formatted date
formattedCreatedTimeformatted_created_timeString?Formatted time
finishDatefinish_dateString?Finish date as sent by the server
merchantIdmerchant_idString?Merchant identifier
acquirerMerchantIdmada_merchant_idString?Acquirer merchant identifier
acquirerTerminalIdmada_terminal_idString?Acquirer terminal identifier
responseMessageCoderesponse_message_codeString?Response code from the server
isRefundedOrCancelledalready_refunded_or_cancelledBoolean?Whether the transaction was already refunded or cancelled