example-data.com

accounts / #102

userId
Hermina West @hermina.west3
name
Roth IRA
type
investment
balance
231479.5
currency
JPY
isActive
true
createdAt

Component variants

Related

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

const res = await fetch(
  "https://example-data.com/api/v1/accounts/102"
);
const account = (await res.json()) as Account;
import requests

res = requests.get(
    "https://example-data.com/api/v1/accounts/102"
)
account = res.json()
{
  "id": 102,
  "userId": 51,
  "name": "Roth IRA",
  "type": "investment",
  "balance": 231479.5,
  "currency": "JPY",
  "isActive": true,
  "createdAt": "2024-09-27T18:18:32.144Z"
}
Draftbit