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 NameRequiredMin/Max LengthTypeRemark
rspSignM32/50AlphanumericDigital signature of RSP
UIDM5/50AlphanumericUsername for validation
PWDM5/50AlphanumericPassword for validation
CurrFromM3/6AlphanumericISO 4217 Currency Code (Sell)
CurrToM3/6AlphanumericISO 4217 Currency Code (Buy)

Response Description

Sample Response:

{
    "CurrencyCodeFrom":"USD",
    "CurrencyCodeTo":"MYR",
    "CurrencyRate": 4.39160000
}
Parameter NameRequiredTypeRemark
CurrFromMAlphanumericCurrency code according to ISO 4217
CurrToMAlphanumericCurrency code according to ISO 4217
CurrRateMNumericThe exchange rate according to currency pair, up to 4 decimal points
FR_KeyOAlphanumericKey/Token for Reserved Forex
Expiry_DatetimeODateTimeExpiry date for the FR_Key

M= Mandatory, C= Conditional, O= Optional