GET /api/budgets
Show list of the budgets user- and company-specific

Returns list of the budgets of the user in the specific company

Supported Formats

json

Examples

[
  {
    "id": 1,
    "expense_account_id": 1,
    "user_id": 1,
    "approver_id": 1,
    "name": "Travel Budget",
    "start_date": "28-11-2022",
    "end_date": "28-12-2022",
    "amount": "20.00",
    "state": "approved"
  }
] 

Params

Param name Description
page
optional

Page number

Validations:

  • Must be a Integer

per_page
optional

Number of records per page. Default: 30

Validations:

  • Must be a Integer


POST /api/budgets
Create budget

Create budget


PUT /api/budgets/:id
Update budget

Update budget


DELETE /api/budgets/:id
Delete budget

Params

Param name Description
id
required

Budget ID

Validations:

  • Must be a Integer