Get card transaction
curl --request GET \
--url https://api.fyatu.com/api/v3.20/cards/{id}/transactions/{txnId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fyatu.com/api/v3.20/cards/{id}/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.20/cards/{id}/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.20/cards/{id}/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.20/cards/{id}/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.20/cards/{id}/transactions/{txnId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3.20/cards/{id}/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": 123,
"message": "<string>",
"data": {
"transactionId": "hf_txn_01HXYZ1234ABCDEF0001",
"cardId": "crd_01HXYZ5555ABCDEF1111",
"type": "PURCHASE",
"status": "SETTLED",
"amount": 12.5,
"feeAmount": 0,
"currency": "USD",
"merchant": {
"name": "STARBUCKS #1234",
"id": "MER_STARBUCKS_001",
"city": "San Francisco",
"country": "US",
"mcc": "5812",
"mccCategory": "Eating Places, Restaurants"
},
"memo": "STARBUCKS #1234",
"isSettled": true,
"wasReversed": false,
"createdAt": "2026-05-25T14:32:00Z"
},
"meta": {
"requestId": "req_a1b2c3d4e5f6a7b8c9d0e1f2",
"platform": "Fyatu CaaS",
"timestamp": "2026-05-22T15:00:00Z"
}
}Cards
Get Card Transaction
Retrieve a single card transaction by id. GET /cards//transactions/. Requires cards:read scope.
GET
/
cards
/
{id}
/
transactions
/
{txnId}
Get card transaction
curl --request GET \
--url https://api.fyatu.com/api/v3.20/cards/{id}/transactions/{txnId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.fyatu.com/api/v3.20/cards/{id}/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.20/cards/{id}/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.20/cards/{id}/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.20/cards/{id}/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.20/cards/{id}/transactions/{txnId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3.20/cards/{id}/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": 123,
"message": "<string>",
"data": {
"transactionId": "hf_txn_01HXYZ1234ABCDEF0001",
"cardId": "crd_01HXYZ5555ABCDEF1111",
"type": "PURCHASE",
"status": "SETTLED",
"amount": 12.5,
"feeAmount": 0,
"currency": "USD",
"merchant": {
"name": "STARBUCKS #1234",
"id": "MER_STARBUCKS_001",
"city": "San Francisco",
"country": "US",
"mcc": "5812",
"mccCategory": "Eating Places, Restaurants"
},
"memo": "STARBUCKS #1234",
"isSettled": true,
"wasReversed": false,
"createdAt": "2026-05-25T14:32:00Z"
},
"meta": {
"requestId": "req_a1b2c3d4e5f6a7b8c9d0e1f2",
"platform": "Fyatu CaaS",
"timestamp": "2026-05-22T15:00:00Z"
}
}Overview
Returns a single card-to-merchant transaction by its transaction id, scoped to a card your business owns. Use this to fetch the full detail of one transaction you already have the id for (e.g. from a webhook or fromGET /cards/{id}/transactions).
The transaction must belong to the card in the path. A transaction id that exists but belongs to a different card returns
TRANSACTION_NOT_FOUND — you can’t read another card’s transactions through a card you own.Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The card ID (prefix crd_) |
txnId | string | The transaction id (as returned by the transactions list or a webhook) |
Transaction Object
Identical to the objects inGET /cards/{id}/transactions:
| Field | Type | Description |
|---|---|---|
transactionId | string | Unique transaction identifier from the card network |
cardId | string | The card ID this transaction belongs to |
type | string | Transaction type (e.g. PURCHASE, REFUND, FEE) |
status | string | SETTLED, PENDING, DECLINED, REVERSED |
amount | number | Transaction amount in card currency |
feeAmount | number | Network fee charged (if any) |
currency | string | Transaction currency (e.g. USD) |
merchant | object | Merchant details — present for purchase transactions (name, id, city, country, mcc, mccCategory) |
memo | string | Transaction memo or description |
isSettled | boolean | Whether the transaction has cleared |
wasReversed | boolean | Whether the transaction was reversed |
createdAt | string | Transaction timestamp (ISO 8601) |
Example
curl https://api.fyatu.com/api/v3.20/cards/crd_01HXYZ5555ABCDEF1111/transactions/hf_txn_01HXYZ1234ABCDEF0001 \
-H "Authorization: Bearer $FYATU_API_KEY"
const resp = await fetch(
'https://api.fyatu.com/api/v3.20/cards/crd_01HXYZ5555ABCDEF1111/transactions/hf_txn_01HXYZ1234ABCDEF0001',
{ headers: { 'Authorization': `Bearer ${process.env.FYATU_API_KEY}` } }
);
const { data } = await resp.json();
console.log(`${data.merchant?.name ?? data.memo}: $${data.amount} (${data.status})`);
import os, requests
resp = requests.get(
'https://api.fyatu.com/api/v3.20/cards/crd_01HXYZ5555ABCDEF1111/transactions/hf_txn_01HXYZ1234ABCDEF0001',
headers={'Authorization': f'Bearer {os.environ["FYATU_API_KEY"]}'}
)
txn = resp.json()['data']
print(f"{txn.get('merchant', {}).get('name', txn['memo'])}: ${txn['amount']} ({txn['status']})")
Success Response (200)
{
"success": true,
"status": 200,
"message": "Card transaction retrieved",
"data": {
"transactionId": "hf_txn_01HXYZ1234ABCDEF0001",
"cardId": "crd_01HXYZ5555ABCDEF1111",
"type": "PURCHASE",
"status": "SETTLED",
"amount": 12.50,
"feeAmount": 0.00,
"currency": "USD",
"merchant": {
"name": "STARBUCKS #1234",
"id": "MER_STARBUCKS_001",
"city": "San Francisco",
"country": "US",
"mcc": "5812",
"mccCategory": "Eating Places, Restaurants"
},
"memo": "STARBUCKS #1234",
"isSettled": true,
"wasReversed": false,
"createdAt": "2026-05-25T14:32:00Z"
},
"meta": {
"requestId": "req_01HXY123456ABCDEF",
"platform": "Fyatu CaaS",
"timestamp": "2026-05-26T10:00:00Z"
}
}
Error Codes
| Code | HTTP | Cause |
|---|---|---|
TRANSACTION_NOT_FOUND | 404 | No such transaction, or it belongs to a different card |
CARD_NOT_FOUND | 404 | Card does not exist or belongs to another business/environment |
PROVIDER_ERROR | 500 | Card network unavailable — retry with exponential back-off |
INSUFFICIENT_SCOPE | 403 | Key lacks cards:read scope |
Authorizations
API key from the FYATU CaaS portal. Pass as Authorization: Bearer <key>.
⌘I

