Toshl Developer

List budgets history

Get budget history list.

GET /budgets/{id}/history

Required scope:

Parameters

id *
required
string

Budget id.

page
optional
integer

Page to display, used for pagination.

Minimum: >= 0
Default value: 0
per_page
optional
integer

Number of resource objects to return.

Minimum: >= 10
Maximum: =< 500
Default value: 200
from
optional
string

Used to define date range, in YYYY-MM-DD format.

Format: date
to *
required
string

Used to define date range, in YYYY-MM-DD format.

Format: date

* denotes required field/parameter.

Request

$ curl https://api.toshl.com/budgets/42/history?to=2017-07-31 \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl"

Response

HTTP/1.1 200 OK
Content-Type: application/json

[
  {
    "budget_id": "42",
    "from": "2013-02-01",
    "to": "2013-02-30",
    "amount": 78.4,
    "limit": 100
  },
  {
    "budget_id": "43",
    "from": "2013-03-01",
    "to": "2013-03-31",
    "amount": 54.21,
    "limit": 100
  }
]