Set Loan Back to Partial Application
Overviewโ
Reverts a loan application to partial application status to allow additional information collection.
Endpointโ
POST /api/bpm/cmd
Request Headersโ
| Header | Type | Required | Description |
|---|---|---|---|
| Authorization | string | Yes | Bearer token for authentication |
| Content-Type | string | Yes | Must be application/json |
| X-Tenant-Id | string | Yes | Tenant identifier |
Request Bodyโ
{
"cmd": "SetLoanBackToPartialApplicationCommand",
"data": {
"accountEncodedKey": "LN-2024-001234",
"comment": "Additional documentation required - Income proof and bank statements needed"
}
}
Parametersโ
| Parameter | Type | Required | Description |
|---|---|---|---|
| cmd | string | Yes | Must be "SetLoanBackToPartialApplicationCommand" |
| data | object | Yes | Revert data |
| รขโ ยณ accountEncodedKey | string | Yes | Loan account identifier (EncodedKey or AccountNumber) |
| รขโ ยณ comment | string | No | Reason for reverting to partial application |
Responseโ
Success Response (200 OK)โ
{
"success": true,
"message": "Loan set back to partial application successfully",
"data": {
"loanId": "LA-2024-00001",
"status": "PartialApplication",
"revertedAt": "2024-01-13T11:00:00Z",
"revertedBy": "officer@bank.com",
"reason": "Additional documentation required",
"missingInformation": [
"Proof of income",
"Guarantor acceptance letter"
]
}
}
Status Codesโ
| Code | Description |
|---|---|
| 200 | Loan reverted successfully |
| 400 | Invalid request or loan not eligible |
| 401 | Unauthorized |
| 404 | Loan not found |
| 409 | Loan in wrong status for revert |
| 500 | Internal server error |
Business Rulesโ
- Can only revert before approval
- Used when incomplete information discovered
- Allows loan officer to collect missing data
- Customer notified of requirements
- Loan can be resubmitted when complete
Code Examplesโ
C# Exampleโ
Code Removed
Implementation details removed for security.
Contact support for implementation guidance.
TypeScript Exampleโ
async function setLoanBackToPartial(loanId: string, reason: string, missingInfo?: string[]): Promise<RevertResponse> {
const response = await fetch('/api/administration/loan/set-back-to-partial', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${accessToken}`,
'X-Tenant-Id': tenantId
},
body: JSON.stringify({ loanId, reason, missingInformation: missingInfo })
});
const result = await response.json();
return result.data;
}
Notesโ
- Helps manage incomplete applications
- Customer receives list of missing items
- Tracked in loan application timeline
- No penalty to customer for revert
- Common during initial application review