Transactions Export transactions
Export transactions
Returns the 10 newest matching transactions as a base64 file. For more rows, page through `GET /v1/transactions`. CSV columns are id, date_created, amount, currency, direction, transaction_type, status, channel, description, fee, reference, tx_hash, sending_account_id, receiving_account_id, client_reference, balance_before and balance_after.
Api-Key
Query parameters
NameDescription
customer_idaccount_idTransactions that send from or receive into this account
card_idtx_hashExact blockchain transaction hash
wallet_addressSending or receiving wallet address, not case-sensitive
channelOne or more channels, comma-separated, such as
ach,wire. See the channel values on the transaction. An unknown value returns nothing.directionPossible values:
in, outstatusOne or more of
pending, completed, failed, waiting_approval and paused, comma-separatedtransaction_typeOne or more transaction types, comma-separated. See the
transaction_type values on the transaction. An unknown value returns nothing.refundedtrue returns only failed transfers whose money came back to the source, false everything else. A refunded transfer keeps the status failed and has metadata.refunded_at. Any other value returns 400.
Possible values: true, false
start_dateFirst day, as YYYY-MM-DD. The API ignores other formats.
end_dateLast day, included, as YYYY-MM-DD. The API ignores other formats.
export_formatSend it in lower case
Possible values: csv, json
Default
"json"Response
Returns 200 OK. The file
NameDescription
dataShow 4 child attributesobject
file_contentThe file, base64-encoded
file_namecontent_typePossible values:
text/csv, application/jsontotal_recordsRows in the file, at most 10
errorErrors
| Status | Meaning |
|---|---|
| 200 | The file |
| 400 | The request failed. Every transactions error is a 400, including not-found. |
Was this page helpful? Yes No
Previous
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl --request GET \
--url 'https://api.gravv.xyz/v1/transactions/export?customer_id=bfe261a3-3630-4781-8249-6b0ab1123235&account_id=a4d83e55-435e-41c9-9a0b-dcb99f690c95&card_id=c1d2e3f4-a5b6-4890-abcd-ef1234567890&channel=bank_transfer&status=completed&transaction_type=global_remittance&start_date=2026-10-01&end_date=2026-10-13&export_format=json' \
--header 'Api-Key: <api-key>'
const response = await fetch('https://api.gravv.xyz/v1/transactions/export?customer_id=bfe261a3-3630-4781-8249-6b0ab1123235&account_id=a4d83e55-435e-41c9-9a0b-dcb99f690c95&card_id=c1d2e3f4-a5b6-4890-abcd-ef1234567890&channel=bank_transfer&status=completed&transaction_type=global_remittance&start_date=2026-10-01&end_date=2026-10-13&export_format=json', {
method: 'GET',
headers: {
'Api-Key': '<api-key>',
},
});
const data = await response.json();
console.log(response.status, data);
import requests
url = "https://api.gravv.xyz/v1/transactions/export?customer_id=bfe261a3-3630-4781-8249-6b0ab1123235&account_id=a4d83e55-435e-41c9-9a0b-dcb99f690c95&card_id=c1d2e3f4-a5b6-4890-abcd-ef1234567890&channel=bank_transfer&status=completed&transaction_type=global_remittance&start_date=2026-10-01&end_date=2026-10-13&export_format=json"
headers = {
"Api-Key": "<api-key>",
}
response = requests.get(url, headers=headers)
print(response.status_code)
print(response.json())
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://api.gravv.xyz/v1/transactions/export?customer_id=bfe261a3-3630-4781-8249-6b0ab1123235&account_id=a4d83e55-435e-41c9-9a0b-dcb99f690c95&card_id=c1d2e3f4-a5b6-4890-abcd-ef1234567890&channel=bank_transfer&status=completed&transaction_type=global_remittance&start_date=2026-10-01&end_date=2026-10-13&export_format=json", nil)
if err != nil {
panic(err)
}
req.Header.Set("Api-Key", "<api-key>")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
panic(err)
}
fmt.Println(res.Status)
fmt.Println(string(body))
}
require "net/http"
require "uri"
uri = URI("https://api.gravv.xyz/v1/transactions/export?customer_id=bfe261a3-3630-4781-8249-6b0ab1123235&account_id=a4d83e55-435e-41c9-9a0b-dcb99f690c95&card_id=c1d2e3f4-a5b6-4890-abcd-ef1234567890&channel=bank_transfer&status=completed&transaction_type=global_remittance&start_date=2026-10-01&end_date=2026-10-13&export_format=json")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
request = Net::HTTP::Get.new(uri)
request["Api-Key"] = "<api-key>"
response = http.request(request)
puts response.code
puts response.body
<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => 'https://api.gravv.xyz/v1/transactions/export?customer_id=bfe261a3-3630-4781-8249-6b0ab1123235&account_id=a4d83e55-435e-41c9-9a0b-dcb99f690c95&card_id=c1d2e3f4-a5b6-4890-abcd-ef1234567890&channel=bank_transfer&status=completed&transaction_type=global_remittance&start_date=2026-10-01&end_date=2026-10-13&export_format=json',
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Api-Key: <api-key>',
],
]);
$response = curl_exec($ch);
if ($response === false) {
throw new RuntimeException(curl_error($ch));
}
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
echo $status, PHP_EOL, $response, PHP_EOL;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.gravv.xyz/v1/transactions/export?customer_id=bfe261a3-3630-4781-8249-6b0ab1123235&account_id=a4d83e55-435e-41c9-9a0b-dcb99f690c95&card_id=c1d2e3f4-a5b6-4890-abcd-ef1234567890&channel=bank_transfer&status=completed&transaction_type=global_remittance&start_date=2026-10-01&end_date=2026-10-13&export_format=json"))
.header("Api-Key", "<api-key>")
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.statusCode());
System.out.println(response.body());
}
}
using System.Net.Http;
using System.Text;
using var client = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.gravv.xyz/v1/transactions/export?customer_id=bfe261a3-3630-4781-8249-6b0ab1123235&account_id=a4d83e55-435e-41c9-9a0b-dcb99f690c95&card_id=c1d2e3f4-a5b6-4890-abcd-ef1234567890&channel=bank_transfer&status=completed&transaction_type=global_remittance&start_date=2026-10-01&end_date=2026-10-13&export_format=json");
request.Headers.TryAddWithoutValidation("Api-Key", "<api-key>");
using var response = await client.SendAsync(request);
Console.WriteLine((int)response.StatusCode);
Console.WriteLine(await response.Content.ReadAsStringAsync());
Responseapplication/json
200400OK
{
"data": {
"file_content": "aWQsZGF0ZV9jcmVhdGVkLGFtb3VudCxjdXJyZW5jeQo=",
"file_name": "transactions_2026-10-13.csv",
"content_type": "text/csv",
"total_records": 10
},
"error": null
}
{
"data": null,
"error": "invalid request params"
}