List accounts
Get all users accounts.
GET /accounts
Required scope:
- accounts:r
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 accounts that were modified since timestamp. Format:date-time |
status optional string
|
Return only accounts with a specific status. Possible values:active, inactive, archived |
include_deleted optional boolean
|
Include deleted accounts. |
ids optional string
|
A comma separated list of account ids to return. |
* denotes required field/parameter.
Request
$ curl https://api.toshl.com/accounts \ -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl"
Response
HTTP/1.1 200 OK
Content-Type: application/json
[
{
"id": "42",
"name": "Tesla model S",
"balance": 3000,
"initial_balance": 3000,
"currency": {
"code": "USD",
"rate": 1,
"fixed": false
},
"status": "active",
"order": 0,
"modified": "2012-09-04T13:55:15Z"
}
]