Skip to content

Calculation of the amount owed for current or early repayment

POST

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.

  1. 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)

  1. 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

contractId*

Contract identifier. Path parameter

Type
integer
Required
Format
"int64"
date*

The date on which the amount owed is calculated. Path parameter. The format is YYYY-MM-DD for example 2019-06-24

Type
string
Required
Format
"date"
isEarlyRepayment*

Calculate taking into account early repayment. Request parameter

Type
boolean
Required

Query Parameters

isCalcOnNearestPaymentDate

isCalcOnNearestPaymentDate

Type
boolean
Default
false
isFullTrancheInterestForEarlyRepayment

isFullTrancheInterestForEarlyRepayment

Type
boolean
Default
false
isIncludeCalculatedPenalty

isIncludeCalculatedPenalty

Type
boolean
Default
true

Responses

OK

*/*
object
object
Format"date"

Fees

Format"double"

Interest prepayment. A positive value is returned. To calculate the amount owed, this value must be subtracted

Format"double"

Interest on principal

Format"double"
Format"double"
Format"double"

Penalties

Format"double"

Prepayment of the principal. A positive value is returned. To calculate the amount owed, this value must be subtracted

Format"double"

OS (principal)

Format"double"

State Duty

Format"double"

The total amount of all payments

Format"double"
Valid values"error""ok"
Format"int64"