Get Card Transaction
curl --request GET \
--url https://api.fyatu.com/api/v3/cards/{cardId}/transactions/{txnId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fyatu.com/api/v3/cards/{cardId}/transactions/{txnId}"
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}/transactions/{txnId}', 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}/transactions/{txnId}",
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}/transactions/{txnId}"
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}/transactions/{txnId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3/cards/{cardId}/transactions/{txnId}")
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": "Transaction retrieved successfully",
"data": {}
}Cards
Get Card Transaction
Retrieve a single card transaction by id. GET /cards//transactions/.
GET
/
cards
/
{cardId}
/
transactions
/
{txnId}
Get Card Transaction
curl --request GET \
--url https://api.fyatu.com/api/v3/cards/{cardId}/transactions/{txnId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fyatu.com/api/v3/cards/{cardId}/transactions/{txnId}"
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}/transactions/{txnId}', 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}/transactions/{txnId}",
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}/transactions/{txnId}"
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}/transactions/{txnId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3/cards/{cardId}/transactions/{txnId}")
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": "Transaction retrieved successfully",
"data": {}
}Overview
Returns one card transaction by its id, scoped to a card your business owns. Use it when you already hold a transaction id — from a webhook, or from Get Card Transactions — and want its detail without paging the list. The object returned is identical in shape to one entry of that list, so code that renders a transaction works with either endpoint.The transaction must belong to the card in the path. A transaction id that exists but sits on
a different card returns
404 — you cannot read another card’s transactions through a card
you own.Path Parameters
| Parameter | Type | Description |
|---|---|---|
cardId | string | The unique card identifier |
txnId | string | The transaction identifier |
Example Usage
curl https://api.fyatu.com/api/v3/cards/{cardId}/transactions/{txnId} \
-H "Authorization: Bearer $ACCESS_TOKEN"
<?php
$cardId = 'crd_8f3a2b1c4d5e6f7890abcdef12345678';
$txnId = 'TXN8H2K9L4M6N1';
$ch = curl_init("https://api.fyatu.com/api/v3/cards/{$cardId}/transactions/{$txnId}");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer {$accessToken}"],
]);
$transaction = json_decode(curl_exec($ch), true)['data'];
curl_close($ch);
const res = await fetch(
`https://api.fyatu.com/api/v3/cards/${cardId}/transactions/${txnId}`,
{ headers: { Authorization: `Bearer ${accessToken}` } }
);
const { data: transaction } = await res.json();
import requests
r = requests.get(
f"https://api.fyatu.com/api/v3/cards/{card_id}/transactions/{txn_id}",
headers={"Authorization": f"Bearer {access_token}"},
)
transaction = r.json()["data"]
Response
{
"success": true,
"status": 200,
"message": "Transaction retrieved successfully",
"data": {
"id": "TXN8H2K9L4M6N1",
"reference": "FND6A8CB4646CFC0",
"type": "DEBIT",
"amount": 12.50,
"currency": "USD",
"merchant": "Meta Platforms Ireland",
"logo": null,
"status": "COMPLETED",
"description": "Meta Ads",
"category": "Card Charge",
"createdAt": "2026-01-15 10:30:00",
"references": {
"authorizationCode": "0eaf73d7-ee43-4fc1-9f5b-dabcf2044259",
"rrn": "623015440030",
"merchantId": "RC6HIN7BS6WLIBF",
"network": "MASTERCARD",
"maskedPan": "XXXXXXXXXXXX5740",
"authorizationAmount": 12.50,
"authorizationCurrency": "USD"
}
}
}
Fields
| Field | Type | Description |
|---|---|---|
id | string | Transaction identifier — the same id webhooks carry as reference |
reference | string | Provider reference the operation carried on the card (its clientReference) |
type | string | DEBIT for spend and fees, CREDIT for funding, refunds and reversals |
amount | number | Transaction amount |
currency | string | Currency of the transaction |
merchant | string | Merchant name, or a description of the operation for funding and fees |
status | string | COMPLETED, PENDING, FAILED, REVERSED or DECLINED |
description | string | Narration from the merchant or the network |
category | string | What kind of transaction it is, e.g. Card Charge, Cross-border Fee |
createdAt | string | When the transaction occurred |
references | object | Network identifiers for tracing the payment — see References |
Errors
| Status | Meaning |
|---|---|
401 | The access token is missing or invalid |
404 | The card does not exist, is not yours, or the transaction is not on that card |
503 | Card services are temporarily unavailable — retry shortly |
Authorizations
JWT access token obtained from /auth/token
Path Parameters
The unique card identifier
The transaction identifier

