Get Account Transactions

Retrieve all account transactions with pagination support

GET https://upesipay.com/api/v2/transactions

Headers

Parameter Type Description
Authorization* String Basic auth token

Query Parameters

Parameter Type Description
page Integer The page number that you want to fetch data for
per Integer The total records per page

Responses

200 OK

{
  "transactions": [
    {
      "id": 451,
      "account_id": 183,
      "invoice_id": null,
      "transaction_type": "service_charge",
      "description": "Received KES 50 from",
      "amount": -6,
      "transaction_reference": "EB7C4Z7RXC",
      "provider_reference": "cost_EB7C4Z7RXC",
      "goal_id": null,
      "gateway": "sasapay",
      "cost": 6,
      "wallet_balance": 6775,
      "transaction_name": "Transaction Fee",
      "created_at": "2026-01-02T15:13:11.203273Z",
      "updated_at": "2026-01-02T15:13:11.202741Z"
    }
  ],
  "pagination": {
    "count": 284,
    "next_page": 3,
    "num_pages": 142,
    "page": 2,
    "per": 2,
    "prev_page": 1
  }
}

Notes

  • Use next_page and prev_page from pagination to navigate through pages
  • You also get a count of all available transactions

Try It Out

Please set your authentication token in the sidebar to test this API.

Headers

Query Parameters

Code Samples

curl -X GET \
  'https://upesipay.com/api/v2/transactions?page=2&per=20' \
  -H 'Authorization: Basic YOUR_AUTH_TOKEN'

Was this page helpful?

Previous

Check the status of your payment transaction.

Get Transaction Status

Next

Calculate and retrieve transaction fees.

Get Transaction Fees