Endpoints
Buyback Loan
Create a buyback request for a existing loan which is not bought back already.
curl -X POST "https://api.lendermarket.com/claims/v1/lender/createLoanBuyback" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"loanUuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reason": "EARLY_PAYMENT"
}'
import requests
import json
url = "https://api.lendermarket.com/claims/v1/lender/createLoanBuyback"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
data = {
"loanUuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reason": "EARLY_PAYMENT"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://api.lendermarket.com/claims/v1/lender/createLoanBuyback", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
},
body: JSON.stringify({
"loanUuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reason": "EARLY_PAYMENT"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"loanUuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reason": "EARLY_PAYMENT"
}`)
req, err := http.NewRequest("POST", "https://api.lendermarket.com/claims/v1/lender/createLoanBuyback", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "Bearer YOUR_API_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://api.lendermarket.com/claims/v1/lender/createLoanBuyback')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['Authorization'] = 'Bearer YOUR_API_TOKEN'
request.body = '{
"loanUuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"reason": "EARLY_PAYMENT"
}'
response = http.request(request)
puts response.body
{
"data": {
"uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"paymentDate": "2026-01-28",
"status": "SENDING",
"reason": "EARLY_PAYMENT"
}
}
{
"message": "The loan uuid field is required. (and 1 more error)",
"errors": {
"loanUuid": [
"The loan uuid field is required."
],
"reason": [
"The reason field is required."
]
}
}
POST
/createLoanBuyback
POST
Security Scheme
Bearer Token
Bearer Tokenstring
RequiredBearer authentication of the form Bearer <token>, where token is your auth token.
Bearer authentication of the form Bearer <token>, where token is your auth token.
Content-Typestring
RequiredThe media type of the request body
Options: application/json
loanUuidstring
RequiredUnique UUID of the loan in the LM system
reasonstring
RequiredReason of the buyback
Options: AGREEMENT_TERMINATION, AGREEMENT_PROLONGATION, AGREEMENT_AMENDMENT, EARLY_PAYMENT
Request Preview
Response
Response will appear here after sending the request
Authentication
bearerAuth
header
Authorizationstring
RequiredBearer token. Bearer authentication of the form Bearer <token>, where token is your auth token.
Body
application/json
loanUuidstring
RequiredUnique UUID of the loan in the LM system
reasonstring
RequiredReason of the buyback
Allowed values:
AGREEMENT_TERMINATIONAGREEMENT_PROLONGATIONAGREEMENT_AMENDMENTEARLY_PAYMENTResponses
Was this page helpful?
Built with Documentation.AI
Last updated today