Toshl Developer

List entries

Get all users entries.

GET /entries

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
since
optional
string

Return all entries that were modified since timestamp.

Format: date-time
from *
required
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 *
required
string

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

Format: date
type
optional
string

Entry types to return

Possible values: expense, income, transaction
accounts
optional
string

A comma separated list of account ids. If used only entries from the specified accounts are returned.

categories
optional
string

A comma separated list of category ids. If used only entries in the specified categories are returned.

!categories
optional
string

A comma separated list of category ids. If used only entries not in the specified categories are returned.

tags
optional
string

A comma separated list of tag ids. If used only entries with the specified tags are returned.

!tags
optional
string

A comma separated list of tag ids. If used only entries without the specified tags are returned.

locations
optional
string

A comma separated list of location ids. If used only entries entered at the specified locations are returned.

!locations
optional
string

A comma separated list of location ids. If used entries not entered at the specified locations are returned.

repeat
optional
string

Used to return only entries that are part of the specified repeat.

parent
optional
string

Used to return only entries with the same parent.

search
optional
string

Used to search entries.

include_deleted
optional
boolean

Include deleted entries.

expand
optional
boolean

If set to true the API will automatically expand repeating entries.

* denotes required field/parameter.

Request

$ curl https://api.toshl.com/entries \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl"

Response

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

[
  {
    "id": "42",
    "amount": -13.37,
    "currency": {
      "code": "USD",
      "rate": 1,
      "fixed": false
    },
    "date": "2012-09-04",
    "desc": "Entry description",
    "account": "45",
    "category": "42",
    "tags": ["42", "43"],
    "location": {
      "id": "44",
      "latitude": 46.051426,
      "longitude": 14.505966
    },
    "modified": "2012-09-04T13:55:15Z",
    "repeat": {
      "id": "41",
      "frequency": "monthly",
      "interval": 1,
      "start": "2012-09-04",
      "count": 10,
      "iteration": 1,
      "template": true
    },
    "images": [{
      "id": "43",
      "path": "https://img.toshl.com/12/1404134603-ab820800-954f-46a7-95ff-fee7d961b31f/",
      "status": "uploaded"
    }],
    "reminders": [{
      "period": "week",
      "number": 2,
      "at": "11:25"
    }],
    "completed": false
  }
]