transactions #632
- accountId
- accounts/37
- kind
- fee
- amount
- -938.65
- currency
- CNY
- description
- Monthly maintenance fee
- status
- cancelled
- occurredAt
- createdAt
Overview
transactions / #632
Request
curl example
curl -sS \ "https://example-data.com/api/v1/transactions/632" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/transactions/632" ); 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/632"
);
const transaction = (await res.json()) as Transaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/transactions/632"
)
transaction = res.json() Response
{
"id": 632,
"accountId": 37,
"kind": "fee",
"amount": -938.65,
"currency": "CNY",
"description": "Monthly maintenance fee",
"status": "cancelled",
"occurredAt": "2024-11-01T02:37:05.624Z",
"createdAt": "2024-11-01T02:37:21.486Z"
}