Exchange Rate Module
GET Exchange Rate
The Get Exchange Rate Module is used to fetch a currency exchange rate given two different currencies. To be able to use the module, the user must provide the following parameters:
| Parameter | Data Type | Required | Description |
|---|---|---|---|
| accessKey | String | Yes | The unique key given to the user used for authentication. When an invalid accessKey is given, an error code 497 will be returned. |
| currencyFrom | String | Yes | The base currency. If M PHP = N USD, PHP is the base currency. |
| currencyTo | String | Yes | The target currency. If M PHP = N USD, USD is the target currency. |
| amount | Decimal | No | The amount of base currency to be converted to target currency. This amount will be multiplied to the rate found. If there is no amount provided, the default value will be 1. Ex.: amount = 5 USD to PHP = 265.75 |
Request Samples
https://test-dcc.tlpe.io/exchange-rate/convert
http://test-dcc.tlpe.io/exchange-rate/convert?accessKey=asdfQWER1234
¤cyFrom=USD¤cyTo=PHP&amount=5