Get Active Loan
Loans
Get Active Loan
Fetch the currently active (disbursed) loan for a customer.
GET
Get Active Loan
Overview
Returns the active disbursed loan for a customer. Use this to check outstanding balance, next repayment date, and current loan status.Request
Method:GETURL:
/v1/loans/active
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
x-carbon-key | Header | string | Yes | API key for authentication. |
customer_id | Query | string | Yes | UUID of the customer. |
Response
200 OK
loanStatus | Meaning |
|---|---|
ACTIVE | Loan is active and in good standing |
ACTIVE_IN_ARREARS | Loan is active but overdue |
CLOSED | Loan is fully repaid |
Error Responses
| Status | Message | Cause |
|---|---|---|
| 400 | customer_id query param is required | Missing customer_id query parameter |
| 400 | Customer not enrolled for lending | Customer not found or not enrolled |