Close Loan
Operational Use Cases
- Administrative closure after payoff: Balance is zero and the lender wants to formally close the contract.
- Data migration cleanup: Loans imported as already paid now need a close command for audit purposes.
- Manual override: After adjustments or write-offs, staff may want to close the record immediately.
Supported on both Fixed and Dynamic repayment schedule engines. Interest recalculation has no special impact because the loan is already at zero.
Lifecycle Snapshot
flowchart LR
A[Verify outstanding balance equals zero] --> B[Submit close command]
B --> C[Loan status moves to Closed]
C --> D[Send closure confirmations and release collateral]
API Playbook
- Close the loan
POST /v1/loans/{loanId}/transactions?command=close { "locale": "en", "dateFormat": "dd MMM yyyy", "transactionDate": "15 Jul 2025", "note": "Closed after settlement" }- No payment fields are required.
- Embarc validates that the loan is Active (not already closed or written off) and has zero outstanding.
Tips for Operations Teams
- Prefer letting the repayment command auto-close the loan when possible; manual close is best for exceptional cases.
- Validation reminder: the close command rejects requests if any principal/interest/fees remain (
error.msg.loan.close.balance.not.zero). Always run a payoff template first.
Baseline Example (Fixed Loan A)
After the payoff/foreclosure scenarios, balance is zero but status remains Active. To record a manual close:
Transactions created
| Date | Type | Amount | Notes |
|---|---|---|---|
| 15 Jul 2026 | CLOSE | — | Closes loan after verifying zero balance. |
Loan summary delta
| Metric | Before | After |
|---|---|---|
| Status | Active | Closed – Obligations Met |
| Principal outstanding | 0.00 | 0.00 |
| Sub-status | None | None |
Attempting this command with a non-zero balance returns error.msg.loan.close.balance.not.zero.
Verification checklist
GET /v1/loans/{id}?associations=loanSummaryto confirm the status transition.- Ensure no further transactions are allowed after the close command unless you reopen the loan (via reversal).
Updated about 1 month ago
