> ## Documentation Index
> Fetch the complete documentation index at: https://docs.midasprotocol.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Repay Loan

> Make a repayment on an active loan

## Request

<ParamField body="amount" type="number" required>Amount to repay. Must be positive.</ParamField>

```bash theme={null}
curl -X POST https://api.midasprotocol.org/lending/repay/loan-uuid \
  -H "Authorization: Bearer pp_your_key" \
  -H "Content-Type: application/json" \
  -d '{ "amount": 55 }'
```

## Response

```json theme={null}
{
  "loanId": "uuid",
  "amountPaid": "55.00",
  "totalRepaid": "55.00",
  "totalOwed": "105.00",
  "remaining": "50.00",
  "status": "ACTIVE",
  "collateralReturned": false
}
```

When fully repaid, `status` becomes `REPAID` and `collateralReturned` becomes `true`.
