example-data.com

accounts / #31

userId
Casimir Smitham @casimir_smitham35
name
Roth IRA
type
investment
balance
47634
currency
AUD
isActive
true
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/accounts/31"
)
account = res.json()
{
  "id": 31,
  "userId": 16,
  "name": "Roth IRA",
  "type": "investment",
  "balance": 47634,
  "currency": "AUD",
  "isActive": true,
  "createdAt": "2024-09-07T17:01:16.186Z"
}
Draftbit