Skip to main content

UpdateLoanSettlementDetailsCommand

Overview​

Configures the settlement account for a loan — either a virtual account or a direct bank account — through which loan repayments will be settled. Updates the collection record linked to the loan.

Command Structure​

{
"cmd": "UpdateLoanSettlementDetailsCommand",
"data": "{\"loanRequestId\":110,\"settlementOption\":1,\"settlementAccountNumber\":\"0123456789\",\"providerCode\":\"GTB\",\"loanAccountReference\":\"LA202600110\",\"comment\":\"Settlement via GTBank account\"}"
}

Parameters​

ParameterTypeRequiredDescription
loanRequestIdlongYesID of the loan application
settlementOptionintYesHow settlement is processed (see enum below)
loanAccountReferencestringNoCore banking loan account reference
commentstringNoNotes
virtualAccountIdlongConditionalRequired when settlementOption = 0 (VirtualAccount)
settlementAccountNumberstringConditionalRequired when settlementOption = 1 (DirectSettlementAccount)
providerCodestringConditionalRequired when settlementOption = 1 — bank code of the settlement account

settlementOption Enum​

ValueNameDescription
0VirtualAccountSettle through a BankLingo virtual account
1DirectSettlementAccountSettle via a named bank account number

Process​

  1. Retrieves loan quote and associated collection information
  2. Based on settlementOption:
    • VirtualAccount: validates the virtual account exists and belongs to the organisation
    • DirectSettlementAccount: validates the account number and provider code
  3. Updates collection record with settlement details
  4. Records the action in approval history
  5. Persists changes

Response​

{
"ok": true,
"statusCode": "00",
"message": "Settlement details updated successfully.",
"outData": {
"LoanRequestId": 110,
"comment": "Settlement via GTBank account"
}
}