Foreign Exchange Rate API

In order to know the current foreign exchange (FX) of each supported currency, this API allows merchants to know the current exchange rate for each supported currency.


Response (JSON format)

Variable / ParameterType Format / Max LengthDescription / Example
base3 chars ISO-4217 currency codeCurrency to be compared with MYR (USD, SGD, etc)
reqtimeYYYYMMDD20170128
ratefloat(2,4) in array1.2888
[currency] under "rate"3 chars ISO-4217 currency codeMYR

Formula of skey

md5( {domain}{verify_key}{reqTime} )

Will list out the list of currency, exchange rate compared to 1 MYR with rate expiration date/time.

Query Params
number
required

Merchant ID in PG system.

number
required

Request date & time, e.g., 20161202

number
required

Predefined value : 1: BNM, 2: Maybank, 3: WeChat

number
required

For merchant access verification purpose

Response

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json