计算汇率
参数说明
Request
name | type | required | desc | example value |
---|---|---|---|---|
param | JSONObject | YES | 参数 | |
─epayAccount | string | YES | 您的EPAY账号 | test2020@epay.com |
─version | string | YES | 版本号 | V2.0.0 |
─category | string | YES | 汇款方式:银行BANK,现金CASH | BANK |
─paymentAmount | string | NO | 付款金额 | 4000.00 |
─receiveAmount | string | NO | 收款金额 | 4000.00 |
─paymentCurrency | string | YES | 付款币种,见currencyType说明 | BRL |
─receiveCurrency | string | YES | 收款币种,见currencyType说明 | USD |
─countryCode | string | YES | 国家编码:ISO 2位 | BR |
sign | string | YES | 签名,>=64位字符串长度 | xxxxxxxxxsignxxxxx |
Response
name | type | required | desc | example value |
---|---|---|---|---|
sign | string | YES | 签名 | xxxxxxxxxsignxxxxx |
epayAccount | string | YES | 您的EPAY账号 | test2020@epay.com |
version | string | YES | 版本号 | V2.0.0 |
code | integer | YES | 状态码 1:成功 | 1 |
message | string | YES | 提示 | success |
data | JSONObject | YES | 数据 | |
─category | string | YES | 汇款方式:银行BANK,现金CASH | BANK |
─countryCode | string | YES | 国家编码:ISO 2位 | BR |
─paymentAmount | string | YES | 付款金额 | 4000.00 |
─paymentCurrency | string | YES | 付款币种 | BRL |
─receiveAmount | string | YES | 收款金额 | 4000.00 |
─receiveCurrency | string | YES | 收款币种 | USD |
─rate | string | YES | 汇率 | 0.184833 |
─fee | string | YES | 手续费 | 5.17 |
─rateMode | string | YES | 汇率模式0 美金到目标币种,1目标币种到美金 | 1 |
参数示例
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/payinApi/calculateAmount' \
--header 'Content-Type: application/json' \
--data-raw '{
"param": {
"epayAccount": "test2020@epay.com",
"category": "BANK",
"paymentAmount": "4000",
"receiveAmount": "",
"receiveCurrency": "USD",
"paymentCurrency": "BRL",
"countryCode": "BR",
"version": "V2.0.0"
},
"sign": "{{sign}}"
}'
RequestExample
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/payinApi/calculateAmount' \
--header 'Content-Type: application/json' \
--data-raw '{
"param": {
"epayAccount": "test2020@epay.com",
"category": "BANK",
"paymentAmount": "4000",
"receiveAmount": "",
"receiveCurrency": "USD",
"paymentCurrency": "BRL",
"countryCode": "BR",
"version": "V2.0.0"
},
"sign": "{{sign}}"
}'
ResponseExample
{
"epayAccount": "test2020@epay.com",
"version": "V2.0.0",
"code": 1,
"message": "success",
"data": {
"category": "BANK",
"countryCode": "AU",
"locationId": "10090054",
"paymentAmount": "111.11",
"paymentCurrency": "USD",
"receiveAmount": "100.00",
"receiveCurrency": "AUD",
"rate": "1.111111",
"fee": "72.00",
"rateMode": "0"
}
"sign": "{{sign}}"
}