Foreclosure
Operational Use Cases
- Forced payoff after default: Collections instructs the system to accelerate the loan and settle via liquidation proceeds.
- Collateral sale managed by lender: Lender initiates foreclosure to recover funds from the collateral.
- Compliance-driven closure: Regulatory requirement to classify and close an account once legal foreclosure proceedings start.
Applies to both Fixed and Dynamic repayment schedule engines. Interest recalculation (if enabled) updates payoff amounts up to the foreclosure date.
Lifecycle Snapshot
flowchart TD
A[Confirm foreclosure approval] --> B[Fetch optional payoff quote]
B --> C[Collect payoff via Payments API]
C --> D[Submit foreclosure command]
D --> E[Loan status updated to Foreclosed]
API Playbook
-
(Optional) Quote payoff
GET /v1/loans/{loanId}/transactions/template?command=prepayLoan&transactionDate=2025-08-01Use only as a reference; foreclosure-specific validations happen on the execution step.
-
Collect the payoff via the Payments API (when foreclosure proceeds involve funds)
POST /v1/payments { "loanId": 512, "mode": "LOG", "paymentCommand": "foreclosure", "valueDate": "01 Aug 2025", "amount": 12890.11, "note": "Foreclosure proceeds from collateral sale", "externalReference": "FOREC-2025-08-01" }Embarc moves money through your configured gateway (INITIATE) or records the settlement (LOG) and automatically posts the underlying loan transaction.
Validations to keep in mind
- All tranches scheduled before
transactionDatemust be disbursed. - Loan must be Active and not already foreclosed.
transactionDatecannot be in the future or before the last user transaction.
- All tranches scheduled before
Tips for Operations Teams
- Foreclosure immediately changes the loan sub-status; If you need to reverse a foreclosure, use the standard payment reversal process; ensure no subsequent transactions exist after the foreclosure date.
Baseline Example (Fixed Loan A)
Continuing the payoff scenario above, suppose the borrower defaults and collateral is liquidated for USD 6,300 on 01 Aug 2026. Steps:
Transactions created
| Date | Type | Total Amount | Allocation (Interest / Principal) | Notes |
|---|---|---|---|---|
| 01 Aug 2026 | PAYMENTS API (paymentCommand=foreclosure) | 6,279.05 | 100.00 / 6,179.05 | Collects payoff proceeds (interest through 1 Aug + principal). |
| 01 Aug 2026 | FORECLOSURE | 0.00 | — | Marks loan sub-status = Foreclosed; no additional cash movement. |
Loan summary delta
| Metric | Before | After |
|---|---|---|
| Principal outstanding | USD 6,179.05 | USD 0.00 |
| Interest outstanding | USD 100.00 | USD 0.00 |
| Sub-status | Active | Foreclosed |
Accounting snapshot
| Entry | Debit | Credit | Amount |
|---|---|---|---|
| Cash received | Cash / Bank (101100) | Loans Receivable (112601) | 6,179.05 |
| Interest recognition | Cash / Bank (101100) | Interest Income (404000) | 100.00 |
Verification checklist
GET /v1/loans/{id}?associations=transactions,loanSummaryto confirm the newFORECLOSUREtransaction and sub-status change.- Ensure the Payments API log shows the proceeds hitting the expected GL accounts.
- If you reverse foreclosure, remove any downstream collateral references before undoing the transaction.
Sandbox request template
POST /v1/payments
{
"loanId": {{baselineFixedLoanId}},
"mode": "LOG",
"paymentCommand": "foreclosure",
"valueDate": "01 Aug 2026",
"amount": 6300.00,
"note": "Collateral sale",
"externalReference": "FOREC-BL-A-0001"
}
POST /v1/loans/{{baselineFixedLoanId}}/transactions?command=foreclosure
{
"locale": "en",
"dateFormat": "dd MMM yyyy",
"transactionDate": "01 Aug 2026",
"note": "Forced payoff"
}Updated about 1 month ago
