Toshl Developer

List budgets history

Get budget history list.

GET /budgets/{id}/history

Required scope:

Parameters

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. To filter by date both from and to must be set.

Format: date
to
optional
string

Used to define date range, in YYYY-MM-DD format. To filter by date both from and to must be set.

Format: date

Request

$ curl https://api.toshl.com/budgets/42/history \
  -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
  }
]