transactions #1894
- accountId
- accounts/374
- kind
- payment
- amount
- -3227.63
- currency
- USD
- description
- Credit card payment
- status
- pending
- occurredAt
- createdAt
Overview
transactions / #1894
Request
curl example
curl -sS \ "https://example-data.com/api/v1/transactions/1894" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/transactions/1894" ); const transaction = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/transactions.d.ts https://example-data.com/types/transactions.d.ts
import type { Transaction } from "./types/transactions";
const res = await fetch(
"https://example-data.com/api/v1/transactions/1894"
);
const transaction = (await res.json()) as Transaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/transactions/1894"
)
transaction = res.json() Response
{
"id": 1894,
"accountId": 374,
"kind": "payment",
"amount": -3227.63,
"currency": "USD",
"description": "Credit card payment",
"status": "pending",
"occurredAt": "2025-05-26T15:59:34.373Z",
"createdAt": "2025-05-26T16:00:08.132Z"
}