Currency Calculator

This API calculate the equivalent of target currency rate for a specific currency amount based on input information.

API Information

URL

/currencyCalculator

Method

POST

Version

1.0

Scope

Information Services

Authorization Flow

Client Credentials


Input Information

Name Format Description Required/Optional

SourceCurrencyCode

String Source currency code Required

SourceAmount

Decimal Source amount Required

TargetCurrencyCode

String Target currency code Required


Output Information

Name Format Description

TargetCurrencyCode

String Target currency code

RateDate

yyyy-MM-ddTHH24:mm:ss Currency rate date

SellRate

Decimal Bank's currency sales rate

SellAmount

Decimal Bank sales amount

Example

Request:

{
    "SourceCurrencyCode": "TL",
    "SourceAmount": "100",
    "TargetCurrencyCode": "USD"
}

Response:

{
    "Status": {
        "Code": "APIGW000000",
        "Description": "Success",
        "ObjectID": "502510dc-cdbd-4ae6-8501-6e96e6c784cc"
    },
    "Data": {
        "Currency": {
            "RateDate": "2020-03-02T10:58:58.8384333+03:00",
            "SellAmount": "16.06",
            "SellRate": "6.22339",
            "TargetCurrencyCode": "USD"
        }
    }
}