# Preview Re-Amortized Schedule

`GET /lokta-lms/api/v1/loans/{loanId}/transactions/reamortization-preview`

Generates a preview of the re-amortized loan schedule based on the provided parameters without creating any transactions or modifying the loan.

## Parameters
- `loanId` (path, integer, required): loanId
- `reAmortizationInterestHandling` (query, string, required): The interest handling type (DEFAULT, WAIVE_INTEREST, EQUAL_AMORTIZATION_INTEREST_SPLIT)

## Responses
- `default`: default response

## Response fields
- `currency` (CurrencyData)
- `futurePeriods` (array of LoanSchedulePeriodData)
- `loanTermInDays` (integer)
- `periods` (array of LoanSchedulePeriodData)
- `totalCredits` (number)
- `totalFeeChargesCharged` (number)
- `totalInterestCharged` (number)
- `totalOutstanding` (number)
- `totalPaidInAdvance` (number)
- `totalPaidLate` (number)
- `totalPenaltyChargesCharged` (number)
- `totalPrincipalDisbursed` (number)
- `totalPrincipalExpected` (number)
- `totalPrincipalPaid` (number)
- `totalRepayment` (number)
- `totalRepaymentExpected` (number)
- `totalWaived` (number)
- `totalWrittenOff` (number)

## Example request (cURL)
```bash
curl -X GET \
  'http://localhost:8080/lokta-lms/api/v1/loans/{loanId}/transactions/reamortization-preview?reAmortizationInterestHandling={reAmortizationInterestHandling}' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: default'
```

## Example response
```json
{
  "currency": {
    "code": "string",
    "decimalPlaces": 1,
    "displayLabel": "string",
    "displaySymbol": "string"
  },
  "futurePeriods": [
    {}
  ],
  "loanTermInDays": 1,
  "periods": [
    {}
  ]
}
```

Interactive: https://developer.lokta.ai/reference.html#operation/previewReAmortizeLoanSchedule
