example-data.com

accounts / #406

userId
Kennith Hahn @kennith.hahn
name
Petty Cash
type
other
balance
14031.23
currency
GBP
isActive
true
createdAt

Component variants

Related

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

res = requests.get(
    "https://example-data.com/api/v1/accounts/406"
)
account = res.json()
{
  "id": 406,
  "userId": 201,
  "name": "Petty Cash",
  "type": "other",
  "balance": 14031.23,
  "currency": "GBP",
  "isActive": true,
  "createdAt": "2024-05-28T18:29:14.775Z"
}
Draftbit