/Convert with commercial rates

/Convert with commercial rates



Request Endpoint

https://test-api.tbcbank.ge/v1/exchange-rates/commercial/convert
https://api.tbcbank.ge/v1/exchange-rates/commercial/convert

Authorization

Authorization TypeDescription
None

Request Parameters

Header

ParameterTypeDescription
apikeystringDeveloper app API key

Query Parameters

ParameterTypeDescription
amount (required)numbervalue to be converted
from (required)stringbase currency from which given amount should be converted
to (required)stringtarget currency to which amount should be converted

Request Sample

curl \
  'https://test-api.tbcbank.ge/v1/exchange-rates/commercial/convert?amount=10&from=usd&to=gel' \
  --header 'apikey: I3Rz8QXBVPofKtucsenkW7g2n7aDwqBg' \
  --header 'Accept: application/json' \
  --compressed

Response Parameters

ParameterTypeDescription
fromstringbase currency from which given amount was converted
tostringtarget currency to which given amount was converted
amountnumberamount that was converted
valuenumberconversion result

Response Sample

{
  "from": "USD",
  "to": "GEL",
  "amount": 1,
  "value": 3.265
}

Error Response

In case of error, standard response in problem json will be returned.

Details can be found at Error Code Description.

Recipe