Subscriptions
- userId
-
Autumn Bartell @autumn.bartell95
- name
- Subscriptions
- categoryId
- Fitness Equipment
- amount
- 2256.29
- period
- yearly
- spent
- 2326.46
- currency
- AUD
- startsAt
- 2025-01-04
- endsAt
- —
- createdAt
Overview
budgets / #62
Subscriptions
#62
Request
curl example
curl -sS \ "https://example-data.com/api/v1/budgets/62" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/budgets/62" ); 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/62"
);
const budget = (await res.json()) as Budget; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/budgets/62"
)
budget = res.json() Response
{
"id": 62,
"userId": 58,
"name": "Subscriptions",
"categoryId": 21,
"amount": 2256.29,
"period": "yearly",
"spent": 2326.46,
"currency": "AUD",
"startsAt": "2025-01-04",
"endsAt": null,
"createdAt": "2025-11-29T04:36:41.607Z"
}