API Reference
List Transactions [GET]

List Transactions

https://sandboxapi.onbrails.com/api/v1/ (opens in a new tab)

List all transactions on your account

Request

Transactions/List Transactions [GET]
curl --request GET \
     --url https://sandboxapi.onbrails.com/api/v1/transactions \
     --header 'Authorization: Bearer YOUR_SECRET_KEY' \
     --header 'accept: application/json'

Responses

🟢 200 - Result example
{
"status": true,
"message": "fetched transactions successful",
"data": {
  "transactions": [
    {
      "id": "00000000-0000-0000-0000-e000fca0000f",
      "type": "DEBIT",
      "fees": "0",
      "action": "GHS_ACCOUNT_PAYOUT",
      "amount": "3.26",
      "status": "success",
      "channel": "payout",
      "createdAt": "2024-06-12T12:21:09.387Z",
      "updatedAt": "2024-06-12T12:21:50.692Z",
      "reference": "6dd1c917f08f",
      "companyId": "00000000-0000-0000-0000-e000fca0000f",
      "exchangeRate": "15.35",
      "balanceAfter": "255",
      "balanceBefore": "581",
      "description": "SEND FUND ",
      "currency": "USD",
      "beneficiary": {
        "type": "MOBILEMONEY",
        "network": "MTN",
        "accountName": "Jen Doe",
        "accountNumber": "0240000000"
      },
      "payoutAmount": 50,
      "payoutCurrency": "GHS",
      "payoutUsdAmount": "0"
    },
    {
      "id": "00000000-0000-0000-0000-e000fca0000f",
      "type": "CREDIT",
      "fees": "0",
      "action": "DEPOSIT_NGN",
      "amount": "10000",
      "status": "success",
      "channel": "bank",
      "createdAt": "2024-06-12T11:59:08.160Z",
      "updatedAt": "2024-06-12T11:59:08.819Z",
      "reference": "0000a0000af6",
      "companyId": "00000000-0000-0000-0000-e000fca0000f",
      "exchangeRate": "0",
      "balanceAfter": "1000010",
      "balanceBefore": "10",
      "description": "CREDIT",
      "currency": "NGN",
      "payoutUsdAmount": "0"
    },
    {
      "id": "00000000-0000-0000-0000-e000fca0000f",
      "type": "DEBIT",
      "fees": "1",
      "action": "FUND_CARD",
      "amount": "7",
      "status": "success",
      "channel": "card",
      "createdAt": "2024-02-01T20:11:58.457Z",
      "updatedAt": "2024-02-01T20:11:58.457Z",
      "reference": "0bea00db0c0",
      "companyId": "00000000-0000-0000-0000-e000fca0000f",
      "exchangeRate": "0",
      "balanceAfter": "9",
      "balanceBefore": "809",
      "description": "TOP UP CARD FROM USD WALLET",
      "currency": "USD",
      "payoutUsdAmount": "0"
    }
  ],
  "meta": {
    "page": 1,
    "take": 10,
    "itemCount": 2,
    "pageCount": 1,
    "hasPreviousPage": false,
    "hasNextPage": false
  }
}
}