example-data.com

transactions / #132

accountId
accounts/219
kind
payment
amount
-4885.1
currency
AUD
description
Loan payment
status
failed
occurredAt
createdAt

Component variants

Related

References

curl -sS \
  "https://example-data.com/api/v1/transactions/132" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/transactions/132"
);
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/132"
);
const transaction = (await res.json()) as Transaction;
import requests

res = requests.get(
    "https://example-data.com/api/v1/transactions/132"
)
transaction = res.json()
{
  "id": 132,
  "accountId": 219,
  "kind": "payment",
  "amount": -4885.1,
  "currency": "AUD",
  "description": "Loan payment",
  "status": "failed",
  "occurredAt": "2025-01-29T13:42:15.631Z",
  "createdAt": "2025-01-29T13:42:22.419Z"
}
Draftbit