Nest ledger categories

How to nest ledger account categories, which allow you to nest ledger accounts and sum across child balances

We can add a ledger account category to another category by using the add ledger account category to category endpoint. For this call, we again need ids of both categories:

curl --request PUT \
     --url \
     --header 'Accept: application/json'

As above, a category can be removed from another by using the remove ledger account category from category endpoint. This also does not affect underlying transactions: it simply removes the newly excluded child category balance from the parent category balance calculation.

As of now, nested categories up to level 4 are allowed. A root category without any nested category is considered level 0.