Create export
Create a new export.
POST /exports
Required scope:
- entries:r
- budgets:r
- accounts:r
- categories:r
- tags:r
Parameters
resources optional array
|
An expenses, incomes, budgets, summary, attachments, attachments_grid, balances |
formats optional array
|
An csv, xls, pdf, ofx |
filters optional object
|
Export filter settings (accounts, categories, tags …) |
accounts optional array
|
An |
!accounts optional array
|
An |
expenses optional object
|
Expense export filter settings for categories and tags. |
categories optional array
|
An |
!categories optional array
|
An |
tags optional array
|
An |
!tags optional array
|
An |
incomes optional object
|
Income export filter settings for categories and tags. |
categories optional array
|
An |
!categories optional array
|
An |
tags optional array
|
An |
!tags optional array
|
An |
locations optional array
|
An |
!locations optional array
|
An |
from optional string
|
Used to define date range, in YYYY-MM-DD format. Format:date |
to optional string
|
Used to define date range, in YYYY-MM-DD format. Format:date |
type * required string
|
Export type. Possible values:export, attachments, user_data |
seen optional boolean
|
Marked as |
* denotes required field/parameter.
Request
$ curl https://api.toshl.com/exports \ -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl" \ -H "Content-Type: application/json" \ -X POST \ -d '{json}'