Currency

Request Currency Conversion Rate & Value Multiple Exchanger - POST

post/convert

Request body

amountnumber float required
fromstring required
tostring required
decimalPointsinteger
cacheTimestring

Example request

{
  "amount": 2.5,
  "from": "USD",
  "to": "AED",
  "decimalPoints": 4,
  "cacheTime": "120s",
  "exchanger": [
    {
      "name": "yahoo"
    },
    {
      "name": "google"
    },
    {
      "name": "themoneyconverter",
      "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:21.0) Gecko/20100101 Firefox/21.0"
    }
  ]
}

Response

successful operation

fromstring
tostring
originalAmountnumber float
exchangeValuenumber float
convertedAmountnumber float
convertedTextstring
exchangerNamestring
rateDateTimestring
rateFromCacheboolean

Example response

{
  "from": "USD",
  "to": "AED",
  "originalAmount": 1.54,
  "exchangeValue": 17.91,
  "convertedAmount": 27.5814,
  "convertedText": "1 USD is worth 3.675 AED",
  "exchangerName": "google",
  "rateDateTime": "2018-09-25T12:17:17Z"
}

Changes

Changed in 4 of the 13 revisions of this API.110

    • api operation id ConvertCurrency removed and replaced with ConvertCurrencyPost

      api-operation-id-removed

    • added the non-success response with the status

      response-non-success-status-added

    • added the non-success response with the status

      response-non-success-status-added

    • added the success response with the status

      response-success-status-added

    • api operation id addPet removed and replaced with ConvertCurrency

      api-operation-id-removed

    • the endpoint scheme security petstore_auth was removed from the API

      api-security-removed

  • 319dc642052614See the full diff
    • removed the success response with the status

      response-success-status-removed

    • api operation id ConvertCurrencyPost removed and replaced with addPet

      api-operation-id-removed

    • the endpoint scheme security petstore_auth was added to the API

      api-security-added

    • removed the non-success response with the status

      response-non-success-status-removed

    • removed the non-success response with the status

      response-non-success-status-removed