调用接口:https://api.mch.weixin.qq.com/secapi/pay/refund
请求参数:
<xml>
<mch_appid>wxef030d1*****7ab1</mch_appid>
<mchid>158*****01</mchid>
<nonce_str>215117FC479E4BFE87FD2D5C73A14C53</nonce_str>
<sign>40BBEEE0B36898AE5E9E1A0099311FBA</sign>
<out_refund_no>TKCOSMO20230621A004</out_refund_no>
<out_trade_no>COSMO********A004</out_trade_no>
<total_fee>500</total_fee>
<refund_fee>500</refund_fee>
<refund_desc>订单完成回退保证金</refund_desc>
</xml>
返回结果:
<xml>
<return_code><![CDATA[FAIL]]></return_code>
<return_msg><![CDATA[缺少参数]]></return_msg>
</xml>
文档是“appid”,你传的“mch_appid”,
文档是“mch_id”,你传的“mchid”
appid
mch_id
https://pay.weixin.qq.com/wiki/doc/api/wxa/wxa_api.php?chapter=9_4