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

# Repay Loan

> Creates a new loan using specified collateral against a matched loan configuration.

**loanId** `string` *required*

The id of the loan being repaid.

**amount** `string` *required*

Amount that was repaid by the customer outside the platform

**cancel** `boolean` *required*

is the loan a cancelled loan or not

```json theme={null}
{
    "status": "success",
    "message": "Loan repayment processed successfully",
    "data": {
        "id": "67f67f0f8b28995e47bed8db",
        "borrower": "67d3267b6b2f7dfc493db74a",
        "creditor": "624598bd83067c00f691c0ca",
        "amount": 840000,
        "currency": "NGN",
        "repayment_amount": 796000,
        "repayment_date": "Wed Jul 09 2025 15:07:06 GMT+0100 (West Africa Standard Time)",
        "interest_rate": 0.3,
        "duration": 3,
        "status": "ACTIVE",
        "grace_period": 5,
        "grace_period_unit": "DAYS",
        "reason": "Personal Use",
        "created_at": "2025-04-09T14:07:11.828Z",
        "updated_at": "2025-04-09T14:07:36.091Z",
        "collaterals": [
            {
                "name": "CredPal2",
                "token_id": "67e30ac4c6ee9dd9cc0fe0e4",
                "quantity": 0
            },
            {
                "name": "CredPal",
                "token_id": "66b3dd8b7f741f367b960f26",
                "quantity": 52.36842105263158
            }
        ]
    }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.