Skip to content

Latest commit

 

History

History
183 lines (165 loc) · 5.05 KB

README.md

File metadata and controls

183 lines (165 loc) · 5.05 KB

Loans Payment Plan & Currency Rates Backend Application

YapıKredi & VakıfBank APIs Integration

Loans Payment Plan

Example

Request:
{
"loanTerm" : 2,
"loanAmount" : 2000
}

VakıfBank

  • Get Loan Payment Plan Loan Calculator API Documentation

    Response:
    {
    "bankName": "VAKIFBANK",
    "intRate": 1.48
    "totalInterest": 44.51,
    "monthlyCostRate": 15.2,
    "installmentAmount": 1022.25,
    "totalPaymentAmount": 2044.5
    }

YapıKredi

  • Get Loan Payment Plan Loan Payment Plan API Documentation

    Response:
    {
    "bankName": "YAPIKREDI",
    "intRate": 1.48
    "totalInterest": 44.51,
    "monthlyCostRate": 15.2,
    "installmentAmount": 1022.25,
    "totalPaymentAmount": 2044.5
    }

Combined

  • Get Loan Payment Plans

    Response:
    {
    {
    "bankName": "VAKIFBANK",
    "intRate": 1.48,
    "totalInterest": 44.51,
    "monthlyCostRate": 15.2,
    "installmentAmount": 1022.25,
    "totalPaymentAmount": 2044.51
    },
    {
    "bankName": "YAPIKREDI",
    "intRate": 1.48,
    "totalInterest": 44.51,
    "monthlyCostRate": 15.2,
    "installmentAmount": 1022.25,
    "totalPaymentAmount": 2044.51
    }
    }

Currency Rates

Request:
{
}

VakıfBank

  • Get Currency Rates F/X Currency Rates API Documentation

    Response:
    [
    {
    "currencyName": "AED",
    "sellRate": 2.091115356,
    "buyRate": 1.933910056,
    "averageRate": 2.012512706
    },
    .
    .
    .
    {
    "currencyName": "EUR",
    "sellRate": 9.274590588,
    "buyRate": 8.856414246,
    "averageRate": 9.065502417
    },
    {
    "currencyName": "GBP",
    "sellRate": 10.291438418,
    "buyRate": 9.79159723,
    "averageRate": 10.041517824
    },
    .
    .
    .
    {
    "currencyName": "USD",
    "sellRate": 7.57623,
    "buyRate": 7.20828,
    "averageRate": 7.392255
    },
    {
    "currencyName": "XAU",
    "sellRate": 473.6583813,
    "buyRate": 451.8553139,
    "averageRate": 462.7568476
    },
    {
    "currencyName": "ZAR",
    "sellRate": 0.49870258,
    "buyRate": 0.486312407,
    "averageRate": 0.492507494
    }
    ]

YapıKredi

  • Get Currency Rates Currency Rates API Documentation

    Response:
    [
    {
    "currencyName": "AED",
    "sellRate": 2.091115356,
    "buyRate": 1.933910056,
    "averageRate": 2.012512706
    },
    .
    .
    .
    {
    "currencyName": "EUR",
    "sellRate": 9.274590588,
    "buyRate": 8.856414246,
    "averageRate": 9.065502417
    },
    {
    "currencyName": "GBP",
    "sellRate": 10.291438418,
    "buyRate": 9.79159723,
    "averageRate": 10.041517824
    },
    .
    .
    .
    {
    "currencyName": "USD",
    "sellRate": 7.57623,
    "buyRate": 7.20828,
    "averageRate": 7.392255
    },
    {
    "currencyName": "XAU",
    "sellRate": 473.6583813,
    "buyRate": 451.8553139,
    "averageRate": 462.7568476
    },
    {
    "currencyName": "ZAR",
    "sellRate": 0.49870258,
    "buyRate": 0.486312407,
    "averageRate": 0.492507494
    }
    ]

You need the application.yaml file for run the application

For Example:
vakifbankconfig:
client-id: #YapiKredi Personal Client ID
client-secret: #YapiKredi Personal Client Secret
token-url: https://apigw.vakifbank.com.tr:8443/auth/oauth/v2/token
loan-url: https://apigw.vakifbank.com.tr:8443/loanCalculator
currency-rates-url: https://apigw.vakifbank.com.tr:8443/getCurrencyRates

yapikrediconfig:
client-id: #YapiKredi Personal Client ID
client-secret: #YapiKredi Personal Client Secret
token-url: https://api.yapikredi.com.tr/auth/oauth/v2/token
loan-url: https://api.yapikredi.com.tr/api/credit/calculation/v1/loanPaymentPlan
currency-rates-url: https://api.yapikredi.com.tr/api/investmentrates/v1/currencyRates