CreateEwalletTransaction
Parameter description
Request
| name | type | required | desc | example |
|---|---|---|---|---|
| param | JSONObject | YES | ||
| ─epayAccount | string | YES | Merchant Epay Account | test2020@epay.com |
| ─category | string | YES | Type:EWALLET | EWALLET |
| ─notifyUrl | string | NO | Callback address | http://localhost/paymentApi/channel/send.do |
| ─merchantOrderNo | string | YES | Merchant order number | sdfh21312fgxx |
| ─amount | string | NO | Amount | 10 |
| ─currency | string | YES | Currency | USD |
| ─version | string | YES | Version number | V2.0.0 |
| ─channelCode | string | YES | Channel number 11:Perfect Money, 12:Advcash, 16:Payeer, 18:FasaPay | 18 |
| ─extendFields | JSONObject | NO | Merchant extension field | { "test": "test" } |
| ─receiverInfo | JSONObject | NO | ||
| ─ ─accountNo | string | NO | Bank Account number | 41111810111111111111 |
| ─ ─remark | string | NO | Remark | remark |
| sign | string | YES | Signature |
Response
| name | type | required | desc | example |
|---|---|---|---|---|
| sign | string | YES | Signature | |
| epayAccount | string | YES | Merchant Epay Account | test2020@epay.com |
| version | string | YES | Version number | V2.0.0 |
| code | integer | YES | Response code 1 : Success | 1 |
| message | string | YES | Message info | success |
| data | JSONObject | YES | ||
| ─category | string | YES | Bank, Cash, E-walletEWALLET,E-wallet usage EWALLET | EWALLET |
| ─merchantOrderNo | string | YES | Merchant order number | sdfh21312fgxx |
| ─epayOrderNo | string | YES | Epay order number | 231151598560704599183360 |
| ─status | string | YES | Epay order status | 1 |
| ─amount | string | YES | Settlement amount | 10 |
| ─settlementCurrency | string | YES | Settlement currency | USD |
| ─receiveAmount | string | YES | Received amount | 10.0 |
| ─receiveCurrency | string | YES | Receive currency,refer to currencyType | USD |
| ─rate | string | YES | Exchange rate | 1.000000 |
| ─payerFee | string | YES | Fees | 2.1 |
| ─extendFields | string | YES | Merchant extension field | {\"test\":\"test\"} |
| ─rateMode | string | YES | 0 exchange rate USD to CNY, 1 exchange rate CNY to USD | null |
Parameter example
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
}
}