Create Loan Restructurings

POST /v1/borrowers/loans/restructurings/create

Restructures a loan, most attributes are optional so that only the attributes that need to be changed are specified

Query parameters

  • 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.

application/json

Body

  • id string

    Optional field that will be returned unmodified in each response. Especially useful for keeping track of responses in batch requests.

  • Additional properties are allowed.

    Hide loan_restructuring attributes Show loan_restructuring attributes object
  • 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.

Responses

POST /v1/borrowers/loans/restructurings/create
curl \
 --request POST 'https://lms.kordev.io/v1/borrowers/loans/restructurings/create' \
 --header "Content-Type: application/json" \
 --data '[{"borrower_id":"string","id":"string","loan_restructuring":{"amortization_method":null,"amount_financed":null,"config_id":"string","delinquency_interest_rate":null,"due_dates":[null],"effective_date":"2025-05-04T09:42:00Z","id":"string","installment_fee":null,"interest_rate":null,"loan_id":"string","manual_pmts":{"additionalProperty1":42,"additionalProperty2":42}},"occurred_on":"2020-01-01T10:15:20-05:00"}]'
Request examples
[
  {
    "borrower_id": "string",
    "id": "string",
    "loan_restructuring": {
      "amortization_method": null,
      "amount_financed": null,
      "config_id": "string",
      "delinquency_interest_rate": null,
      "due_dates": [
        null
      ],
      "effective_date": "2025-05-04T09:42:00Z",
      "id": "string",
      "installment_fee": null,
      "interest_rate": null,
      "loan_id": "string",
      "manual_pmts": {
        "additionalProperty1": 42,
        "additionalProperty2": 42
      }
    },
    "occurred_on": "2020-01-01T10:15:20-05:00"
  }
]
Response examples (207)
{
  "failed": [
    {
      "borrower_id": "string",
      "error_detail": "string",
      "request_id": "string",
      "status_code": 42
    }
  ],
  "succeeded": [
    {
      "amortization_method": null,
      "amount_financed": null,
      "config_id": "string",
      "delinquency_interest_rate": null,
      "due_dates": [
        null
      ],
      "effective_date": "2025-05-04T09:42:00Z",
      "id": "string",
      "installment_fee": null,
      "interest_rate": null,
      "kordev_id": 42,
      "manual_pmts": {
        "additionalProperty1": 42,
        "additionalProperty2": 42
      },
      "request_id": "string"
    }
  ]
}
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"
}