Transactions are debit and credit operations on an account.

Note that the status of the transaction indicates whether or not it affects the account's available balance. debit transactions impact the balance as soon as they reach the authorized state. credit transactions impact it only when their status turns to confirmed.

Also, note that rejected means that the transaction was rejected before it was authorized, having no possible impact on the balance at any time. On the other hand, canceled means that the transaction was first authorized and then canceled, so it had a temporary impact on the balance.