Toshl Developer

Merge accounts

Merge multiple accounts into one. All entries and budgets with the selected accounts will be updated. After merging the selected accounts will be deleted.

POST /accounts/merge

Required scope:

Parameters

accounts *
required
array

Account ids to merge.

account
optional
string

Account id to merge selected categories into. If null a new account with title is created.

title
optional
string

If account is null then title is used to name the newly created account.

currency
optional
string

Currency of the newly created account. Ignored if account is an existing account.

sync
optional
array

List of bank accounts that will remain in sync with the bank. If null the none will remain in sync.

* denotes required field/parameter.

Request

$ curl https://api.toshl.com/accounts/merge \
  -H "Authorization: Bearer T9cE5asGnuyYCCqIZFoWjFHvNbvVqHjl" \
  -H "Content-Type: application/json" \
  -X POST \
  -d '{"accounts": ["42", "43"], "account": "44"}'

Response

HTTP/1.1 204 No Content