Exchange Rate Module
Success Response
| Parameter |
Data Type |
Description |
| bookingReference |
String |
The unique reference code given to the user used when a request is made. |
| currencyFrom |
String |
The base currency. If X PHP = Y USD, PHP is the base currency. This will contain sub parameters for code and name. |
| currencyTo |
String |
The target currency. If X PHP = Y USD, USD is the target currency. This will contain sub parameters for code and name. |
| rate |
Decimal |
The amount of target currency for 1 base currency. |
| scale |
Integer |
The number of decimal places to be used for the result. If there is no scale provided, the default scale will be 3. |
| amount |
Decimal |
The amount of base currency to be converted to target currency. |
| convertedAmount |
Decimal |
The amount multiplied to the rate. |
Response
200 OK

{
"bookingReference":"aaaaBBBBcCcC1234",
"currencyFrom":{
"code":"USD",
"name":"US Dollar"
},
"currencyTo":{
"code":"PHP",
"name":"Philippine Peso"
},
"rate": 53.15,
"amount": 5,
"scale": 3,
"convertedAmount": 265.75
}