Forex: Get Forex Rate
RSP can use this method to retrieve the GloRemit quoted forex rate.
Definition:
GET /v1/payments/forex/rates?CurrFrom={CurrFrom}&CurrTo={CurrTo}
Sample Request:
curl -v "http://staging-gloremit.tranglo.com:2014/v1/payments/forex/rates?CurrFrom=USD&CurrTo=MYR" \
-H "Authorization: GLOREMIT <UID>:<PWD> :<rspSign>"
Request Description
Parameter Name | Required | Min/Max Length | Type | Remark |
rspSign | M | 32/50 | Alphanumeric | Digital signature of RSP |
UID | M | 5/50 | Alphanumeric | Username for validation |
PWD | M | 5/50 | Alphanumeric | Password for validation |
CurrFrom | M | 3/6 | Alphanumeric | ISO 4217 Currency Code (Sell) |
CurrTo | M | 3/6 | Alphanumeric | ISO 4217 Currency Code (Buy) |
Response Description
Sample Response:
{ "CurrencyCodeFrom":"USD", "CurrencyCodeTo":"MYR", "CurrencyRate": 4.39160000 }
Parameter Name | Required | Type | Remark |
CurrFrom | M | Alphanumeric | Currency code according to ISO 4217 |
CurrTo | M | Alphanumeric | Currency code according to ISO 4217 |
CurrRate | M | Numeric | The exchange rate according to currency pair, up to 4 decimal points |
FR_Key | O | Alphanumeric | Key/Token for Reserved Forex |
Expiry_Datetime | O | DateTime | Expiry date for the FR_Key |
M= Mandatory, C= Conditional, O= Optional