Refund
Transaction refund.
Currently only supports WeChat and Alipay.
TRADE_PROCESSING (Transaction processing)
↓
APPLY_SUCCESS (Application successful, only when applying for a refund)
↓
TRADE_REFUND (Partial refund) / TRADE_CLOSED (Full refund, refund transaction closed) / TRADE_FAIL (Transaction failed)
Info
{domain}/Servlet/JSAPIService.do
https:/VMP/Servlet/JSAPIService.do
Name | Type | Description | Requirement |
---|---|---|---|
service | String | Interface nameservice.alipay.jsapi.Refund service.wechat.jsapi.Refund Refund application interface: service.wechat.jsapi.ApplyRefund | |
user_confirm_key | String(12) | User Key, provided by eftPay | |
transaction_amount | String(8) | Refund amount. Requires digits, maximum decimal length is 2 | |
out_trade_no | String(28) | Original consumer merchant order number | |
paytype | String(6) | Payment type | |
payment_type | String(20) | Wallet type, consistent with the original consumption transaction | |
refund_no | String(28) | Merchant refund number | |
tid | String(20) | Merchant terminal number | |
total_fee | String(8) | Total transaction amount. Requires digits, maximum decimal length is 2 | |
refund_desc | String(256) | Refund reason | |
notify_url | String(240) | Notification address, production environment only supports 80 and 443 ports, other ports need to apply. P.S. Effective when calling the refund application interface | |
time | String | Time, format: yyyyMMddHHmmss | |
sign | String(64) | Signature |
Name | Type | Description | Requirement |
---|---|---|---|
return_status | String(3) | Return status code, represents . Note: This parameter cannot be used as a judgment of whether the transaction status is successful Other status codes see Appendix 3 | |
return_char | String(100) | Return description, may change, cannot be used as a condition judgment | |
time | String | Time, format: yyyyMMddHHmmss return_status >= 00 return | |
sign | String(64) | Signaturereturn_status >= 00 return |
Name | Type | Description | Requirement |
---|---|---|---|
out_trade_no | String(28) | Original consumer merchant order number | |
trade_status | String(32) | Trade status, see Appendix 2 | |
user_confirm_key | String | User Key, provided by eftPay | |
paytype | String(6) | Payment type | |
refund_no | String(28) | Merchant refund number | |
transaction_amount | String(8) | Refund amount | |
total_fee | String(8) | Original transaction amount | |
payment_type | String(20) | Wallet type | |
tid | String(20) | Terminal number, returned when the consumption request is sent | |
rate | String(10) | Transaction exchange rate, return when configured | |
eftpay_trade_no | String(28) | eftPay order number, return when configured | |
refund_trade_no | String(28) | eftPay refund number, return when configured |
{
"service": "service.wechat.jsapi.Refund",
"user_confirm_key": "S0003469",
"transaction_amount": "0.01",
"out_trade_no": "rrn_1686280006045",
"paytype": "WeChat",
"time": "20230609110646",
"payment_type": "WECHATCN",
"refund_no": "201901010011",
"tid": "tid_3378",
"total_fee": "10.01",
"refund_desc": "test测试退款",
"sign": "1029a666f791da4c2c65ecf37e4d16571ba868f88e2494101a9c6c76b7ac20eb"
}
{
"return_status": "00",
"return_char": "",
"sign": "d2b6b03c564f87936d3a367f7c199ad607a405e7c0effa2db3eccff6178bd13e",
"time": "20230609110646",
"out_trade_no": "20190823191819",
"trade_status": "TRADE_CLOSED",
"user_confirm_key": "S0003469",
"paytype": "WeChat",
"refund_no": "10000000001",
"transaction_amount": "0.03",
"total_fee": "10.01",
"payment_type": "WECHATCN",
"tid": "t1230001",
"rate": "0.88"
}