change API for adding a loan repayments