---
title: "Restructure a loan"
method: POST
path: "/v2/loans/{originalLoanId}/restructure"
tags: ["Loans"]
---

# Restructure a loan

`POST /v2/loans/{originalLoanId}/restructure`

## Request

- Base URL: `https://sandbox.pismolabs.io/lending`
- URL: `https://sandbox.pismolabs.io/lending/v2/loans/{originalLoanId}/restructure`
- Auth: HTTP bearer

Restructures an existing loan based on provided details.

## Path parameters

- `originalLoanId` string, uuid, required

## Headers

- `Idempotency-Key` string, uuid, required

## Request body

- object
  - `installment_plan_id` string, required: Installment plan ID
  - `loan_product_id` string, required: Loan product ID
  - `number_of_installments` integer, required: Number of installments

## Response `200`

Restructure request accepted. Processing is asynchronous, so the new loan is not returned. The original loan transitions to `RENEGOTIATED`; retrieve it and read its `restructure_loan_id` to obtain the new loan ID.

- object
  - `tracking_id` string: Tracking ID for the asynchronous restructure processing. Matches the idempotency key sent in the request.

## Other responses

- `400`: Invalid request.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/pismo/apis/lending.md) - [All operations](https://skmtc.dev/pismo/apis/lending/llms.txt) - [OpenAPI document](https://skmtc.dev/pismo/apis/lending/revisions/a288022e3d8b?raw)
