Primary Checking
- userId
-
Fritz Skiles @fritz_skiles
- name
- Primary Checking
- type
- checking
- balance
- 16812.35
- currency
- CAD
- isActive
- true
- createdAt
Overview
accounts / #296
Primary Checking
#296
Request
curl example
curl -sS \ "https://example-data.com/api/v1/accounts/296" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/accounts/296" ); const account = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/accounts.d.ts https://example-data.com/types/accounts.d.ts
import type { Account } from "./types/accounts";
const res = await fetch(
"https://example-data.com/api/v1/accounts/296"
);
const account = (await res.json()) as Account; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/accounts/296"
)
account = res.json() Response
{
"id": 296,
"userId": 144,
"name": "Primary Checking",
"type": "checking",
"balance": 16812.35,
"currency": "CAD",
"isActive": true,
"createdAt": "2024-12-08T07:45:55.156Z"
}