update balances api using credit/debit