Skip to main content

Add Loan Guarantor

Overviewโ€‹

Adds a guarantor to 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": "AddLoanGuarantorCommand",
"data": {
"loanAccountId": 12345,
"clientId": 67890,
"relationship": "Business Partner"
}
}

Parametersโ€‹

ParameterTypeRequiredDescription
cmdstringYesMust be "AddLoanGuarantorCommand"
dataobjectYesGuarantor data
รขโ€ ยณ loanAccountIdintegerYesLoan account ID
รขโ€ ยณ clientIdintegerYesClient/Customer ID of guarantor
รขโ€ ยณ relationshipstringYesRelationship to borrower

Responseโ€‹

Success Response (200 OK)โ€‹

{
"success": true,
"message": "Guarantor added successfully",
"data": {
"loanId": "LA-2024-00001",
"guarantorId": "CUST-67890",
"guarantorName": "Alice Johnson",
"guaranteeAmount": 25000.00,
"guaranteeType": "Partial",
"relationshipToBorrower": "Business Partner",
"status": "PendingAcceptance",
"addedAt": "2024-01-20T10:00:00Z",
"addedBy": "officer@bank.com"
}
}

Status Codesโ€‹

CodeDescription
200Guarantor added successfully
400Invalid request or guarantor ineligible
401Unauthorized
404Loan or guarantor customer not found
409Guarantor already exists for this loan
500Internal server error

Business Rulesโ€‹

  • Guarantor must be an existing customer
  • Guarantor must have good credit standing
  • Guarantor cannot be the borrower
  • Total guarantees may have minimum requirements
  • Guarantor acceptance may be required

Code Examplesโ€‹

C# Exampleโ€‹

Code Removed

Implementation details removed for security.

Contact support for implementation guidance.

TypeScript Exampleโ€‹

async function addLoanGuarantor(request: AddGuarantorRequest): Promise<GuarantorResponse> {
const response = await fetch('/api/administration/loan/guarantor/add', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${accessToken}`,
'X-Tenant-Id': tenantId
},
body: JSON.stringify(request)
});

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

Notesโ€‹

  • Guarantor notification sent automatically
  • Guarantor must accept guarantee before loan disbursement
  • Multiple guarantors can be added to a loan
  • Guarantee amount contributes to security coverage