Get Transactions

Use SuperWalletGetTransactions to retrieve all transactions paid for a specific customer, ordered by payment date (descending).

Common use: review a customer’s transaction history or reconcile wallet activity across multiple cards.


Endpoint

POST https://secure.3gdirectpay.com/API/v6/

Headers

Content-Type: application/xml; charset=utf-8
Accept: application/xml

Request

Required Fields

FieldReqDescription
RequestYesMust be SuperWalletGetTransactions
CompanyTokenYesToken provided by DPO to authorize API operations
customerUnqYesUnique token identifying the customer
customerTokenNoToken for a specific credit card. If omitted, results include all cards
numberOfRecordsNoMaximum number of records to return (default: 100)
indexOfRecordsNoIndex of the first record to retrieve (default: 0)

Example Request (XML)

<?xml version="1.0" encoding="utf-8"?>
<API3G>
  <CompanyToken>68B90B5E-25F6-4146-8AB1-C7A3A0C41A7F</CompanyToken>
  <Request>SuperWalletGetTransactions</Request>
  <customerUnq>9D3D99F7-3FEE-4792-961A-6EFFB5B642BA</customerUnq>
  <indexOfRecords>50</indexOfRecords>
  <numberOfRecords>25</numberOfRecords>
</API3G>

Response

Example Success Response (XML)

<?xml version="1.0" encoding="utf-8"?>
<API3G>
  <Result>000</Result>
  <ResultExplanation>Transactions found</ResultExplanation>
  <TotalTransactions>8</TotalTransactions>
  <transHistory>
    <trans>
      <transRef>49717D0F</transRef>
      <providerName>Direct Pay Online Payment</providerName>
      <transAmount>1.00</transAmount>
      <transCurrency>USD</transCurrency>
      <paymentDate>2018-07-20</paymentDate>
      <transCardType>MASC</transCardType>
      <transCardNum>(4679)</transCardNum>
    </trans>
    <trans>
      <transRef>49711B2E</transRef>
      <providerName>Direct Pay Online Payment</providerName>
      <transAmount>1.00</transAmount>
      <transCurrency>USD</transCurrency>
      <paymentDate>2018-07-20</paymentDate>
      <transCardType>MASC</transCardType>
      <transCardNum>(3215)</transCardNum>
    </trans>
  </transHistory>
</API3G>

Field Reference

FieldDescription
ResultResponse code returned by the server
ResultExplanationDescription of the result
TotalTransactionsTotal number of transactions found
transHistoryArray of transaction objects
transRefTransaction reference
providerNamePayment provider name
transAmountTransaction amount
transCurrencyCurrency code (e.g., USD, KES)
paymentDateDate of transaction
transCardTypeCard type used (e.g., VISA, MASC)
transCardNumMasked card number (last 4 digits)

Typical Usage Flow

sequenceDiagram
  participant M as Merchant
  participant D as DPO API

  M->>D: SuperWalletGetTransactions<br/>(CompanyToken, customerUnq)
  D-->>M: Result + TotalTransactions + transHistory
  M->>M: Display transactions<br/>ordered by payment date (desc)
  Note over M,D: Optionally repeat call<br/>with indexOfRecords for pagination

Notes & Best Practices

  • Use pagination (numberOfRecords, indexOfRecords) for large result sets.
  • If customerToken is not provided, all transactions for the customer’s Super Wallet will be returned.
  • Transactions are listed newest first.
  • Always handle Result and ResultExplanation codes to confirm success before parsing data.
  • Store responses securely if used for financial reporting or reconciliation.

Common Result Codes

CodeMeaningAction
000Transactions foundSuccess
801Missing CompanyTokenProvide valid token
804XML errorCheck formatting/encoding
902Data mismatchVerify customerUnq or customerToken
999Internal errorRetry or contact support