Student Loan
- userId
-
Jennifer Hoeger @jennifer.hoeger
- name
- Student Loan
- type
- loan
- balance
- -499545.49
- currency
- CNY
- isActive
- true
- createdAt
Overview
accounts / #241
Student Loan
#241
Request
curl example
curl -sS \ "https://example-data.com/api/v1/accounts/241" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/accounts/241" ); 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/241"
);
const account = (await res.json()) as Account; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/accounts/241"
)
account = res.json() Response
{
"id": 241,
"userId": 119,
"name": "Student Loan",
"type": "loan",
"balance": -499545.49,
"currency": "CNY",
"isActive": true,
"createdAt": "2024-06-16T16:19:45.682Z"
}