Show a single budget with its targets and progress
GET
/budgets/{id}
const url = 'http://localhost:8000/api/v1/budgets/1';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8000/api/v1/budgets/1 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
integer
Responses
Section titled “ Responses ”Successful operation
Media type application/json
object
id
integer
owner_id
integer
owner_type
string
name
string
slug
string
description
string
amount
number format: float
currency
string
period_type
string
start_date
string format: date
end_date
string format: date
rollover_enabled
boolean
threshold_percent
integer
forecast_alerts_enabled
boolean
is_active
boolean
targets
Array<object>
object
type
string
id
integer
client_generated_id
string
name
string
progress
object
period_start
string format: date
period_end
string format: date
limit
number format: float
gross_spent
number format: float
refunds
number format: float
net_spent
number format: float
rollover_in
number format: float
effective_limit
number format: float
remaining
number format: float
percent_used
integer
projected_spend
number format: float
status
string
client_generated_id
string
last_synced_at
string format: date-time
created_at
string format: date-time
updated_at
string format: date-time
deleted_at
string format: date-time
Example
{ "owner_type": "App\\Models\\User", "currency": "USD", "period_type": "weekly", "threshold_percent": 80, "targets": [ { "type": "category" } ], "progress": { "status": "on_track" }}Budget not found