计算汇率
参数说明
Request
name | type | required | desc | example |
---|---|---|---|---|
param | JSONObject | YES | 参数 | |
─epayAccount | string | YES | 您的EPAY账号 | test2020@epay.com |
─version | string | YES | 版本号 | V2.0.0 |
─category | string | YES | 汇款方式:银行BANK,现金CASH | BANK |
─amount | string | NO | 订单金额 | 可为空 |
─receiveAmount | string | NO | 收款金额 | 100 |
─settlementCurrency | string | YES | 结算币种 | USD |
─receiveCurrency | string | YES | 收款币种 | AUD |
─countryCode | string | YES | 国家编码:ISO 2位 | AU |
─locationId | string | YES | 银行网点位置ID | 10090054 |
─transactionType | string | YES | 支持的交易模式 | C2C |
─channelCode | string | NO | 渠道编码 | 50 |
─senderCountry | string | NO | 付款国家,使用sentbe时必填 | AU |
─merchantOrderNo | string | NO | 商户订单号,使用sentbe时必填 | No5547 |
sign | string | YES | 签名 |
Response
name | type | required | desc | example |
---|---|---|---|---|
sign | string | YES | 签名 | |
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位 | AU |
─locationId | string | YES | 银行网点位置ID | 10090054 |
─amount | string | YES | 订单金额 | 111.11 |
─settlementCurrency | string | YES | 结算币种 | USD |
─receiveAmount | string | YES | 收款金额 | 100.00 |
─receiveCurrency | string | YES | 收款币种 | AUD |
─rate | string | YES | 汇率 | 1.111111 |
─fee | string | YES | 手续费 | 72.00 |
─rateMode | string | YES | 汇率模式0 美金到目标币种,1目标币种到美金 | 0 |
参数示例
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/payoutApi/calculateAmount' \
--header 'Content-Type: application/json' \
--data-raw '{
"param": {
"epayAccount": "test2020@epay.com",
"category": "BANK",
"amount": "",
"receiveAmount": "100",
"settlementCurrency": "USD",
"receiveCurrency": "AUD",
"countryCode": "AU",
"locationId": "10090054",
"transactionType": "C2C",
"version": "V2.0.0"
},
"sign": "{{sign}}"
}'
RequestExample
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/payoutApi/calculateAmount' \
--header 'Content-Type: application/json' \
--data-raw '{
"param": {
"epayAccount": "test2020@epay.com",
"category": "BANK",
"amount": "",
"receiveAmount": "100",
"settlementCurrency": "USD",
"receiveCurrency": "AUD",
"countryCode": "AU",
"locationId": "10090054",
"transactionType": "C2C",
"version": "V2.0.0"
},
"sign": "{{sign}}"
}'
ResponseExample
{
"sign": "19CE078E81A9A5FC17290D47E238ACF59106B4BFBACE2CB878A7AA4E221E68F1",
"epayAccount": "test2020@epay.com",
"version": "V2.0.0",
"code": 1,
"message": "success",
"data": {
"category": "BANK",
"countryCode": "AU",
"locationId": "10090054",
"amount": "111.11",
"settlementCurrency": "USD",
"receiveAmount": "100.00",
"receiveCurrency": "AUD",
"rate": "1.111111",
"fee": "72.00",
"rateMode": "0"
}
}