Skip to main content

Refund


Transaction refund.

TRADE_PROCESSING(Processing transaction)

APPLY_SUCCESS(Application successful, only available when applying for a refund)

TRADE_REFUND(Partial refund) / TRADE_CLOSED(Full refund, refund transaction closed) / TRADE_FAIL(Transaction failure)

Info

{domain}/Servlet/JSAPIService.do

https://vmp.eftpay.com.cn/VMP/Servlet/JSAPIService.do

NameTypeDescriptionRequirement
serviceStringInterface name, see supported service
user_confirm_keyString(12)User Key, provided by eftPay
return_amountString(8)Refund amount. Requires numbers, the maximum length of decimal places is 2
total_feeString(8)Total transaction amount. Requires numbers, the maximum length of decimal places is 2
out_trade_noString(28)Original consumer merchant order number
payTypeString(6)Payment type, see supported payType
buyerTypeString(7)Device type
iosandroidothers
reasonString(256)Refund reason
walletString(20)Wallet type, consistent with the original consumption transaction, see supported wallet
out_refund_noString(28)Merchant refund number
eft_trade_noString(28)eftPay order number
pay_sceneStringPayment scene
notify_urlString(240)Notification address, the production environment only supports 80 and 443 ports, other ports need to apply. P.S. Effective when calling the refund application interface, see supported service
timeStringTime, format: yyyyMMddHHmmss
signString(64)Signature

View supported services along with their payType and wallet

Here is the correspondence between service, payType, and wallet

servicepayTypewalletDescription
service.alipay.web.RefundAlipayALIPAYCN
ALIPAYHK
Alipay web refund interface
service.wechat.web.RefundWeChatWECHATCN
WECHATHK
WeChat web refund interface
service.wechat.web.ApplyRefundWeChatWECHATCN
WECHATHK
WeChat web apply refund interface
service.icbc.wap.RefundICBCICBCWAPICBC wap refund interface
service.atome.v2.wap.RefundATOMEATOMEATOME online refund interface
service.unionpay.online.web.RefundUnionPayUNIONPAYUnionPay online cash register refund interface
service.oct.online.RefundOCTOCTOctopus online apply refund interface
service.fdms.web.RefundFdmsFDMSFDMS VISA, Master refund interface
service.mpgs.web.RefundMpgsMPGSMPGS VISA, Master refund interface
service.ae.web.RefundAEAEAE refund interface
service.nuvei.web.RefundNUVEINUVEINUVEI VISA, Master refund interface
service.jetco.wap.RefundJetcoJETCOHKJetco wap refund interface
service.payme.web.RefundPAYMEPAYMEPayMe web refund interface
service.bocvmp.unionpay.web.RefundBOCVMPBOCVMPUPWBOC web refund interface

Tips

  • The notify_url parameter only takes effect when using the following apply refund interfaces:
    • service.wechat.web.ApplyRefund
    • service.oct.online.Refund

NameTypeDescriptionRequirement
return_statusString(3)Return status code, represents . Note: This parameter cannot be used to judge whether the transaction status is successful
Other status codes see Appendix 3
return_charString(100)Return description, may change, cannot be used as a condition judgment
Return when return_status is greater than 00
timeStringTime, format: yyyyMMddHHmmss
return_status >= 00 when returned
signString(64)Signature
return_status >= 00 when returned

NameTypeDescriptionRequirement
out_trade_noString(28)Original consumer merchant order number
out_refund_noString(28)Merchant refund number
eft_trade_noString(28)eftPay order number
trade_statusString(32)Trade status, see Appendix 2
refund_timeStringRefund transaction time, format: yyyyMMddHHmmss
user_confirm_keyStringUser Key, provided by eftPay
payTypeString(6)Payment type
buyerTypeString(7)Device type
walletString(20)Wallet type
fee_typeString(5)Currency
return_amountString(8)Refund amount
total_feeString(8)Original transaction amount
tidString(20)Terminal number, returned when there is a consumption request

{
	"service": "service.alipay.web.Refund",
	"user_confim_key": "12345678",
	"return_amount": "0.01",
	"total_fee": "0.02",
	"out_trade_no": "20190823191819",
	"payType": "Alipay",
	"buyerType": "ios",
	"reason": "",
	"out_refund_no": "20190824094947",
	"pay_scene": "WEB",
	"eft_trade_no": "08520005269190823191801988",
	"wallet": "ALIPAYCN",
	"time": "20230609110646",
	"sign": "580e4a26db5e601e3a1b89b3fc815b5c2122a4ccc18fa90742c8641c172e8c77"
}

{
    "user_confirm_key": "12345678",
    "return_amount": "0.01",
    "wallet": "ALIPAYCN",
    "return_char": "",
    "out_refund_no": "20190823191819",
    "sign": "cd6a175f61ff941fcd8b8bb4467944e3eaa64bfe572e6b6361624890bcda3d82",
    "fee_type": "HKD",
    "eft_trade_no": "08520005269190823191801988",
    "out_trade_no": "20190823191819",
    "payType": "Alipay",
    "refund_time": "20190824094950",
    "trade_status": "TRADE_CLOSED",
    "total_fee": "0.02",
    "return_status": "00",
    "buyerType": "ios",
    "time": "20230609110646"
}