Skip to main content

Transactions

Transactions can be of type:

  • Income/Credit
  • Expense/Debit
  • Transfer (between own accounts)

In logical terms, a transfer from A -> B is treated by the API as two different transactions:

  1. X amount is debited from A
  2. X amount is credited in B

However, for accessibility and data integrity, they're still stored as a single entry.

Here's a typical DB representation of 3 different transactions: 1 debit, 1 credit and 1 transfer (simplified and truncated):

transaction_idtypeaccounts_account_from_idaccounts_account_to_iddescription
1E101NULLdebit from #101
2INULL101credit to #101
3T101102transfer from #101 to #102