Travel
- userId
-
Oma Franecki-Johnson @oma.franecki-johnson
- name
- Travel
- categoryId
- —
- amount
- 1361.14
- period
- monthly
- spent
- 928.49
- currency
- GBP
- startsAt
- 2024-11-03
- endsAt
- —
- createdAt
Overview
budgets / #246
Travel
#246
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/246" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/246" ); const budget = await res.json();
TypeScript example
// Download once: mkdir -p types && curl -o types/budgets.d.ts https://example-data.com/types/budgets.d.ts
import type { Budget } from "./types/budgets";
const res = await fetch(
"https://example-data.com/api/v1/budgets/246"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/246"
)
budget = res.json() Response
{
"id": 246,
"userId": 242,
"name": "Travel",
"categoryId": null,
"amount": 1361.14,
"period": "monthly",
"spent": 928.49,
"currency": "GBP",
"startsAt": "2024-11-03",
"endsAt": null,
"createdAt": "2025-08-07T17:28:10.613Z"
}