Convert Currency

From KartRocket API
Jump to: navigation, search

Request

User can Convert Currency making a HTTP GET Request on the following URL:


YOUR_STORE_URL_ON_KARTROCKET.'index.php?route=feed/web_api/convert_currency&key'=TESTAPI

Example

http://test.kartrocket.co/index.php?route=feed/web_api/convert_currency&key=TESTAPI

Following is the JSON data format to be posted on above URL.


{
     "price":"2",
     "from":"USD",
     "to":INR"
     }

Response

You will get the following response to the above GET request.

{
     "success":true,
     "price": 136.05442176871
}