transactions #495
- accountId
- accounts/353
- kind
- withdrawal
- amount
- -4976.5
- currency
- GBP
- description
- Cash withdrawal
- status
- pending
- occurredAt
- createdAt
Overview
transactions / #495
#495
#495
Cash withdrawal
Request
curl example
curl -sS \ "https://example-data.com/api/v1/transactions/495" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/transactions/495" ); 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/495"
);
const transaction = (await res.json()) as Transaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/transactions/495"
)
transaction = res.json() Response
{
"id": 495,
"accountId": 353,
"kind": "withdrawal",
"amount": -4976.5,
"currency": "GBP",
"description": "Cash withdrawal",
"status": "pending",
"occurredAt": "2024-08-01T01:53:26.468Z",
"createdAt": "2024-08-01T01:53:34.930Z"
}