List Cards
curl --request GET \
--url https://api.fyatu.com/api/v3/cards \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fyatu.com/api/v3/cards"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fyatu.com/api/v3/cards', 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.fyatu.com/api/v3/cards",
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.fyatu.com/api/v3/cards"
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.fyatu.com/api/v3/cards")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3/cards")
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,
"status": 200,
"message": "Cards retrieved successfully",
"data": {
"cards": [
{
"id": "crd_8f3a2b1c4d5e6f7890abcdef12345678",
"cardholderId": "ch_1a2b3c4d5e6f7890abcdef1234567890",
"name": "JAMES WILSON",
"last4": "4829",
"maskedNumber": "****4829",
"expiryDate": "09/2028",
"brand": "MASTERCARD",
"status": "ACTIVE",
"isReloadable": true,
"createdAt": "2026-01-10 14:30:00"
},
{
"id": "crd_7e2d1c0b9a8f7654321fedcba09876543",
"cardholderId": "ch_9f8e7d6c5b4a3210fedcba9876543210",
"name": "SARAH JOHNSON",
"last4": "7156",
"maskedNumber": "****7156",
"expiryDate": "03/2029",
"brand": "MASTERCARD",
"status": "FROZEN",
"isReloadable": true,
"createdAt": "2026-01-05 09:15:00"
}
],
"pagination": {
"currentPage": 1,
"totalPages": 5,
"totalItems": 48,
"itemsPerPage": 20
}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-01-17T10:00:00+00:00"
}
}{
"success": false,
"status": 401,
"message": "Unable to identify business",
"error": {
"code": "AUTH_TOKEN_INVALID"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2026-01-05T10:30:00+00:00"
}
}Cards
List Cards
List all issued virtual and prepaid cards with pagination — filter by status, cardholder, or product. GET /cards.
GET
/
cards
List Cards
curl --request GET \
--url https://api.fyatu.com/api/v3/cards \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fyatu.com/api/v3/cards"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.fyatu.com/api/v3/cards', 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.fyatu.com/api/v3/cards",
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.fyatu.com/api/v3/cards"
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.fyatu.com/api/v3/cards")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3/cards")
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,
"status": 200,
"message": "Cards retrieved successfully",
"data": {
"cards": [
{
"id": "crd_8f3a2b1c4d5e6f7890abcdef12345678",
"cardholderId": "ch_1a2b3c4d5e6f7890abcdef1234567890",
"name": "JAMES WILSON",
"last4": "4829",
"maskedNumber": "****4829",
"expiryDate": "09/2028",
"brand": "MASTERCARD",
"status": "ACTIVE",
"isReloadable": true,
"createdAt": "2026-01-10 14:30:00"
},
{
"id": "crd_7e2d1c0b9a8f7654321fedcba09876543",
"cardholderId": "ch_9f8e7d6c5b4a3210fedcba9876543210",
"name": "SARAH JOHNSON",
"last4": "7156",
"maskedNumber": "****7156",
"expiryDate": "03/2029",
"brand": "MASTERCARD",
"status": "FROZEN",
"isReloadable": true,
"createdAt": "2026-01-05 09:15:00"
}
],
"pagination": {
"currentPage": 1,
"totalPages": 5,
"totalItems": 48,
"itemsPerPage": 20
}
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-01-17T10:00:00+00:00"
}
}{
"success": false,
"status": 401,
"message": "Unable to identify business",
"error": {
"code": "AUTH_TOKEN_INVALID"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2026-01-05T10:30:00+00:00"
}
}Overview
Retrieve a paginated list of all virtual cards issued under your application. You can filter by cardholder ID, card status, or search by card name.Query Parameters
| Parameter | Type | Description |
|---|---|---|
cardholderId | string | Filter cards by cardholder ID |
status | string | Filter by status: ACTIVE, FROZEN, SUSPENDED, TERMINATED |
scheme | string | Filter by card scheme: VISA, MASTERCARD |
search | string | Search by card name, last 4 digits, or card ID |
page | integer | Page number (default: 1) |
limit | integer | Items per page (default: 20, max: 100) |
Example Usage
<?php
$queryParams = http_build_query([
'status' => 'ACTIVE',
'scheme' => 'MASTERCARD',
'page' => 1,
'limit' => 20
]);
$response = file_get_contents(
'https://api.fyatu.com/api/v3/cards?' . $queryParams,
false,
stream_context_create([
'http' => [
'method' => 'GET',
'header' => 'Authorization: Bearer ' . $accessToken
]
])
);
$result = json_decode($response, true);
foreach ($result['data']['cards'] as $card) {
echo $card['name'] . ' - ****' . $card['last4'] . ' - ' . $card['status'] . "\n";
}
const params = new URLSearchParams({
status: 'ACTIVE',
scheme: 'MASTERCARD',
page: '1',
limit: '20'
});
const response = await fetch(`https://api.fyatu.com/api/v3/cards?${params}`, {
method: 'GET',
headers: {
'Authorization': `Bearer ${accessToken}`
}
});
const result = await response.json();
result.data.cards.forEach(card => {
console.log(`${card.name} - ****${card.last4} - ${card.status}`);
});
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | Unique card identifier |
cardholderId | string | The cardholder this card belongs to |
name | string | Name printed on the card |
last4 | string | Last 4 digits of the card number |
maskedNumber | string | Masked card number (e.g., ****4829) |
expiryDate | string | Card expiration date (MM/YYYY format) |
brand | string | Card brand: MASTERCARD or VISA |
status | string | Card status: ACTIVE, FROZEN, SUSPENDED, TERMINATED |
isReloadable | boolean | Whether the card can be funded |
createdAt | string | Card creation timestamp |
Use the
cardholderId filter to get all cards belonging to a specific cardholder. Use the search parameter to find cards by name or last 4 digits.Authorizations
JWT access token obtained from /auth/token
Query Parameters
Filter cards by cardholder ID
Filter by card status
Available options:
CREATING, ACTIVE, PROCESSING, FROZEN, SUSPENDED, TERMINATED, FAILED Search by card name, last 4 digits, or card ID
Filter by card scheme
Available options:
VISA, MASTERCARD Page number
Items per page (max 100)
Required range:
x <= 100⌘I

