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:
- entries:rw
- accounts:rw
Parameters
accounts * required array
|
Account ids to merge. |
account optional string
|
Account id to merge selected categories into. If |
title optional string
|
If |
currency optional string
|
Currency of the newly created account. Ignored if |
sync optional array
|
List of bank accounts that will remain in sync with the bank. If |
* 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