Skip to main content
GET
/
v1
/
transactions
/
{transactionId}
Get transaction
curl --request GET \
  --url https://api.ledger.so/v1/transactions/{transactionId} \
  --header 'Api-Key: <api-key>'
{
  "id": "<string>",
  "cardId": "<string>",
  "amount": 123,
  "currency": "<string>",
  "status": "pending",
  "createdAt": 123,
  "agentId": "<string>",
  "userId": "<string>",
  "authorizedAmount": 123,
  "localAmount": 123,
  "localCurrency": "<string>",
  "merchant": {
    "name": "<string>",
    "id": "<string>",
    "category": "<string>",
    "categoryCode": "<string>",
    "city": "<string>",
    "country": "<string>",
    "enrichedName": "<string>",
    "enrichedIcon": "<string>",
    "enrichedCategory": "<string>"
  },
  "declinedReason": "<string>",
  "attestationStatus": "attested",
  "notes": "<string>",
  "tags": [
    "<string>"
  ],
  "category": "<string>",
  "receipt": {
    "hasReceipt": true,
    "mimeType": "<string>",
    "uploadedAt": 123
  },
  "authorizedAt": 123,
  "postedAt": 123,
  "updatedAt": 123
}

Authorizations

Api-Key
string
header
required

API key for authentication. Get your key from the Dashboard.

Path Parameters

transactionId
string
required

The transaction ID

Response

Transaction details

id
string
required
cardId
string
required
amount
integer
required

Amount in cents

currency
string
required
status
enum<string>
required
Available options:
pending,
completed,
declined,
reversed
createdAt
integer
required
agentId
string
userId
string
authorizedAmount
integer
localAmount
integer

Amount in local currency

localCurrency
string
merchant
object
declinedReason
string
attestationStatus
enum<string>
Available options:
attested,
unattested,
stale
notes
string

User-provided notes about the transaction

tags
string[]

User-assigned tags for categorization

category
string

User-assigned category

receipt
object
authorizedAt
integer
postedAt
integer
updatedAt
integer