POST /repay

Repay a Loan - /repay

Route POST https://borrow.pods.finance/v1/repay

Description This route is used to repay a borrowed amount either partially or fully.

Request

Body The request should have the following parameters:

  • loan_id: The ID of the loan to repay (e.g., "abc123").

  • repayment_amount: The amount to repay (e.g., 50).

Example

{
  "loan_id": "abc123",
  "repayment_amount": 50
}

Responses

Success (200 OK) If the request is successful, the API will return a status code of 200 with the following response structure.

Example Response

{
  "status": "OK",
  "remaining_balance": 50
}

Last updated