Public Pei loan calculator

https://gattin.pei.is/#/calculator

The calculator uses 2 steps to display how distributions of installments could be for certain amounts.

Note! the maximum amount is always 2.000.0000

 

Postman collection :

 

Step 1 :

The user must enter an amount that will be calculated to show installments.

Then the API call is used to get a number of installments for that amount.
API call : https://gattin.pei.is/api/paymentoptions/getpreview?amount={TheAmount}
API call result :

{ "claimOptions": { "minNumberOfInstallments": 1, "maxNumberOfInstallments": 36, "availableExtraMonths": 0 }, "creditCardOptions": { "minNumberOfInstallments": 1, "maxNumberOfInstallments": 36, "availableExtraMonths": 0 } }

 

In the result the “claimOptions” set should be used for display number of available installment´s months.

claimOptions

Description

claimOptions

Description

minNumberOfInstallments

Minimum number of installments available.

maxNumberOfInstallments

Maximum number of installments available for that certain amount

 

Step 2 :

The next API call is used to get information about the installments and APR “Árleg hlutfallstala kostnaðar“ based upon the amount and how many installments the user wants.

API call : https://gattin.pei.is/api/calculator?amount={TheAmount}&numberOfInstallments={NumberOfInstallments}

API call result:

{ "installments": [ { "dueDate": "2022-11-02T00:00:00", "finalDueDate": "2022-11-02T00:00:00", "principal": 3979.0, "contractInterest": 86.0, "lendingFee": 0.0, "noticeAndPaymentFee": 90.000, "installmentFee": 14.0, "total": 4169.000 }, { "dueDate": "2022-12-02T00:00:00", "finalDueDate": "2022-12-02T00:00:00", "principal": 4021.0, "contractInterest": 43.0, "lendingFee": 0.0, "noticeAndPaymentFee": 90.000, "installmentFee": 14.0, "total": 4168.000 } ], "total": 8337.000, "annualPercentageRate": 40.273596537069533951580524450, "isFactored": false }

 

root

Description

root

Description

total

Total amount with cost of installments

annualPercentageRate

APR

isFactored

Is installment factored.

installments

Description

installments

Description

dueDate

Due date

finalDueDate

Final due date

principal

Principal

contractInterest

Contract Interest

lendingFee

Lending fee

noticeAndPaymentFee

Notice and payment fee

installmentFee

Installment fee

total

Total amount of installment