example-data.com

transactions / #4

accountId
accounts/119
kind
interest
amount
2754.46
currency
JPY
description
Interest charge
status
failed
occurredAt
createdAt

Component variants

Related

References

curl -sS \
  "https://example-data.com/api/v1/transactions/4" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/transactions/4"
);
const transaction = await res.json();
import type { Transaction } from "https://example-data.com/types/transactions.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/transactions/4"
);
const transaction = (await res.json()) as Transaction;
import requests

res = requests.get(
    "https://example-data.com/api/v1/transactions/4"
)
transaction = res.json()
{
  "id": 4,
  "accountId": 119,
  "kind": "interest",
  "amount": 2754.46,
  "currency": "JPY",
  "description": "Interest charge",
  "status": "failed",
  "occurredAt": "2025-01-11T04:42:45.200Z",
  "createdAt": "2025-01-11T04:43:18.054Z"
}
Draftbit