请求https://api.mch.weixin.qq.com/secapi/pay/profitsharing接口
参数数据:
<xml><appid><![CDATA[wx4066e075ba20eaed]]></appid><mch_id>1605889203</mch_id><sub_mch_id>1608902261</sub_mch_id><nonce_str><![CDATA[917052e5acc0331f6b89b950243a21b6]]></nonce_str><out_order_no>2021080554545256</out_order_no><transaction_id>4200001154202108059191031516</transaction_id><receivers><![CDATA[[{"type":"MERCHANT_ID","account":"1605889203","amount":2,"description":"周边商家订单分账:0.02,分给:1605889203"},{"type":"MERCHANT_ID","account":"1606143005","amount":6,"description":"周边商家订单分账:0.06,分给:1606143005"}]]]></receivers><sign><![CDATA[89556E2D676A227247C6C178485DA71EAC14F6A07CDE50A1F277B90ED496D6EC]]></sign></xml>
提示错误为:
<xml>
<return_code><![CDATA[SUCCESS]]></return_code>
<result_code><![CDATA[FAIL]]></result_code>
<err_code><![CDATA[PARAM_ERROR]]></err_code>
<err_code_des><![CDATA[分账接收方关系不存在,请检查参数中每个接收方的关系。]]></err_code_des>
<mch_id><![CDATA[1605889203]]></mch_id>
<sub_mch_id><![CDATA[1608902261]]></sub_mch_id>
<appid><![CDATA[wx4066e075ba20eaed]]></appid>
<nonce_str><![CDATA[a5e7e375e38b83a8]]></nonce_str>
<sign><![CDATA[83CF4978C34016F833C2AF7CE93FEF9B15381F88FA52E30D0432464A9859AEB1]]></sign>
</xml>
请求技术支持,在此之前也确认过添加分账接收方接口的执行为正常成功的
<xml>
<return_code><![CDATA[SUCCESS]]></return_code>
<result_code><![CDATA[SUCCESS]]></result_code>
<mch_id><![CDATA[1605889203]]></mch_id>
<sub_mch_id><![CDATA[1608902261]]></sub_mch_id>
<appid><![CDATA[wx4066e075ba20eaed]]></appid>
<receiver><![CDATA[{"type":"MERCHANT_ID","account":"1606143005","relation_type":"HEADQUARTER"}]]></receiver>
<nonce_str><![CDATA[f380e978f20f0d69]]></nonce_str>
<sign><![CDATA[85A3AE73C5218A210D7C7DE72C1E8C1DCF503A438C1502954E16DFACC1BAEA9A]]></sign>
</xml>
最终结果是要分给部分1606143005商户,部分1605889203