Create Loan
Create a new loan for a borrower, if the borrower does not exist it will be created
Path parameters
-
borrower_id
string Required -
loan_id
string Required
Query parameters
-
is_migration
boolean When this parameter is set to True, the transaction will be handled as if it had occurred on the date specified in the occurred_on field, rather than the current date and time. This is useful when migrating data from a legacy system or for building test cases.
Default value is
false
.
Body
-
loan
object Additional properties are allowed.
-
occurred_on
string(date-time) Represents the date and time at which the lender reported the transaction. This field is expressed as a datetime object with timezone information and is provided for reference purposes only. Please note that the 'occurred on' date is not used in loan management operations and does not affect the processing or status of the transaction. It is provided solely to track when the lender believes the transaction occurred, regardless of when it was actually processed by the loan management system. However if the request comes with the is_migration parameter set to true the occurred_on field will be used to handle the request as if it had happened on that date.
-
request_id
string
curl \
--request POST 'https://lms.kordev.io/v1/borrowers/{borrower_id}/loans/{loan_id}/create' \
--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"},"occurred_on":"2020-01-01T10:15:20-05:00","request_id":"string"}'
{
"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"
},
"occurred_on": "2020-01-01T10:15:20-05:00",
"request_id": "string"
}
{
"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",
"id": "string",
"installment_fee_2_charge": null,
"installment_fee_charge": null,
"interest_rate": 0.3848,
"kordev_id": 42,
"origination_date": "2020-01-01T00:00:00-05:00",
"owner": "BANK_1",
"request_id": "string"
}
{
"code": 42,
"context": {},
"error": "string",
"status": "string"
}
{
"code": 42,
"context": {},
"error": "string",
"status": "string"
}
{
"code": 42,
"context": {},
"error": "string",
"status": "string"
}
{
"code": 42,
"context": {},
"error": "string",
"status": "string"
}