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 |
| UID | M | 5/50 | Alphanumeric | Username for validation. |
| PWD | M | 5/50 | Alphanumeric | Password for validation, 3DES encrypted. |
| rspSign | M | 32/50 | Alphanumeric | Digital signature of RSP. (Please refer to Digital signature) |
| 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