Retrieves transaction records for a user across their wallets. Unlike the Wallet History endpoint, which retrieves transactions for a specific wallet, this endpoint uses the user_ref to return transactions across the user's wallets, including different currencies and wallet types.

Endpoint

GET {{base_url}}/api/v1/transaction/wallet-query

Authentication

Requires your Merchant API Key.

Headers

HeaderRequiredDescription
X-merchant-refYesYour unique merchant reference.

Example Request

curl --location -g '{{base_url}}/api/v1/transaction/wallet-query?user_ref={USER_REF}&date_from=2026-01-18&date_to=2026-09-20&page=1&no_records=10&sort=desc' \
--header 'X-merchant-ref: {{x-merchant-ref}}'

Query Parameters

ParameterRequiredTypeDescription
user_refYesStringReference of the user whose wallet transactions are being retrieved.
date_fromNoDateStart date for the transaction history. Format: YYYY-MM-DD.
date_toNoDateEnd date for the transaction history. Format: YYYY-MM-DD.
pageNoIntegerPage number for paginated results.
no_recordsNoIntegerNumber of records to return per page.
sortNoStringSort order for the results. Accepted values: asc or desc.

Response

200 OK

{
  "status": "success",
  "message": "Retrieved successfully",
  "data": [
    {
      "amount": 0.04892368,
      "available_balance_after": 90.89004311,
      "available_balance_before": 90.84111943,
      "category": "TRANSFER",
      "currency": "NGN",
      "date": "2026-09-16T14:28:22.351627Z",
      "description": "WALLET_TRANSFER_CREDIT",
      "ledger_balance_after": 0,
      "ledger_balance_before": 0,
      "payment_reference": "sw_00000441_1_2_2_1-credit",
      "reference": "sw_00000441_1_2_2_1-credit",
      "status": "SUCCESSFUL",
      "type": "CREDIT",
      "wallet_id": "LBWCADFAE7405062AC4815B971F6DEB0F1EE0200DKT"
    },
    {
      "amount": 50,
      "available_balance_after": 467,
      "available_balance_before": 517,
      "category": "WALLET_TRANSFER",
      "currency": "NGN",
      "date": "2026-09-16T14:28:22.295491Z",
      "description": "WALLET_SWAP_DEBIT",
      "ledger_balance_after": 0,
      "ledger_balance_before": 0,
      "payment_reference": "sw_00000441_1_2_2_1-debit",
      "reference": "sw_00000441_1_2_2_1-debit",
      "status": "SUCCESSFUL",
      "type": "DEBIT",
      "wallet_id": "LBWNGN81C4801EE29D43F8A0B2231E367B74550063J"
    },
    {
      "amount": 0.5,
      "available_balance_after": 0,
      "available_balance_before": 0,
      "category": "COLLECTION",
      "currency": "USDT:POL",
      "date": "2026-09-08T08:05:03.986433Z",
      "description": "DYNAMIC_COLLECTION",
      "ledger_balance_after": 0,
      "ledger_balance_before": 0,
      "payment_reference": "6a733723-7724-4efc-8f57-3cd923b0e01c",
      "reference": "LIVE_0009_02_09_0162",
      "status": "PENDING",
      "type": "CREDIT",
      "wallet_id": "LBWUSDT:POL1649B6B5F7524B3C9DE3618DF461947200F2Y"
    }
  ]
}

Response Fields

FieldTypeDescription
amountNumberAmount involved in the transaction.
available_balance_afterNumberAvailable wallet balance after the transaction.
available_balance_beforeNumberAvailable wallet balance before the transaction.
categoryStringTransaction category, such as TRANSFER, WALLET_TRANSFER, COLLECTION, or PAYOUT.
currencyStringCurrency of the transaction, such as NGN, CAD, or USDT:POL.
dateStringDate and time when the transaction was recorded.
descriptionStringDescription or internal classification of the transaction.
ledger_balance_afterNumberLedger balance after the transaction.
ledger_balance_beforeNumberLedger balance before the transaction.
payment_referenceStringPayment reference associated with the transaction.
referenceStringUnique transaction reference.
statusStringTransaction status, such as SUCCESSFUL or PENDING.
typeStringIndicates whether the transaction is a CREDIT or DEBIT.
wallet_idStringID of the wallet associated with the transaction.

Did this page help you?