FOREX: Get Forex Next Scheduled Rate
RSP can use this method to retrieve the GloRemit scheduled next rate with the effective date time when the new rate will apply.
Definition:
GET /v1/payments/forex/nextrates?CurrFrom={CurrFrom}&CurrTo={CurrTo}
Sample Request:
>curl -v "http://staging-gloremit.tranglo.com:2014/v1/payments/forex/nextrates?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:
{
"EffectiveDateTime":"",
"CurrFrom":"USD",
"CurrTo":"MYR",
"CurrRate":0.0
}
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. |
EffectiveDateTime | M | Alphanumeric | Effective Date Time. Date Format: MM/dd/YYYY HH:MM |
M= Mandatory, C= Conditional, O= Optional