Calculation of the amount owed for current or early repayment
Calculation of arrears on the current payment or for full early repayment.
Using this method, you can get the calculated data on the debt as of the date both for early repayment and for the amount of current debt.
- If true is passed to {isEarlyRepayment}, then the debt will be calculated for full early repayment. The amount owed will include:
-
Calculated debt as of the date in terms of interest, fines and other types of amounts
-
Fixed assets until the end of the loan term (i.e. all future tranches are included)
- If false - then the calculated debt will be displayed only for tranches for which the maturity date has already come, ie.
if the payment dates are as follows:
09/10/17
10.10.17
10.11.17
10.12.17
we make a request for 10/20/17, despite the fact that the contract is in delay, we receive a debt on the tranche of 09/10/17 (OS, %%, fines) and 10.10.17 (OS, %%, including fines accrued on 10/20/17)
Interest will not be calculated for the period from 11.10 to 20.10, since the payment date for them has not yet come, i.e. they are not yet due.
If - it is necessary to receive the calculated amount of penalties and interest for the current date, then it is necessary to use the method in the {isEarlyRepayment} - "true" mode. At the same time, the OS debt will be taken into account in full
Parameters
Path Parameters
Contract identifier. Path parameter
"int64"The date on which the amount owed is calculated. Path parameter. The format is YYYY-MM-DD for example 2019-06-24
"date"Calculate taking into account early repayment. Request parameter
Query Parameters
isCalcOnNearestPaymentDate
falseisFullTrancheInterestForEarlyRepayment
falseisIncludeCalculatedPenalty
trueResponses
OK
"date"Fees
"double"Interest prepayment. A positive value is returned. To calculate the amount owed, this value must be subtracted
"double"Interest on principal
"double""double""double"Penalties
"double"Prepayment of the principal. A positive value is returned. To calculate the amount owed, this value must be subtracted
"double"OS (principal)
"double"State Duty
"double"The total amount of all payments
"double""error""ok""int64"