import requests# Fetch loans in collection status for the investorurl ='https://api.lenmo.app/api/v3/loans/collection_loan/'headers ={'Accept':'application/json','X-API-KEY':'YOUR_API_KEY','X-Timestamp':'REQUEST_TIMESTAMP','X-HMAC':'REQUEST_HMAC'}r = requests.get(url, headers=headers)print(r.text)
Get Default Loans
The investor can use this endpoint to fetch their loans in default status.
import requests# Fetch loans in default status for the investorurl ='https://api.lenmo.app/api/v3/loans/default_loan/'headers ={'Accept':'application/json','X-API-KEY':'YOUR_API_KEY','X-Timestamp':'REQUEST_TIMESTAMP','X-HMAC':'REQUEST_HMAC'}r = requests.get(url, headers=headers)print(r.text)
Response Parameters
Name
Type
Description
Name
Type
Description
Name
Type
Description
Parameter
Type
Description
Accept
String
The content type of the response.
X-API-KEY*
String
The API key that gives the user the authentication to perform this request.
X-Timestamp*
String
The timestamp of the request.
X-HMAC*
String
The HMAC generated for the request.
Accept
String
The content type of the response.
X-API-KEY*
String
The API key that gives the user the authentication to perform this request.
X-Timestamp*
String
The timestamp of the request.
X-HMAC*
String
The HMAC generated for the request.
Accept
String
The content type of the response.
X-API-KEY*
String
The API key that gives the user the authentication to perform this request.
X-Timestamp*
String
The timestamp of the request.
X-HMAC*
String
The HMAC generated for the request.
Accept
String
The content type of the response.
X-API-KEY*
String
The API key that gives the user the authentication to perform this request.
X-Timestamp*
String
The timestamp of the request.
X-HMAC*
String
The HMAC generated for the request.
borrower_card_color
Integer
An integer value that reflect the risk level of the borrower.
loan_amount
Float
The amount of loan in USD
payment_terms
Integer
Number of payments to pay back the loan
monthly_payment_amount
Float
Payment amount in a month
loan_return
Float
Loan return after it is paid off
is_approved
Boolean
Approval status for the loan
loan_paid_off
Boolean
Status on the completion of the loan
loan_balance
Float
Current remaining loan balance to be paid off
interest_rate
Float
A value between 0.03 to 2.0 for the interest rate of the loan