This endpoint is used to make an offer for a loan request, given a loan request id.
POST https://api.lenmo.app/api/v3/loan_requests/{id}/make_offer/
POST
https://api.lenmo.app/api/v3/loan_requests/{id}/make_offer/
{ 'id' : 1, 'offered_interest' : 0.03, 'offer_status': 'pending', 'lender' :{ // .... lender data .... }, 'loan_request': { // ... loan request data .... }, 'monthly_payment' : 100, 'loan_gain': 100.02, 'created': '2022-05-27T10:37:14.658672Z', 'offer_status_changed': '2020-05-06 17:25:01 Etc/GMT', 'processed_on_dwolla': True }
{ 'message': 'Borrower can not offer.' }
{ "message": "We cannot process this request as it appears that your bank account has not been verified. Please verify your bank account and try again later." }
{ "detail": "Authentication credentials were not provided." }
curl -X GET "https://api.lenmo.app/api/v3/loan_requests/" \ -H "accept: application/json" \ -H "X-API-KEY: YOUR_API_KEY" \ -H "X-Timestamp: REQUEST_TIMESTAMP" \ -H "X-HMAC: REQUEST_HMAC"
import requests lq_id = 126315 url = "https://api.lenmo.app/api/v3/loan_requests/{}/make_offer/".format(lq_id) headers = { "Accept": "application/json", "X-API-KEY": "YOUR_API_KEY", "X-Timestamp": "REQUEST_TIMESTAMP", "X-HMAC": "REQUEST_HMAC", } body = {"offered_interest": 1} r = requests.post(url, json=body, headers=headers) print(r.text)
Last updated 2 months ago
id*
Long
The loan request id to be offered.
Accept
String
The content type of the response.
X-API-KEY*
The API key that gives the user the authentication to perform this request.
X-Timestamp*
The timestamp of the request.
X-HMAC*
The HMAC generated for the request.
offered_interest*
Float
A Float value between 0.03 and 2.0
id
Offer id
offered_interest
The interest rate of the offer
offer_status
Status of the offer .e.g pending, accepted, rejected, expired ..
pending
accepted
rejected
expired
lender
Dict
Contains lender data for loan
loan_request
Contains loan request details for this offer
monthly_payment
Monthly payment of the offer
loan_gain
The loan gain of the offered loan request
created
Date
UTC time of the offer creation on the database
offer_status_changed
UTC time of the last action took on this offer
processed_on_dwolla
Boolean
Status of transfer associated with the offer