Body
-
loan
object Additional properties are allowed.
-
request_id
string Optional field that will be returned unmodified in each response. Especially useful for keeping track of responses in batch requests.
POST
/v1/borrowers/loans/simulate
curl \
--request POST 'https://lms.kordev.io/v1/borrowers/loans/simulate' \
--header "Content-Type: application/json" \
--data '[{"loan":{"amount_financed":163333.34,"config_id":"string","daily_fee_charge":null,"delinquency_interest_rate":0.3848,"due_dates":["2020-02-01T23:59:59.999999-05:00, 2020-03-01T23:59:59.999999-05:00"],"guarantee_provider":"FGA","installment_fee_2_charge":null,"installment_fee_charge":null,"interest_rate":0.3848,"origination_date":"2020-01-01T00:00:00-05:00","owner":"BANK_1"},"request_id":"string"}]'
Request examples
[
{
"loan": {
"amount_financed": 163333.34,
"config_id": "string",
"daily_fee_charge": null,
"delinquency_interest_rate": 0.3848,
"due_dates": [
"2020-02-01T23:59:59.999999-05:00, 2020-03-01T23:59:59.999999-05:00"
],
"guarantee_provider": "FGA",
"installment_fee_2_charge": null,
"installment_fee_charge": null,
"interest_rate": 0.3848,
"origination_date": "2020-01-01T00:00:00-05:00",
"owner": "BANK_1"
},
"request_id": "string"
}
]
Response examples (200)
{
"failed": [
{
"error_detail": "string",
"request_id": "string",
"status_code": 42
}
],
"succeeded": [
{
"amortization_plan": [
{
"daily_fee_payment": 42.0,
"end_date": "2025-05-04T09:42:00Z",
"installment_fee_2_payment": 42.0,
"installment_fee_payment": 42.0,
"interest_payment": 42.0,
"principal_payment": 42.0,
"start_date": "2025-05-04T09:42:00Z"
}
],
"attributes": {
"amount_financed": 42.0,
"due_dates": [
"2025-05-04T09:42:00Z"
],
"interest_rate": 42.0
},
"request_id": "string",
"summary": {
"fixed_installment_amount": 42.0,
"total": 42.0,
"total_daily_fee": 42.0,
"total_installment_fee": 42.0,
"total_installment_fee_2": 42.0,
"total_interest": 42.0
}
}
]
}
Response examples (400)
{
"code": 42,
"context": {},
"error": "string",
"status": "string"
}
Response examples (404)
{
"code": 42,
"context": {},
"error": "string",
"status": "string"
}
Response examples (409)
{
"code": 42,
"context": {},
"error": "string",
"status": "string"
}
Response examples (500)
{
"code": 42,
"context": {},
"error": "string",
"status": "string"
}