Public Pei loan 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.
| Description |
---|---|
| Minimum number of installments available. |
| 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
}
| Description |
---|---|
| Total amount with cost of installments |
| APR |
| Is installment factored. |
| Description |
---|---|
| Due date |
| Final due date |
| Principal |
| Contract Interest |
| Lending fee |
| Notice and payment fee |
| Installment fee |
| Total amount of installment |