Skip to main content
GET
/
v1
/
transactions
/
{id}
Get a transaction
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"
  }
}

Authorizations

Authorization
string
header
required

API key passed as a Bearer token. Format: ld_<env>_<prefix>_<secret> where <env> is test or live.

Path Parameters

id
string
required

The transaction ID (prefixed with txn_).

Example:

"txn_pqr678"

Response

The requested transaction

ok
boolean
required

Indicates the request was successful.

data
object