Skip to main content
Every payment attempt — whether approved or blocked — creates a Transaction record in Axis. Retrieving these records in paginated form lets you build a real-time transaction feed, an agent activity log, or a full audit history directly in your UI.

Transaction history endpoints

Axis exposes two endpoints for querying transaction history depending on your API version.

GET /api/wallets/:walletId/transactions

Returns a paginated list of transactions for a specific wallet, sorted newest first. Query parameters Example response
The response wraps results in a data array alongside a pagination object so your UI can render page controls directly from the response without any client-side math.

GET /v1/wallets/:id/transactions

Returns the most recent transactions for a wallet. Use the limit query parameter to control how many records are returned. Query parameters Each record from this endpoint is a compact summary containing only: amount, merchant, decision, reason, and createdAt. Note that the merchant field is named merchant here — not merchantName. For the full transaction record including all fields, use GET /api/wallets/:walletId/transactions.

Transaction fields

Key fields to highlight in your UI

  • decision — use this to visually distinguish approved from blocked attempts (green vs red, checkmark vs warning icon).
  • blockReason — only populated when decision is "blocked". Surface this string directly in your UI so developers and operators can understand what stopped a payment.
  • amount — always stored in kobo. Convert to naira for display: amount / 100.
Displaying blockReason in your transaction list is one of the fastest ways to give developers visibility into why an agent payment was denied — no log-digging required. For a deeper rule-by-rule breakdown, see Audit Events.

React example: paginated transaction list

The component below fetches transactions from /api/wallets/:walletId/transactions, renders approved and blocked entries with distinct colors, and provides previous/next pagination controls.