Exchange Rate Query


Through this API, real-time conversion exchange rates can be inquired in real time, and exchange rates in WeChat Pay and Alipay are currently supported.

The settlement currency is CNY.

[!TIP|style:flat]

It is the exchange rate fluctuation period 09: 00-11: 00 in the morning.

API URL:https://mapi.yabandpay.com/Payments

Method:POST

POST data type:Json

Parameter Type Description Required
user String the UID or email of cashier account, It is recommended to use UID Required
sign String signature Required
method String v3.CreatePaymentsAlipayMiniPay Required
time Long timestamp Required
  • Parameter
Parameter Type Description Required
settlement_currency String Currency Required
sub_method String WeChat Pay,Alipay Required
  • Currency
Country Code (ISO 4217) Description
Singapore SGD
Norwegian Krone NOK
UAE Dirham AED WeChat Pay does not support
Philippine Peso PHP WeChat Pay does not support
Swedish Krona SEK
New Zealand Dollar NZD
Czech Koruna CZK WeChat Pay does not support
Malaysia MYR WeChat Pay does not support
British Pound GBP
Danish Krone DKK
Euro EUR
Indonesian Rupiah IDR WeChat Pay does not support
Sri Lankan Rupee LKR WeChat Pay does not support
Thai Baht THB
South Africa ZAR WeChat Pay does not support
US dollar USD
Macau, China MOP WeChat Pay does not support
Canadian Dollar CAD
Japanese Yen JPY
Russian Ruble RUB
South Korea KRW
Saudi Arabia AUD
Taiwan TWD WeChat Pay does not support inquiries
Swiss Franc CHF
Hong Kong Dollar HKD

Signature:

Lexicographical sequence and URL key-value format new string:

"method=v3.QueryExchangeRate&settlement_currency=EUR&sub_method=Alipay&time=1546588959&user=016683"

Use stringA and secret_key to get stringSign

Get Signature:

"1b4fd2e30e88d830148480dd9bf365259f54b657aa6bb8872d4b8a670e95ca19"

Example Request:

{
    "user": "016683",
    "sign": "1b4fd2e30e88d830148480dd9bf365259f54b657aa6bb8872d4b8a670e95ca19",
    "method": "v3.QueryExchangeRate",
    "time": 1546588959,
    "data": {
        "settlement_currency": "EUR",
        "sub_method": "Alipay"
    }
}

Example Response:

{
    "status": true,
    "code": "200",
    "data": {
        "exchange_rate": "7.850000"
    },
    "message": ""
}

results matching ""

    No results matching ""