Skip to main content

Remove Loan Guarantor

Overviewโ€‹

Removes a guarantor from an existing loan account.

Endpointโ€‹

POST /api/bpm/cmd

Request Headersโ€‹

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token for authentication
Content-TypestringYesMust be application/json
X-Tenant-IdstringYesTenant identifier

Request Bodyโ€‹

{
"cmd": "RemoveLoanGuarantorCommand",
"data": {
"loanAccountId": 12345,
"clientId": 67890
}
}

Parametersโ€‹

ParameterTypeRequiredDescription
cmdstringYesMust be "RemoveLoanGuarantorCommand"
dataobjectYesGuarantor removal data
รขโ€ ยณ loanAccountIdintegerYesLoan account ID
รขโ€ ยณ clientIdintegerYesClient/Customer ID of guarantor to remove

Responseโ€‹

Success Response (200 OK)โ€‹

{
"success": true,
"message": "Guarantor removed successfully",
"data": {
"loanId": "LA-2024-00001",
"guarantorId": "CUST-67890",
"removedAt": "2024-01-20T11:00:00Z",
"removedBy": "officer@bank.com",
"reason": "Guarantor request"
}
}

Status Codesโ€‹

CodeDescription
200Guarantor removed successfully
400Invalid request or removal not allowed
401Unauthorized
404Loan or guarantor not found
409Removal would violate guarantee requirements
500Internal server error

Business Rulesโ€‹

  • Cannot remove if it would breach minimum guarantee requirements
  • Removal may require supervisory approval
  • Cannot remove after loan default
  • Guarantor notified of removal

Code Examplesโ€‹

C# Exampleโ€‹

Code Removed

Implementation details removed for security.

Contact support for implementation guidance.

TypeScript Exampleโ€‹

async function removeLoanGuarantor(loanId: string, guarantorId: string, reason: string): Promise<ApiResponse> {
const response = await fetch('/api/administration/loan/guarantor/remove', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${accessToken}`,
'X-Tenant-Id': tenantId
},
body: JSON.stringify({ loanId, guarantorId, reason })
});

return await response.json();
}

Notesโ€‹

  • Removal logged in audit trail
  • Guarantor notified automatically
  • May require replacement guarantor if minimum coverage required
  • Cannot be undone once processed