Get Loan payments
The investor can use this endpoint to fetch payments of a given loan.
get
https://api.lenmo.app/api/v3
/loans/{id}/payments/
cURL
Python
curl -X GET "https://api.lenmo.app/api/v3/loans/43/payments/"
-H "accept: application/json"
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
1
import requests
2
import json
3
4
access_token = # Valid Token
5
6
#Fetch payments for a given loan id
7
loan_id = 43
8
url = 'https://api.lenmo.app/api/v3/loans/{}/payments/'.format(loan_id)
9
10
headers = {
11
'Accept': 'application/json',
12
'Authorization' : 'Bearer {}'.format(access_token)
13
}
14
15
r = requests.get(url, headers=headers)
16
17
print(r.text)
Parameter | Type | Description |
---|---|---|
loan | Long | Id of the loan associated with this payment |
payment_amount | Float | USD amount of the payment |
payment_due_date | Date | UTC time for the payment due date. |
payment_status | String | Status of the payment |
payment_status_changed | Date | UTC time for last action, took on this payment |
late_payment_fees_amount | Float | If applicable, the late fees of the payment |
created | Date | UTC time of the payment creation in our database |
modified | Date | UTC time of the last modification applied to the payment |
is_late_payment | Boolean | Payment status to indicate of it was not fulfilled in time. |
processed_on_dwolla | Boolean | Payment status to indicate if a transfer is initiated |
delayed_days_count | Integer | Number of days over the due time. |
pay_later_fees | Float | Fees for a pay later option. |
Good to know: We advise that you refresh this en
Last modified 6mo ago