example-data.com

transactions / #232

accountId
accounts/140
kind
transfer
amount
-3428.46
currency
JPY
description
Payoff transfer
status
pending
occurredAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/transactions/232"
)
transaction = res.json()
{
  "id": 232,
  "accountId": 140,
  "kind": "transfer",
  "amount": -3428.46,
  "currency": "JPY",
  "description": "Payoff transfer",
  "status": "pending",
  "occurredAt": "2024-11-29T12:25:02.944Z",
  "createdAt": "2024-11-29T12:25:53.611Z"
}
Draftbit