Spendable Endpoint
const url = 'https://example.com/api/v1/budget/spendable?liquidity_horizon=immediate';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/budget/spendable?liquidity_horizon=immediate'What is left of the liquid pool until the end of this month, after planned expenses still to come and the remaining budget headroom.
liquidity_horizon (repeatable, at most 4) selects the pooled accounts. The components add
up to spendable, which can be negative. One bounded object, no pagination. Read-only.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
What is left of the liquid pool until the end of the current month, returned by
GET /api/v1/budget/spendable – a single bounded object, not a list. Money values are
decimal strings with two places; spendable is the exact sum of the component amounts
and is never clamped, so it can be negative. Income still to come this month (planned, or
recorded with a later date) is reported apart in expected_income and never changes
spendable.
object
One row of the spendable breakdown. Rows add up exactly to SpendableResponse.spendable. kind is a plain string so a client that does not know a future kind can still render the row from its label.
object
Example
{ "liquidity_horizons": [ "immediate" ]}Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}