transactions #1866
- accountId
- accounts/53
- kind
- fee
- amount
- -2952.36
- currency
- EUR
- description
- Late payment fee
- status
- failed
- occurredAt
- createdAt
Overview
transactions / #1866
#1866
#1866
Late payment fee
Request
curl example
curl -sS \ "https://example-data.com/api/v1/transactions/1866" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/transactions/1866" ); 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/1866"
);
const transaction = (await res.json()) as Transaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/transactions/1866"
)
transaction = res.json() Response
{
"id": 1866,
"accountId": 53,
"kind": "fee",
"amount": -2952.36,
"currency": "EUR",
"description": "Late payment fee",
"status": "failed",
"occurredAt": "2024-11-06T16:04:44.631Z",
"createdAt": "2024-11-06T16:05:05.135Z"
}