## 线上系统退款时偶尔出现此问题,三五天就会遇到一次,困扰多时,烦请帮忙看看,多谢~ ###
## 退款接口 https://api.mch.weixin.qq.com/secapi/pay/refund
## 第一次提交 ###################################
<xml>
<appid><![CDATA[wx0e80cd07ec51696d]]></appid>
<mch_id>1544103871</mch_id>
<nonce_str><![CDATA[jy1ui4uwo7fty3j26ngaqsfyf95wej5s]]></nonce_str>
<op_user_id>1544103871</op_user_id>
<out_refund_no><![CDATA[00520042618311173492d2d24b64518c97240da58727c7805179c7ccf5ab036f]]></out_refund_no>
<refund_fee>48000</refund_fee>
<total_fee>48000</total_fee>
<transaction_id>4200000567202004266011152323</transaction_id>
<sign><![CDATA[0A1F3FC4D9DC6CDCF63C3486DC0A549A]]></sign>
</xml>
## 反馈 System Error ###################################
<xml>
<return_code><![CDATA[SUCCESS]]></return_code>
<return_msg><![CDATA[OK]]></return_msg>
<appid><![CDATA[wx0e80cd07ec51696d]]></appid>
<mch_id><![CDATA[1544103871]]></mch_id>
<nonce_str><![CDATA[2yIv2hV7Sg13d92m]]></nonce_str>
<sign><![CDATA[D11512BBC20A39E4361835CBFE264FCB]]></sign>
<result_code><![CDATA[FAIL]]></result_code>
<err_code><![CDATA[SYSTEMERROR]]></err_code>
<err_code_des><![CDATA[System Error]]></err_code_des>
</xml>
## 第二次提交 ###################################
<xml>
<appid><![CDATA[wx0e80cd07ec51696d]]></appid>
<mch_id>1544103871</mch_id>
<nonce_str><![CDATA[rx56a1m7l37mr9de651yu36yvgfatws7]]></nonce_str>
<op_user_id>1544103871</op_user_id>
<out_refund_no><![CDATA[0052004261831117349227567fdaea1575f0d0532d8307a1df4d191a6a80f8a0]]></out_refund_no>
<refund_fee>48000</refund_fee>
<total_fee>48000</total_fee>
<transaction_id>4200000567202004266011152323</transaction_id>
<sign><![CDATA[F747A1A0EA9CB76A86EA0F735D1D02C7]]></sign>
</xml>
## 反馈 SUCCESS ###################################
<xml>
<return_code><![CDATA[SUCCESS]]></return_code>
<return_msg><![CDATA[OK]]></return_msg>
<appid><![CDATA[wx0e80cd07ec51696d]]></appid>
<mch_id><![CDATA[1544103871]]></mch_id>
<nonce_str><![CDATA[8DV7jPI8oIzWyqDJ]]></nonce_str>
<sign><![CDATA[82F0B982FF74D5DC24115D3659E14909]]></sign>
<result_code><![CDATA[SUCCESS]]></result_code>
<transaction_id><![CDATA[4200000567202004266011152323]]></transaction_id>
<out_trade_no><![CDATA[00520042618311173492000000000000]]></out_trade_no>
<out_refund_no><![CDATA[0052004261831117349227567fdaea1575f0d0532d8307a1df4d191a6a80f8a0]]></out_refund_no>
<refund_id><![CDATA[50300303842020042600257300709]]></refund_id>
<refund_channel><![CDATA[]]></refund_channel>
<refund_fee>48000</refund_fee>
<coupon_refund_fee>0</coupon_refund_fee>
<total_fee>48000</total_fee>
<cash_fee>48000</cash_fee>
<coupon_refund_count>0</coupon_refund_count>
<cash_refund_fee>48000</cash_refund_fee>
</xml>
不要更换订单号,重新提交即可。
有一定的错误概率,使用原商户号重新提交退款就行
https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_4