创建电子货币订单
参数说明
Request
name | type | required | desc | example |
---|---|---|---|---|
param | JSONObject | YES | 参数 | |
─epayAccount | string | YES | 您的EPAY账号 | test2020@epay.com |
─category | string | YES | 类型:EWALLET | EWALLET |
─notifyUrl | string | NO | 回调地址 | http://localhost/paymentApi/channel/send.do |
─merchantOrderNo | string | YES | 您的订单号 | sdfh21312fgxx |
─amount | string | NO | 金额 | 10 |
─currency | string | YES | 币种 | USD |
─version | string | YES | 版本号 | V2.0.0 |
─channelCode | string | YES | 渠道编号 11:Perfect Money, 12:Advcash, 16:Payeer, 18:FasaPay | 18 |
─extendFields | JSONObject | NO | 您的扩展字段 | { "test": "test" } |
─receiverInfo | JSONObject | NO | ||
─ ─accountNo | string | NO | 银行卡号 | 41111810111111111111 |
─ ─remark | string | NO | 备注 | remark |
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,钱包EWALLET,电子钱包使用EWALLET | EWALLET |
─merchantOrderNo | string | YES | 您的订单号 | sdfh21312fgxx |
─epayOrderNo | string | YES | Epay订单号 | 231151598560704599183360 |
─status | string | YES | 订单状态 | 1 |
─amount | string | YES | 付款金额 | 10 |
─settlementCurrency | string | YES | 结算币种 | USD |
─receiveAmount | string | YES | 收款金额 | 10.0 |
─receiveCurrency | string | YES | 收款币种,见currencyType说明 | USD |
─rate | string | YES | 汇率 | 1.000000 |
─payerFee | string | YES | 费用 | 2.1 |
─extendFields | string | YES | 您的扩展字段 | {\"test\":\"test\"} |
─rateMode | string | YES | 汇率模式0 美金到目标币种,1目标币种到美金 | null |
参数示例
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/payoutApi/createEwalletTransaction' \
--header 'Content-Type: application/json' \
--data-raw '{
"sign": "{{sign}}",
"param": {
"epayAccount": "test2020@epay.com",
"category": "EWALLET",
"channelCode":"18",
"notifyUrl": "http://localhost/paymentApi/channel/send.do",
"merchantOrderNo": "sdfh21312fgxx",
"amount": "10",
"currency": "USD",
"version": "V2.0.0",
"receiverInfo": {
"accountNo": "41111810111111111111",
"remark": "remark"
},
"extendFields": {
"test": "test"
}
}
}'
RequestExample
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/payoutApi/createEwalletTransaction' \
--header 'Content-Type: application/json' \
--data-raw '{
"sign": "{{sign}}",
"param": {
"epayAccount": "test2020@epay.com",
"category": "EWALLET",
"channelCode":"18",
"notifyUrl": "http://localhost/paymentApi/channel/send.do",
"merchantOrderNo": "sdfh21312fgxx",
"amount": "10",
"currency": "USD",
"version": "V2.0.0",
"receiverInfo": {
"accountNo": "41111810111111111111",
"remark": "remark"
},
"extendFields": {
"test": "test"
}
}
}'
ResponseExample
{
"sign": "2D3EA7F5443B8E1E02CB80E1DEC9F8189EB0DFD0B3FE8890B61B757B43ADBE44",
"epayAccount": "test2020@epay.com",
"version": "V2.0.0",
"code": 1,
"message": "success",
"data": {
"category": "EWALLET",
"merchantOrderNo": "sdfh21312fgxx",
"epayOrderNo": "231151598560704599183360",
"pinCode": null,
"status": "1",
"amount": "10",
"settlementCurrency": "USD",
"receiveAmount": "10.0",
"receiveCurrency": "USD",
"rate": "1.000000",
"fee": "2.1",
"extendFields": "{\"test\":\"test\"}",
"rateMode": null
}
}