Skip to main content

Reject Loan Account

Overviewโ€‹

Rejects a loan application with documented reasons.

Endpointโ€‹

POST /api/bpm/cmd

Request Headersโ€‹

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

Request Bodyโ€‹

{
"cmd": "RejectLoanCommand",
"data": {
"accountEncodedKey": "LN-2024-001234",
"comment": "Insufficient credit history - Unable to verify income sources"
}
}

Parametersโ€‹

ParameterTypeRequiredDescription
cmdstringYesMust be "RejectLoanCommand"
dataobjectYesRejection data
รขโ€ ยณ accountEncodedKeystringYesLoan account identifier (EncodedKey or AccountNumber)
รขโ€ ยณ commentstringNoRejection reason and comments

Responseโ€‹

Success Response (200 OK)โ€‹

{
"success": true,
"message": "Loan rejected successfully",
"data": {
"loanId": "LA-2024-00001",
"status": "Rejected",
"rejectionDate": "2024-01-15T14:00:00Z",
"rejectedBy": "manager@bank.com",
"rejectionReason": "Insufficient collateral",
"rejectionComments": "Loan-to-value ratio does not meet requirements"
}
}

Status Codesโ€‹

CodeDescription
200Loan rejected successfully
400Invalid request
401Unauthorized
403Insufficient authority
404Loan not found
409Loan already processed
500Internal server error

Business Rulesโ€‹

  • Loan must be in PendingApproval status
  • Rejection reason is mandatory
  • Customer notified automatically
  • Audit trail maintained
  • Loan cannot be modified after rejection

Code Examplesโ€‹

C# Exampleโ€‹

Code Removed

Implementation details removed for security.

Contact support for implementation guidance.

TypeScript Exampleโ€‹

async function rejectLoan(loanId: string, reason: string, comments?: string): Promise<RejectionResponse> {
const response = await fetch('/api/administration/loan/reject', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${accessToken}`,
'X-Tenant-Id': tenantId
},
body: JSON.stringify({ loanId, rejectionReason: reason, rejectionComments: comments })
});

const result = await response.json();
return result.data;
}

Notesโ€‹

  • Rejection reason required for audit and customer communication
  • Customer receives formal rejection notification
  • Rejection cannot be undone (new application required)
  • Loan officer notified of rejection