Skip to main content
GET
/
transactions
Get Transactions
curl --request GET \
  --url https://api.rolla.xyz/api/v1/external/transactions \
  --header 'X-API-Key: <api-key>'
{
  "status": true,
  "message": "Transactions retrieved successfully",
  "data": {
    "transactions": [
      {
        "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "type": "deposit",
        "status": "pending",
        "amount": 123,
        "currency": "<string>",
        "description": "<string>",
        "created_at": "2023-11-07T05:31:56Z"
      }
    ],
    "pagination": {
      "page": 123,
      "pageSize": 123,
      "total": 123
    }
  }
}
Retrieve a paginated list of your transactions with optional filtering by status and date range.

Example Request

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

Query Parameters

ParameterTypeDescription
pageintegerPage number (default: 1)
pageSizeintegerResults per page (default: 20, max: 100)
statusstringFilter by status: pending, completed, failed
startDatestringStart date filter (ISO 8601 format)
endDatestringEnd date filter (ISO 8601 format)

Example Response

{
  "status": true,
  "message": "Transactions retrieved successfully",
  "data": {
    "transactions": [
      {
        "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
        "type": "withdrawal",
        "status": "completed",
        "amount": 500000,
        "currency": "NGN",
        "description": "Vendor payment",
        "created_at": "2024-01-15T10:30:00.000Z"
      }
    ],
    "pagination": {
      "page": 1,
      "pageSize": 20,
      "total": 150
    }
  }
}
Use date range filters to export transaction data for specific periods. Combine with 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

page
integer
default:1

Page number (default: 1)

pageSize
integer
default:20

Number of results per page (default: 20)

status
enum<string>

Filter by transaction status

Available options:
pending,
completed,
failed
startDate
string<date>

Filter transactions from this date (ISO 8601 format)

endDate
string<date>

Filter transactions until this date (ISO 8601 format)

Response

200 - application/json

Transactions retrieved successfully

status
boolean
Example:

true

message
string
Example:

"Transactions retrieved successfully"

data
object