Skip to main content
GET
/
wallet
/
transactions
Get Wallet Transactions
curl --request GET \
  --url https://api.rolla.xyz/api/v1/external/wallet/transactions \
  --header 'X-API-Key: <api-key>'
{
  "status": 200,
  "success": true,
  "message": "Transaction history retrieved successfully",
  "transactions": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "transaction_type": "deposit",
      "status": "pending",
      "description": "<string>",
      "external_reference": "<string>",
      "fee_amount": 123,
      "source_amount": 123,
      "destination_amount": 123,
      "source_currency": "<string>",
      "destination_currency": "<string>",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "totalCount": 150,
  "page": 1,
  "pageSize": 20,
  "totalPages": 8
}
Retrieve a paginated list of wallet transactions with optional filtering by currency, type, status, date range, and search term.

Example Request

curl -X GET "https://api.rolla.xyz/api/v1/external/wallet/transactions?currency=NGN&status=completed&page=1&pageSize=20" \
  -H "X-API-Key: your_api_key_here"

Query Parameters

ParameterTypeDescription
currencystringFilter by 3-letter currency code (e.g. NGN, USD)
transactionTypestringFilter by type: deposit, withdrawal, swap
statusstringFilter by status: pending, completed, failed, rejected, sent
pageintegerPage number (default: 1)
pageSizeintegerResults per page (default: 20, max: 100)
startDatestringStart date filter (YYYY-MM-DD)
endDatestringEnd date filter (YYYY-MM-DD)
searchstringSearch term to filter transactions

Example Response

{
  "status": 200,
  "success": true,
  "message": "Transaction history retrieved successfully",
  "data": {
    "transactions": [
      {
        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "transaction_type": "withdrawal",
        "status": "completed",
        "description": "Vendor payment",
        "external_reference": "ref-abc123",
        "fee_amount": 53,
        "source_amount": 500000,
        "destination_amount": 499947,
        "source_currency": "NGN",
        "destination_currency": "NGN",
        "exchange_rate": null,
        "created_at": "2024-01-15T10:30:00.000Z",
        "updated_at": "2024-01-15T10:30:45.000Z"
      },
      {
        "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
        "transaction_type": "deposit",
        "status": "completed",
        "description": "Inbound transfer",
        "external_reference": null,
        "fee_amount": 0,
        "source_amount": 1000000,
        "destination_amount": 1000000,
        "source_currency": "NGN",
        "destination_currency": "NGN",
        "exchange_rate": null,
        "created_at": "2024-01-14T09:00:00.000Z",
        "updated_at": "2024-01-14T09:01:00.000Z"
      }
    ],
    "totalCount": 150,
    "page": 1,
    "pageSize": 20,
    "totalPages": 8
  }
}
Use date range filters to export transaction data for specific periods. Combine with the status filter to find failed transactions that may need to be retried.

Authorizations

X-API-Key
string
header
required

Your Rolla API key

Query Parameters

currency
string

Filter by 3-letter currency code

Required string length: 3
transactionType
enum<string>

Filter by transaction type

Available options:
deposit,
withdrawal,
swap
status
enum<string>

Filter by status

Available options:
pending,
completed,
failed,
rejected,
sent
page
integer
default:1

Page number (default: 1)

Required range: x >= 1
pageSize
integer
default:20

Results per page (default: 20, max: 100)

Required range: 1 <= x <= 100
startDate
string<date>

Start date filter (YYYY-MM-DD)

endDate
string<date>

End date filter (YYYY-MM-DD)

Search term to filter transactions

Response

Transactions retrieved successfully

status
integer
Example:

200

success
boolean
Example:

true

message
string
Example:

"Transaction history retrieved successfully"

transactions
object[]
totalCount
integer

Total number of transactions

Example:

150

page
integer

Current page number

Example:

1

pageSize
integer

Results per page

Example:

20

totalPages
integer

Total number of pages

Example:

8