Download Card Statement
curl --request GET \
--url https://api.fyatu.com/api/v3/cards/{cardId}/statement \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fyatu.com/api/v3/cards/{cardId}/statement"
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/{cardId}/statement', 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/{cardId}/statement",
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/{cardId}/statement"
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/{cardId}/statement")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3/cards/{cardId}/statement")
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"<string>"{
"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"
}
}{
"success": false,
"status": 404,
"message": "Wallet not found",
"error": {
"code": "RESOURCE_NOT_FOUND"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2026-01-05T10:30:00+00:00"
}
}Cards
Download Card Statement
Download a PDF statement for a card with transaction history, business branding, and card details. GET /cards//statement.
GET
/
cards
/
{cardId}
/
statement
Download Card Statement
curl --request GET \
--url https://api.fyatu.com/api/v3/cards/{cardId}/statement \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fyatu.com/api/v3/cards/{cardId}/statement"
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/{cardId}/statement', 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/{cardId}/statement",
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/{cardId}/statement"
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/{cardId}/statement")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3/cards/{cardId}/statement")
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"<string>"{
"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"
}
}{
"success": false,
"status": 404,
"message": "Wallet not found",
"error": {
"code": "RESOURCE_NOT_FOUND"
},
"meta": {
"requestId": "req_abc123",
"timestamp": "2026-01-05T10:30:00+00:00"
}
}Overview
Generate a PDF statement for a card. The statement is branded with your company name and includes a cardholder information panel, card details, and the card’s transaction history for the requested period. The endpoint returns the PDF directly in the response body (Content-Type: application/pdf,
Content-Disposition: attachment) with HTTP 200. Save the response bytes to a file.
Endpoint
GET /api/v3/cards/{cardId}/statement
cards:read
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
cardId | string | Yes | Unique card identifier |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
from | string | No | Start date (YYYY-MM-DD). Defaults to card creation date. |
to | string | No | End date (YYYY-MM-DD). Defaults to today. |
Response
Responds with HTTP200 and the PDF file itself in the body (Content-Type: application/pdf,
Content-Disposition: attachment; filename="statement_<scheme>_<name>_<cardId>.pdf"). Write the
response bytes straight to a file.
Statement Contents
The generated PDF includes:- Header — your business name and a “CARD STATEMENT” label on a branded band
- Statement Period — the
from–todate range covered - Cardholder Information — cardholder name and billing address
- Card Details — masked card number, card brand, card status, currency
- Transaction History — a table of transactions in the period with Date, Description, Debit (USD) and Credit (USD) columns
- Footer — an automated-statement disclaimer
Example Usage
<?php
$cardId = 'CRD678A3B4C5D6E7';
// Download statement for a specific date range
$url = "https://api.fyatu.com/api/v3/cards/{$cardId}/statement?from=2026-03-01&to=2026-03-31";
$response = file_get_contents($url, false, stream_context_create([
'http' => [
'method' => 'GET',
'header' => 'Authorization: Bearer ' . $accessToken,
]
]));
// Save to file
file_put_contents("card_statement_{$cardId}.pdf", $response);
const cardId = 'CRD678A3B4C5D6E7';
const response = await fetch(
`https://api.fyatu.com/api/v3/cards/${cardId}/statement?from=2026-03-01&to=2026-03-31`,
{
headers: {
'Authorization': `Bearer ${accessToken}`,
}
}
);
const buffer = await response.arrayBuffer();
fs.writeFileSync(`card_statement_${cardId}.pdf`, Buffer.from(buffer));
Error Responses
Card Not Found (404)
{
"success": false,
"status": 404,
"message": "Card not found",
"error": { "code": "NOT_FOUND" }
}
Card Still Provisioning (202)
{
"success": false,
"status": 202,
"message": "Card is still being provisioned",
"error": { "code": "CARD_PROVISIONING" }
}
The statement uses your business branding from Business Settings (logo, colors, company name and address). Make sure to configure your branding for a professional white-labeled statement.
If no date range is specified, the statement covers the entire card lifetime from creation date to today.
Authorizations
JWT access token obtained from /auth/token
Path Parameters
Card ID
Query Parameters
Start date (YYYY-MM-DD). Defaults to card creation date.
Example:
"2026-03-01"
End date (YYYY-MM-DD). Defaults to today.
Example:
"2026-03-31"
Response
PDF statement file
The response is of type file.

