Customer transactions
curl --request GET \
--url https://api.cartevo.co/api/v1/customers/{id}/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cartevo.co/api/v1/customers/{id}/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cartevo.co/api/v1/customers/{id}/transactions', 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.cartevo.co/api/v1/customers/{id}/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.cartevo.co/api/v1/customers/{id}/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.cartevo.co/api/v1/customers/{id}/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cartevo.co/api/v1/customers/{id}/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "Data retrieved successfully",
"data": [
{
"id": "7d1cdfa3-9904-4a17-bce5-092554170c0e",
"category": "CARD",
"type": "FUND",
"amount": 50,
"status": "SUCCESS",
"description": "Card funding: **** **** **** 5407",
"created_at": "2023-11-07T05:31:56Z",
"card": {
"id": "91b3c6d6-111b-44da-9f81-16f019bebe8c",
"status": "ACTIVE",
"balance": 0.45,
"currency": "USD",
"number": "tkAlsp_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2YWx1ZSI6IjUzNjAyNTI0ODM0NjU0MDciLCJpYXQiOjE3NjExNDg5NzR9.7sNid1b1pxmkpseiCR45E8Xj9hdmenZDovBcjVatBF0",
"masked_pan": "**** **** **** 5407",
"cvv": "tkAlsp_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2YWx1ZSI6Ijg1NyIsImlhdCI6MTc2MTE0ODk3NH0.K7YHl0nzZTsScjUma_G5fyxYZFNnK-2SczstVtdMK1A",
"expiry_month": 10,
"expiry_year": 28,
"is_virtual": true,
"is_physical": false,
"created_at": "2023-11-07T05:31:56Z"
},
"customer": {
"id": "4d4dad81-7899-4612-a9f6-133ce56a4507",
"email": "customer@example.com",
"first_name": "John",
"last_name": "Doe"
}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 15,
"totalPages": 1
}
}Customers
List Customer Transactions
Retrieve all card-related transactions for a single customer across every card they hold.
GET
/
customers
/
{id}
/
transactions
Customer transactions
curl --request GET \
--url https://api.cartevo.co/api/v1/customers/{id}/transactions \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cartevo.co/api/v1/customers/{id}/transactions"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cartevo.co/api/v1/customers/{id}/transactions', 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.cartevo.co/api/v1/customers/{id}/transactions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.cartevo.co/api/v1/customers/{id}/transactions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.cartevo.co/api/v1/customers/{id}/transactions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cartevo.co/api/v1/customers/{id}/transactions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"statusCode": 200,
"message": "Data retrieved successfully",
"data": [
{
"id": "7d1cdfa3-9904-4a17-bce5-092554170c0e",
"category": "CARD",
"type": "FUND",
"amount": 50,
"status": "SUCCESS",
"description": "Card funding: **** **** **** 5407",
"created_at": "2023-11-07T05:31:56Z",
"card": {
"id": "91b3c6d6-111b-44da-9f81-16f019bebe8c",
"status": "ACTIVE",
"balance": 0.45,
"currency": "USD",
"number": "tkAlsp_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2YWx1ZSI6IjUzNjAyNTI0ODM0NjU0MDciLCJpYXQiOjE3NjExNDg5NzR9.7sNid1b1pxmkpseiCR45E8Xj9hdmenZDovBcjVatBF0",
"masked_pan": "**** **** **** 5407",
"cvv": "tkAlsp_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2YWx1ZSI6Ijg1NyIsImlhdCI6MTc2MTE0ODk3NH0.K7YHl0nzZTsScjUma_G5fyxYZFNnK-2SczstVtdMK1A",
"expiry_month": 10,
"expiry_year": 28,
"is_virtual": true,
"is_physical": false,
"created_at": "2023-11-07T05:31:56Z"
},
"customer": {
"id": "4d4dad81-7899-4612-a9f6-133ce56a4507",
"email": "customer@example.com",
"first_name": "John",
"last_name": "Doe"
}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 15,
"totalPages": 1
}
}Overview
GET /customers/{id}/transactions returns the union of card transactions across every card owned by the specified customer — fundings, withdrawals, merchant authorizations, settlements, refunds, and cross-border charges. The response is paginated.
To filter to a single card, use GET /cards/{id}/transactions instead.
When to use it
- Render a customer’s full activity timeline.
- Compute a customer’s total spend across all their cards.
- Audit a customer for unusual activity.
Prerequisites
- The customer must belong to your company.
Request
Headers
| Name | Required | Description |
|---|---|---|
Authorization | Yes | Bearer <access_token> |
Path parameters
| Name | Type | Description |
|---|---|---|
id | string | Customer ID (UUID). |
Query parameters
| Name | Type | Default | Description |
|---|---|---|---|
page | integer | 1 | 1-indexed page number. |
limit | integer | 10 | Items per page (max ~100). |
Response
200 — Success
{
"success": true,
"statusCode": 200,
"message": "12 items retrieved successfully",
"data": [
{
"id": "txn_3f8a9b2c4d6e7f8a9b0c1d2e",
"category": "CARD",
"type": "AUTHORIZATION",
"status": "SUCCESS",
"amount": 12.5,
"currency": "USD",
"description": "Amazon.com - Seattle, US",
"created_at": "2026-05-09T09:42:11.123Z",
"card": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"masked_pan": "**** **** **** 1111",
"brand": "VISA"
}
}
],
"meta": {
"page": 1,
"limit": 10,
"total": 12,
"totalPages": 2
}
}
GET /cards/{id}/transactions — see that page for a full field reference. The only difference is the customer block is not included (you already know which customer you queried).
Error responses
| Status | Trigger |
|---|---|
404 | Customer does not exist or belongs to another company. |
Code examples
cURL
curl -G https://api.cartevo.co/api/v1/customers/8d4f2a1b-5c3e-4d7f-9a6b-2e1c8f9d0a3b/transactions \
-H "Authorization: Bearer $TOKEN" \
--data-urlencode "page=1" \
--data-urlencode "limit=50"
Related
GET /cards/{id}/transactions— same data filtered to a single card.- Webhooks → Transaction events — receive new transactions in real time.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.