CancelTransaction
Parameter description
Request
name | type | required | desc | example |
---|---|---|---|---|
param | JSONObject | YES | ||
─epayAccount | string | YES | Merchant Epay Account | test2020@epay.com |
─version | string | YES | Version number | V2.0.0 |
─merchantOrderNo | string | YES | Merchant order number | 20210708220 |
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 | BANK |
─merchantOrderNo | string | YES | Merchant order number | te3ssd7383d3334523t129 |
─epayOrderNo | string | YES | Epay order number | 211151598554150827216896 |
─status | string | YES | Epay order status | 5 |
─amount | string | YES | Settlement amount | 10.0 |
─settlementCurrency | string | YES | Settlement currency | USD |
─receiveAmount | string | YES | Received amount | 70.54 |
─receiveCurrency | string | YES | Receive currency, refer to currencyType | CNY |
─rate | string | YES | Exchange rate | 0.141772 |
─fee | string | YES | Fees | 1.5 |
─extendFields | string | YES | Merchant extension field | null |
─rateMode | string | YES | 0 exchange rate USD to CNY, 1 exchange rate CNY to USD | 1 |
Parameter example
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/payoutApi/cancelTransaction' \
--header 'Content-Type: application/json' \
--data-raw '{
"param": {
"epayAccount": "test2020@epay.com",
"version": "V2.0.0",
"merchantOrderNo": "20210708220"
},
"sign": "{{sign}}"
}'
RequestExample
curl --location --request POST 'http://29597375fx.epaydev.xyz/capi/openapi/payoutApi/cancelTransaction' \
--header 'Content-Type: application/json' \
--data-raw '{
"param": {
"epayAccount": "test2020@epay.com",
"version": "V2.0.0",
"merchantOrderNo": "20210708220"
},
"sign": "{{sign}}"
}'
ResponseExample
{
"sign": "C12C1A71DFA60CCE055D7358650D3CB98C15505930A03E52DF8E2B0EF92B4216",
"epayAccount": "jing32@qq.com",
"version": "V2.0.0",
"code": 1,
"message": "success",
"data": {
"category": "BANK",
"merchantOrderNo": "te3ssd7383d3334523t129",
"epayOrderNo": "211151598554150827216896",
"pinCode": null,
"status": "5",
"amount": "10.0",
"settlementCurrency": "USD",
"receiveAmount": "70.54",
"receiveCurrency": "CNY",
"rate": "0.141772",
"fee": "1.5",
"extendFields": null,
"rateMode": "1"
}
}