Get loans by status
Retrieves a list of loan details for a given entity filtered by loan status. Supports pagination via offset and pageNo query parameters. Optionally allows discarding specific response components.
Query Parameters
Number of records per page. Defaults to 5.
5Zero-based page number. Defaults to 0.
0Comma-separated list of response components to discard.
Header Parameters
Tenant identifier for the request.
Request Body
application/json
The entity (customer) identifier.
Enumeration of possible loan statuses.
"ACTIVE" | "CANCELLED" | "CLOSED" | "PRE_CLOSED" | "RETURNED"Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://uat-m2p-ccms.m2pfintech.com/loan/getByStatus" \ -H "TENANT: string" \ -H "Content-Type: application/json" \ -d '{ "entityId": "string" }'[
{
"actualLoanId": "string",
"loanId": "string",
"loanAmount": 0,
"interestRate": 0,
"tenure": "string",
"emiAmount": 0,
"brokenPeriodInterest": "string",
"totalPrincipal": 0,
"principalOverdue": 0,
"principalPaid": 0,
"principalOutstanding": 0,
"totalPaid": 0,
"totalInterest": 0,
"interestOutstanding": 0,
"interestOverdue": 0,
"interestWaived": 0,
"interestPaid": 0,
"totalFee": 0,
"feeOverdue": 0,
"feeOutstanding": 0,
"feeWaived": 0,
"totalFeePaid": 0,
"totalTax": 0,
"processingFee": 0,
"processingFeeTax": 0,
"numberOfDueRepayments": "string",
"numberOfPaidRepayments": "string",
"numberOfRepayments": "string",
"disbursedDate": "string",
"discountAmount": 0,
"totalRepayment": 0,
"totalExpectedRepayment": 0,
"totalOutstanding": 0,
"totalOverDue": 0,
"totalWaivedOff": 0,
"currentAmortizations": [
{
"installmentNumber": 0,
"dueDate": "2019-08-24",
"emiAmount": 0,
"principal": 0,
"interest": 0,
"fee": 0,
"tax": 0,
"outstandingPrincipal": 0,
"status": "string"
}
],
"originalAmortizations": [
{
"installmentNumber": 0,
"dueDate": "2019-08-24",
"emiAmount": 0,
"principal": 0,
"interest": 0,
"fee": 0,
"tax": 0,
"outstandingPrincipal": 0,
"status": "string"
}
],
"transactions": [
{
"transactionId": "string",
"transactionDate": "2019-08-24",
"transactionType": "string",
"amount": 0,
"description": "string",
"status": "string"
}
],
"loanStatus": "ACTIVE",
"isLoanCancelApplicable": true,
"isLoanRescheduleApplicable": true,
"isLoanPreClosureApplicable": true,
"description": "string",
"category": "string",
"loanProductId": "string",
"created": "2024-01-15 10:30:00",
"refundDetails": [
{
"refundId": "string",
"refundAmount": 0,
"refundDate": "2019-08-24",
"refundStatus": "string",
"description": "string"
}
],
"loanAgreementFileUrl": "string"
}
]{
"code": "string",
"message": "string",
"details": "string",
"timestamp": "2019-08-24T14:15:22Z"
}{
"code": "string",
"message": "string",
"details": "string",
"timestamp": "2019-08-24T14:15:22Z"
}{
"code": "string",
"message": "string",
"details": "string",
"timestamp": "2019-08-24T14:15:22Z"
}Get card list (v3) for a customer POST
Retrieves the list of cards associated with a customer (v3 variant). NOTE: This endpoint path was not found in the available source code of credit-clms, credit-customer-service, or credit-service. It may exist in a service not present in this codebase snapshot or may be a planned/upcoming endpoint. Based on the v1 getCardList pattern, it accepts a customerId and returns card list data.
Get loan details by loan ID and entity ID POST
Retrieves detailed information about a specific loan identified by loanId and entityId, including amortization schedules, repayment summaries, outstanding balances, and transaction history.
