transactions #2007
- accountId
- accounts/256
- kind
- fee
- amount
- -4917.28
- currency
- EUR
- description
- Late payment fee
- status
- failed
- occurredAt
- createdAt
Overview
transactions / #2007
#2007
#2007
Late payment fee
Request
curl example
curl -sS \ "https://example-data.com/api/v1/transactions/2007" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/transactions/2007" ); 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/2007"
);
const transaction = (await res.json()) as Transaction; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/transactions/2007"
)
transaction = res.json() Response
{
"id": 2007,
"accountId": 256,
"kind": "fee",
"amount": -4917.28,
"currency": "EUR",
"description": "Late payment fee",
"status": "failed",
"occurredAt": "2024-05-29T09:37:01.109Z",
"createdAt": "2024-05-29T09:37:19.640Z"
}