CommonApiVersion 1.0.0
Get Current Exchange Rate
https://pay.globepay.co/api/v1.0/gateway/partners/{partner_code}/channel_exchange_rateGet current exchange rate from GBP to CNY provided by WeChat and Alipay(GBP 1=CNY ?). This exchange rate shown is for reference only, please refer to the real time exchange rate when processing the actual transaction.
Header
| Field | Description |
|---|---|
Accept | application/json |
Path Variable
| Field | Type | Description |
|---|---|---|
partner_code | String | Required, Partner Code |
Query Params
| Field | Type | Description |
|---|---|---|
time | Long | Required, UTC timestamp in milliseconds |
nonce_str | String | Required, Random string |
sign | String | Required, Sign |
Success 200
| Field | Type | Description |
|---|---|---|
return_code | String | Execution result |
wechat_rate | Double | Exchange rate for WeChat |
alipay_retail_rate | Double | Exchange rate for Alipay Retail Trade |
alipay_online_rate | Double | Exchange rate for Alipay Online Trade |
ERROR
| Name | Description |
|---|---|
return_code | Error Code |
return_msg | Error Description |
Error Code
| Name | Description |
|---|---|
SYSTEMERROR | Exception inside system |
INVALID_SHORT_ID | Partner code is invalid or there is no partner associated with this code |
SIGN_TIMEOUT | Sign expired, the difference between time and the server time is more than 5 minutes |
INVALID_SIGN | Invalid sign |
PARAM_INVALID | Parameters are invalid. See return_msg for more details. |
NOT_PERMITTED | Gateway payment permission has not been enabled for this partner |
INVALID_CHANNEL | Channel name is not available, check the Capitalize |
