Last modified:2026-11-13 07:18:36
x-auth:Ops secret
x-called-from:LMS calls this after it has settled the loan. This API does not decide that the loan is settled.
x-details:body `{ loanId, emiSequence }`. Internal secret required. A debit that already succeeded is refused. `in_process` and `revoking` are finished by a later call or the server drain, which retrieves and does not send the cancel again.
x-errors:[{"meaning":"unauthorized: Authorization required","status":401},{"meaning":"not_found: Loan not found","status":404},{"meaning":"step_not_ready: Active mandate with vendor ref required","status":409},{"meaning":"validation_failed: Collection row required","status":422},{"meaning":"validation_failed: Debit already succeeded for this EMI","status":422},{"meaning":"validation_failed: loanId and emiSequence required","status":422}]
x-next:read `mandateStatus` and `debitStatus` on the returned row.
x-order:2
x-section:collection
x-when:body `{ loanId, emiSequence }`.