Skip to main content

Get Repayment Schedule

Overview​

GetRepaymentScheduleQuery retrieves the full repayment schedule for a loan quote, including per-installment principal, interest, total due, outstanding balance, payment status, and any paid amounts.

The schedule is created by SetCollectionDetailsCommand. If no schedule exists for the loan, a 04 error is returned.

Command Details​

  • Command: GetRepaymentScheduleQuery
  • Type: Query (read-only)

API Endpoint​

POST /api/bpm/cmd

Request Structure​

FieldTypeRequiredDescription
loanRequestIdlongYesID of the loan quote (LoanQuote.Id)

Try It Out​

POST/api/bpm/cmdGetRepaymentScheduleQuery
Request Body

Response Structure​

{
"response": {
"isSuccessful": true,
"statusCode": "00",
"message": "12 installment(s) in repayment schedule.",
"count": 12,
"data": {
"loanQuoteId": 1001,
"totalInstallments": 12,
"totalAmountDue": 560000.00,
"totalAmountPaid": 46666.67,
"outstandingAmount": 513333.33,
"schedule": [
{
"id": 1,
"installmentNumber": 1,
"dueDate": "2025-09-15T00:00:00Z",
"principalAmount": 41666.67,
"interestAmount": 5000.00,
"totalDue": 46666.67,
"outstandingBalance": 458333.33,
"status": "Paid",
"paidDate": "2025-09-15T08:30:00Z",
"amountPaid": 46666.67
},
{
"id": 2,
"installmentNumber": 2,
"dueDate": "2025-10-15T00:00:00Z",
"principalAmount": 41666.67,
"interestAmount": 5000.00,
"totalDue": 46666.67,
"outstandingBalance": 416666.67,
"status": "Pending",
"paidDate": null,
"amountPaid": null
}
]
}
},
"responseCode": "00",
"responseDescription": "Success"
}

Response Fields​

Summary​

FieldTypeDescription
loanQuoteIdlongThe loan quote ID
totalInstallmentsintTotal number of installments in the schedule
totalAmountDuedecimalSum of all totalDue values across all installments
totalAmountPaiddecimalSum of all amountPaid values (Paid/Waived installments)
outstandingAmountdecimaltotalAmountDue - totalAmountPaid

Per-Installment​

FieldTypeDescription
idlongDatabase ID of the schedule row
installmentNumberint1-based sequence number
dueDatedatetimeExpected payment date
principalAmountdecimalPrincipal component of this installment
interestAmountdecimalInterest component of this installment
totalDuedecimalprincipalAmount + interestAmount
outstandingBalancedecimalRemaining principal balance after this installment
statusstringPending, Paid, Waived, Failed, or Skipped
paidDatedatetime?Date the installment was settled (or waived)
amountPaiddecimal?Amount actually collected (0 for waived installments)

Error Responses​

Status CodeMessage
04"No repayment schedule found for this loan. Set collection details first."