【请求地址】:https://api.mch.weixin.qq.com/pay/profitsharingaddreceiver
【请求数据】:
<xml>
<appid>wx498edd4eb1bdd1d7</appid>
<mch_id>1622044259</mch_id>
<sub_appid>wx498edd4eb1bdd1d7</sub_appid>
<sub_mch_id>1627423577</sub_mch_id>
<nonce_str>1668234796450</nonce_str>
<sign>8B46D5211BCFEAD32AED55FD952E249C5089F405DED8819C32818AAB0972E384</sign>
<sign_type>HMAC-SHA256</sign_type>
<receiver>{"type":"MERCHANT_ID","account":"1633781737","name":"枣庄高新区慧昕蘭舍生活超市","relationType":"PARTNER"}</receiver>
</xml>
【响应数据】:
<xml>
<return_code><![CDATA[SUCCESS]]></return_code>
<result_code><![CDATA[FAIL]]></result_code>
<err_code><![CDATA[INVALID_REQUEST]]></err_code>
<err_code_des><![CDATA[分账接收商户全称不匹配]]></err_code_des>
<mch_id><![CDATA[1622044259]]></mch_id>
<sub_mch_id><![CDATA[1627423577]]></sub_mch_id>
<appid><![CDATA[wx498edd4eb1bdd1d7]]></appid>
<sub_appid><![CDATA[wx498edd4eb1bdd1d7]]></sub_appid>
<receiver><![CDATA[{"type":"MERCHANT_ID","account":"1633781737"}]]></receiver>
<nonce_str><![CDATA[9ed21633432915e0]]></nonce_str>
<sign><![CDATA[5B831119478710A5B01EDB62B76689FD59C38DF284C59EFF4F3CF9F0FEBF1026]]></sign>
</xml>
商户号查询的结果是,该商户号已经申请通过
好像知道了,商户号全称应该取 分账方详情中的商户全称。。。
我测试一下