# Undo a Waive Charge Transaction

`PUT /lokta-lms/api/v1/loans/{loanId}/transactions/{transactionId}`

Undo a Waive Charge Transaction

## Parameters
- `loanId` (path, integer, required): loanId
- `transactionId` (path, integer, required): transactionId

## Request body (application/json)
- `id` (integer)
- `loanId` (integer)

## Responses
- `200`: OK

## Response fields
- `changes` (PutChargeTransactionChangesResponseChanges)
- `clientId` (integer)
- `loanId` (integer)
- `officeId` (integer)
- `resourceExternalId` (string)
- `resourceId` (integer)
- `subResourceExternalId` (string)
- `subResourceId` (integer)

## Example request (cURL)
```bash
curl -X PUT \
  'http://localhost:8080/lokta-lms/api/v1/loans/{loanId}/transactions/{transactionId}' \
  -u '{username}:{password}' \
  -H 'Tenant-Identifier: default' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": 1,
  "loanId": 2
}'
```

## Example response
```json
{
  "changes": {
    "amount": 10,
    "date": "19 August 2026",
    "externalId": "95174ff9-1a75-4d72-a413-6f9b1cb988b7",
    "feeChargesPortion": 10
  },
  "clientId": 1,
  "loanId": 1,
  "officeId": 1
}
```

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