transactions #360
- accountId
- accounts/454
- kind
- withdrawal
- amount
- -1012.03
- currency
- USD
- description
- Cash withdrawal
- status
- completed
- occurredAt
- createdAt
Overview
transactions / #360
#360
#360
Cash withdrawal
Request
curl example
curl -sS \ "https://example-data.com/api/v1/transactions/360" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/transactions/360" ); 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/360"
);
const transaction = (await res.json()) as Transaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/transactions/360"
)
transaction = res.json() Response
{
"id": 360,
"accountId": 454,
"kind": "withdrawal",
"amount": -1012.03,
"currency": "USD",
"description": "Cash withdrawal",
"status": "completed",
"occurredAt": "2024-09-24T05:55:10.014Z",
"createdAt": "2024-09-24T05:55:41.285Z"
}