Export Transactions
curl --request GET \
--url https://api.rolla.xyz/api/v1/external/wallet/transactions/export \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.rolla.xyz/api/v1/external/wallet/transactions/export"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.rolla.xyz/api/v1/external/wallet/transactions/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rolla.xyz/api/v1/external/wallet/transactions/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rolla.xyz/api/v1/external/wallet/transactions/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rolla.xyz/api/v1/external/wallet/transactions/export")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rolla.xyz/api/v1/external/wallet/transactions/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 200,
"message": "Transactions exported successfully",
"success": true,
"data": {
"url": "https://fpqdjdeslwryrsertmji.supabase.co/storage/v1/object/sign/transaction_documents/exports/4f7d3522-3a52-4402-8a0e-f1bd041c3eec/1774432456044.csv?token=eyJr",
"format": "csv",
"totalRecords": 317,
"exportedRecords": 317
}
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}{
"status": 404,
"message": "No transactions found for the selected filters"
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}Transactions & Statements
Export Transactions
Builds a CSV of the matching transactions and returns a signed link to it. The response is JSON — the file itself is fetched from data.url, which expires after one hour. Takes the same filters as the transaction listing, without paging; at most 10,000 rows are exported.
GET
/
wallet
/
transactions
/
export
Export Transactions
curl --request GET \
--url https://api.rolla.xyz/api/v1/external/wallet/transactions/export \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.rolla.xyz/api/v1/external/wallet/transactions/export"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.rolla.xyz/api/v1/external/wallet/transactions/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rolla.xyz/api/v1/external/wallet/transactions/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rolla.xyz/api/v1/external/wallet/transactions/export"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rolla.xyz/api/v1/external/wallet/transactions/export")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rolla.xyz/api/v1/external/wallet/transactions/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 200,
"message": "Transactions exported successfully",
"success": true,
"data": {
"url": "https://fpqdjdeslwryrsertmji.supabase.co/storage/v1/object/sign/transaction_documents/exports/4f7d3522-3a52-4402-8a0e-f1bd041c3eec/1774432456044.csv?token=eyJr",
"format": "csv",
"totalRecords": 317,
"exportedRecords": 317
}
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}{
"status": 404,
"message": "No transactions found for the selected filters"
}{
"status": 400,
"message": "Validation failed",
"code": "ACCOUNT_RESTRICTED",
"errors": [
{
"path": [
"amount"
],
"message": "amount must be a whole number of smallest currency units (e.g. cents)"
}
]
}Build a CSV of your wallet transactions and get a signed link to it. The response is JSON; the
file itself is fetched from
The file has one header row and these columns:
data.url. Takes the same filters as the transaction list endpoint,
without paging.
Example Request
curl -X GET "https://api.rolla.xyz/api/v1/external/wallet/transactions/export?currency=NGN&startDate=2024-01-01&endDate=2024-01-31" \
-H "X-API-Key: your_api_key_here"
Query Parameters
| Parameter | Type | Description |
|---|---|---|
currency | string | Filter by source currency code |
transactionType | string | Filter by type: deposit, withdrawal, swap, card_funding, payin, fee |
status | string | Filter by status: pending, completed, failed, rejected, sent, negotiating, cancelled |
startDate | string | Inclusive start (YYYY-MM-DD) |
endDate | string | Inclusive end (YYYY-MM-DD) |
search | string | Case-insensitive substring match on external_reference |
Example Response
{
"status": 200,
"message": "Transactions exported successfully",
"success": true,
"data": {
"url": "https://fpqdjdeslwryrsertmji.supabase.co/storage/v1/object/sign/transaction_documents/exports/4f7d3522-3a52-4402-8a0e-f1bd041c3eec/1774432456044.csv?token=eyJr",
"format": "csv",
"totalRecords": 317,
"exportedRecords": 317
}
}
| Field | Description |
|---|---|
url | Signed download link for the CSV |
format | Always csv |
totalRecords | How many transactions matched the filters |
exportedRecords | How many were written to the file — the lower of totalRecords and 10,000 |
truncated | Present and true only when more than 10,000 transactions matched and the file was cut short |
id, transaction_type, status,
description, external_reference, fee_amount, source_amount, destination_amount,
source_currency, destination_currency, exchange_rate, created_at, updated_at.
Amounts are in minor units.
Use
startDate and endDate to export transactions for a specific period, such as a monthly reconciliation report.The
url is a signed download link that expires after 1 hour. Download the file promptly after receiving the response.If no transactions match the selected filters, the endpoint returns a
404 instead of an empty file:{
"status": 404,
"message": "No transactions found for the selected filters"
}
Authorizations
Your Rolla API key
Query Parameters
Filter by source currency.
Required string length:
3 - 4Example:
"NGN"
Filter by type.
Available options:
deposit, withdrawal, swap, card_funding, payin, fee Example:
"withdrawal"
Filter by status.
Available options:
pending, completed, failed, rejected, sent, negotiating, cancelled Example:
"completed"
Inclusive start, YYYY-MM-DD.
Example:
"2024-01-01"
Inclusive end, YYYY-MM-DD.
Example:
"2024-01-31"
Match on external reference, case-insensitive substring.
Example:
"ref-abc"