cURL
curl --request GET \ --url https://api.ledger.so/v1/transactions/{id} \ --header 'Authorization: Bearer <token>'
{ "ok": true, "data": { "id": "txn_pqr678", "customerId": "cus_abc123", "type": "card_spend", "status": "pending", "amount": 42.5, "currency": "USD", "createdAt": "2025-01-15T13:30:00Z", "merchantName": "Coffee Shop" } }
Retrieves a single transaction by ID.
API key passed as a Bearer token. Format: ld_<env>_<prefix>_<secret> where <env> is test or live.
ld_<env>_<prefix>_<secret>
<env>
test
live
The transaction ID (prefixed with txn_).
txn_
"txn_pqr678"
The requested transaction
Indicates the request was successful.
Show child attributes