Rural branches and loan officers at group meetings often lose signal mid-request. Zung's Banking API accepts a client_ref on repayments, deposits and withdrawals: a retry with the same reference returns duplicate: true and posts nothing.
How it works
- 1Generate a UUID per transaction on the device
- 2Queue transactions while offline
- 3Post each one with its client_ref when back online
- 4Treat success and duplicate responses as done
API pages this kit uses
/loans/{id}/repayment
Updated Record a repayment
Posts a repayment and allocates it to penalties, fees, interest and principal per the product's rules.
/savings/{id}/deposit
Updated Record a deposit
Posts a deposit to a savings account. Send client_ref to make retries safe.
Offline-safe repayments with client_ref
Field officers and branches on unreliable connections can retry a repayment without ever double-posting it.