Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/akevalion/life_cost/llms.txt

Use this file to discover all available pages before exploring further.

Fetch the details of a single money transfer by its integer ID. The response includes the transfer’s amount, description, and the time it was created. This endpoint requires an authenticated session — unauthenticated requests are redirected to the login flow.

Endpoint

GET /money/<id>

Authentication

Required. The request must be made with an active session cookie obtained through the Google OAuth login flow. Unauthenticated requests are redirected to /google_login.

Path Parameters

id
integer
required
The unique integer ID of the MoneyTransfer record to retrieve.

Response

A JSON object representing the money transfer.
id
integer
The unique identifier of the money transfer.
amount
float
The transfer amount. Positive values represent income; negative values represent expenses.
description
string
A short human-readable description of the transfer (up to 200 characters).
created_at
string
The timestamp when the transfer was created, formatted as an ISO 8601 string (e.g. "2024-01-15T10:30:00"). The value is stored and returned in UTC.

Example Request

curl -X GET https://your-app.example.com/money/42 \
  -H "Cookie: session=<your-session-cookie>"

Example Response

{
  "id": 42,
  "amount": -35.50,
  "description": "Groceries",
  "created_at": "2024-01-15T10:30:00"
}

Error Cases

StatusCondition
302 FoundThe user is not authenticated. The client is redirected to the Google OAuth login page.
404 Not FoundNo MoneyTransfer record exists with the given id. Flask returns a standard 404 JSON/HTML error via get_or_404.

Build docs developers (and LLMs) love