Epay转账接口
参数说明
Request
name | type | required | desc | example |
---|---|---|---|---|
param | JSONObject | YES | 参数 | |
─epayAccount | string | YES | 您的EPAY账号 | test2020@epay.com |
─merchantName | string | YES | 您的名称 | merchantName |
─merchantOrderNo | string | YES | 您的订单号 | 2021041409022211 |
─amount | string | YES | 金额 | 10 |
─currency | string | YES | 币种USD,EUR,HKD,GBP,JPY | USD |
─notifyUrl | string | YES | 回调地址 | https://openapi.alipay.com/gateway.do |
─receiveEpayAccount | string | NO | 收款Epay账号 | 11@qq.com |
─version | string | YES | 版本号 | V2.0.0 |
─remark | string | NO | 备注 | |
─extendFields | JSONObject | NO | 您的扩展字段 | {"test": "test"} |
sign | string | YES | 签名 | 20AF5C801E96D105D5354AF2A3C8BB0423092F2F2B6D631412C9742047C2EF0X |
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 | 数据 | |
─merchantName | string | YES | 您的名称 | merchantName |
─receiveEpayAccount | string | YES | 收款PAY账号 | 11@qq.com |
─merchantOrderNo | string | YES | 您的订单号 | 2021041409022211xx |
─epayOrderNo | string | YES | Epay订单号 | 211151598563331919745024 |
─status | string | YES | 订单状态 | 7 |
─amount | string | YES | 金额 | 10.6 |
─fee | string | YES | 手续费 | 0.6 |
─currency | string | YES | 币种 | USD |
─notifyUrl | string | YES | 回调地址 | https://openapi.alipay.com/gateway.do |
─remark | string | NO | 备注 | null |
─extendFields | string | NO | 商户扩展字段 | {\"test\":\"test\"} |
参数示例
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/payoutApi/createEpayTransaction' \
--header 'Content-Type: application/json' \
--data-raw '{
"param": {
"epayAccount": "test2020@epay.com",
"version": "V2.0.0",
"merchantName": "merchantName",
"notifyUrl": "http://localhost/paymentApi/channel/send.do",
"merchantOrderNo": "2021041409022211",
"receiveEpayAccount": "11@qq.com",
"amount": "10",
"currency": "USD",
"extendFields": {
"test": "test"
}
},
"sign": "{{sign}}"
}'
RequestExample
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/payoutApi/createEpayTransaction' \
--header 'Content-Type: application/json' \
--data-raw '{
"param": {
"epayAccount": "test2020@epay.com",
"version": "V2.0.0",
"merchantName": "merchantName",
"notifyUrl": "http://localhost/paymentApi/channel/send.do",
"merchantOrderNo": "2021041409022211",
"receiveEpayAccount": "11@qq.com",
"amount": "10",
"currency": "USD",
"extendFields": {
"test": "test"
}
},
"sign": "{{sign}}"
}'
ResponseExample
{
"sign": "C4D3FC47BAEA591889390D49B145BB2927BAE8691C95A1938657B24B602A791E",
"epayAccount": "test2020@epay.com",
"version": "V2.0.0",
"code": 1,
"message": "success",
"data": {
"merchantName": "merchantName",
"receiveEpayAccount": "11@qq.com",
"merchantOrderNo": "2021041409022211xx",
"epayOrderNo": "211151598563331919745024",
"status": "7",
"extendFields": "{\"test\":\"test\"}",
"amount": "10.6",
"fee": "0.6",
"currency": "USD",
"notifyUrl": "http://localhost/paymentApi/channel/send.do",
"remark": null
}
}