Repayments

Simulate a repayment

Simulates the automatic daily sales repayment for a contract. Updates loan balance and creates a repayment record, but does not trigger a wallet transfer.

post/v1/capitals/lenders/contracts/{contract_id}/simulate/repayment

Request

  • Base URL
    https://api.paymongo.com
  • URL
    https://api.paymongo.com/v1/capitals/lenders/contracts/{contract_id}/simulate/repayment
  • Auth
    HTTP basic

Path parameters

contract_idstring required

Contract ID

Request body

sales_amountinteger required

Example request

{
  "sales_amount": 50000
}

Response

OK

messagestring

Example response

{
  "data": {
    "amount": 10000,
    "created_at": "2024-01-01 00:00:00+00:00",
    "currency": "PHP",
    "id": "repayment_123",
    "loan_id": "loan_123"
  },
  "message": "application submitted successfully"
}

Changes

No recorded changes to this operation across all 1 revision of this API.