Create Loan
Create a loan on the Lendermarket side.
curl -X POST "https://api.lendermarket.com/claims/v1/lender/createLoan" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"lenderLoanId": "ABC-12345",
"scheduleType": "FULL-BULLET",
"loanAmount": "1000",
"currency": "EUR",
"interestRate": "14",
"country": "EST",
"lenderIssueDate": "2026-01-26",
"clientType": "BUSINESS_WITH_COLLATERAL",
"businessClient": {
"companyName": "XYZ-123 Limited",
"companyRegistryCode": "98765-ZYX",
"representativeName": "John Doe",
"representativePersonalCode": "654321-FED",
"collateralValue": "1000",
"currency": "EUR"
},
"schedule": [
{
"date": "2026-01-26",
"principalAmount": "1000",
"interestAmount": "141.16"
}
]
}'
import requests
import json
url = "https://api.lendermarket.com/claims/v1/lender/createLoan"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
}
data = {
"lenderLoanId": "ABC-12345",
"scheduleType": "FULL-BULLET",
"loanAmount": "1000",
"currency": "EUR",
"interestRate": "14",
"country": "EST",
"lenderIssueDate": "2026-01-26",
"clientType": "BUSINESS_WITH_COLLATERAL",
"businessClient": {
"companyName": "XYZ-123 Limited",
"companyRegistryCode": "98765-ZYX",
"representativeName": "John Doe",
"representativePersonalCode": "654321-FED",
"collateralValue": "1000",
"currency": "EUR"
},
"schedule": [
{
"date": "2026-01-26",
"principalAmount": "1000",
"interestAmount": "141.16"
}
]
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://api.lendermarket.com/claims/v1/lender/createLoan", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer YOUR_API_TOKEN"
},
body: JSON.stringify({
"lenderLoanId": "ABC-12345",
"scheduleType": "FULL-BULLET",
"loanAmount": "1000",
"currency": "EUR",
"interestRate": "14",
"country": "EST",
"lenderIssueDate": "2026-01-26",
"clientType": "BUSINESS_WITH_COLLATERAL",
"businessClient": {
"companyName": "XYZ-123 Limited",
"companyRegistryCode": "98765-ZYX",
"representativeName": "John Doe",
"representativePersonalCode": "654321-FED",
"collateralValue": "1000",
"currency": "EUR"
},
"schedule": [
{
"date": "2026-01-26",
"principalAmount": "1000",
"interestAmount": "141.16"
}
]
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"lenderLoanId": "ABC-12345",
"scheduleType": "FULL-BULLET",
"loanAmount": "1000",
"currency": "EUR",
"interestRate": "14",
"country": "EST",
"lenderIssueDate": "2026-01-26",
"clientType": "BUSINESS_WITH_COLLATERAL",
"businessClient": {
"companyName": "XYZ-123 Limited",
"companyRegistryCode": "98765-ZYX",
"representativeName": "John Doe",
"representativePersonalCode": "654321-FED",
"collateralValue": "1000",
"currency": "EUR"
},
"schedule": [
{
"date": "2026-01-26",
"principalAmount": "1000",
"interestAmount": "141.16"
}
]
}`)
req, err := http.NewRequest("POST", "https://api.lendermarket.com/claims/v1/lender/createLoan", 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/createLoan')
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 = '{
"lenderLoanId": "ABC-12345",
"scheduleType": "FULL-BULLET",
"loanAmount": "1000",
"currency": "EUR",
"interestRate": "14",
"country": "EST",
"lenderIssueDate": "2026-01-26",
"clientType": "BUSINESS_WITH_COLLATERAL",
"businessClient": {
"companyName": "XYZ-123 Limited",
"companyRegistryCode": "98765-ZYX",
"representativeName": "John Doe",
"representativePersonalCode": "654321-FED",
"collateralValue": "1000",
"currency": "EUR"
},
"schedule": [
{
"date": "2026-01-26",
"principalAmount": "1000",
"interestAmount": "141.16"
}
]
}'
response = http.request(request)
puts response.body
{
"data": {
"uuid": "dcb87579-8d5e-412a-9f71-7c46c72ed589",
"loanPublicId": "2W69YH87AU6E",
"lenderLoanId": "ABC-12345",
"scheduleType": "FULL-BULLET",
"loanAmount": "1000.00",
"remainingPrincipalAmount": "1000.00",
"remainingSkinAmount": "50.00",
"investedAmount": "0.00",
"lenderSkinPercentage": "5.00",
"buyback": null,
"currency": "EUR",
"status": "ACTIVATING",
"totalTermInDays": 365,
"remainingTermInDays": 363,
"interestRate": "14.00",
"country": "EST",
"lenderIssueDate": "2026-01-26",
"finalPaymentDate": "2027-01-26",
"paymentSchedule": [
{
"dueDate": "2027-01-26",
"accruedInterestAmount": "0.00",
"totalPrincipalAmount": "1000.00",
"totalInterestAmount": "141.16",
"totalDelayedInterestAmount": "0.00",
"outstandingPrincipalAmount": "1000.00",
"outstandingInterestAmount": "141.16",
"outstandingDelayedInterestAmount": "0.00",
"paidPrincipalAmount": "0.00",
"paidInterestAmount": "0.00",
"paidDelayedInterestAmount": "0.00"
}
],
"createdAt": "2026-01-28 06:02:16",
"allowedInvestmentSources": [
"MANUAL",
"AUTOINVEST"
],
"limitCustomerTypes": null
}
}
{
"message": "The lender loan id field is required. (and 8 more errors)",
"errors": {
"lenderLoanId": [
"The lender loan id field is required."
],
"scheduleType": [
"The schedule type field is required."
],
"loanAmount": [
"The loan amount field is required."
],
"currency": [
"The currency field is required."
],
"interestRate": [
"The interest rate field is required."
],
"country": [
"The country field is required."
],
"lenderIssueDate": [
"The lender issue date field is required."
],
"schedule": [
"The schedule field is required."
],
"clientType": [
"The client type field is required."
]
}
}
/createLoan
Bearer authentication of the form Bearer <token>, where token is your auth token.
The media type of the request body
Unique Loan ID on the lender side
Schedule type of the loan
Total Loan Amount in specified currency
Current validation restricted to EUR
Annual interest rate percentage
Loan Originator country (3 digit ISO code)
Loan’s actual creation date on the lender side
Required when clientType is CONSUMER
Required when clientType is BUSINESS_WITH_COLLATERAL
Required when clientType is BUSINESS_WITHOUT_COLLATERAL
Request Preview
Response
Response will appear here after sending the request
Authentication
Bearer token. Bearer authentication of the form Bearer <token>, where token is your auth token.
Body
Unique Loan ID on the lender side
Total Loan Amount in specified currency
Annual interest rate percentage
Loan Originator country (3 digit ISO code)
Loan’s actual creation date on the lender side
CONSUMERBUSINESS_WITH_COLLATERALBUSINESS_WITHOUT_COLLATERALRequired when clientType is CONSUMER
Required when clientType is BUSINESS_WITH_COLLATERAL
Required when clientType is BUSINESS_WITHOUT_COLLATERAL
Responses
Last updated today