Savings Goal
- userId
-
Ludwig Stiedemann @ludwig_stiedemann
- name
- Savings Goal
- categoryId
- Beverages
- amount
- 1394.21
- period
- monthly
- spent
- 571.19
- currency
- GBP
- startsAt
- 2025-05-23
- endsAt
- 2025-06-22
- createdAt
Overview
budgets / #135
Savings Goal
#135
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/135" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/135" ); 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/135"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/135"
)
budget = res.json() Response
{
"id": 135,
"userId": 132,
"name": "Savings Goal",
"categoryId": 32,
"amount": 1394.21,
"period": "monthly",
"spent": 571.19,
"currency": "GBP",
"startsAt": "2025-05-23",
"endsAt": "2025-06-22",
"createdAt": "2025-06-01T08:52:45.005Z"
}