example-data.com

transactions / #6

accountId
accounts/406
kind
withdrawal
amount
-4032.21
currency
GBP
description
ATM withdrawal
status
failed
occurredAt
createdAt

Component variants

Related

References

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

res = requests.get(
    "https://example-data.com/api/v1/transactions/6"
)
transaction = res.json()
{
  "id": 6,
  "accountId": 406,
  "kind": "withdrawal",
  "amount": -4032.21,
  "currency": "GBP",
  "description": "ATM withdrawal",
  "status": "failed",
  "occurredAt": "2024-08-22T19:29:06.094Z",
  "createdAt": "2024-08-22T19:29:40.858Z"
}
Draftbit