使用接口“添加分帐接收方”都成功添加了!返回成功代码!
然后使用“请求单次分帐”接口,一直出现“分账接收方关系不存在,请检查参数中每个接收方的关系。”的错误!
Array
(
[appid] => wx9d01deb92b13****
[mch_id] => 155384****
[nonce_str] => profit_sharing
[out_order_no] => 355|3206
[receivers] => [{"type":"PERSONAL_WECHATID","account":"adm****_com","description":"分给个人","amount":10}]
[sign_type] => HMAC-SHA256
[sub_appid] => wxc16696309c49****
[sub_mch_id] => 155432****
[transaction_id] => 4200000513202003119975859893
[key] => sfjsfds*******djddgsfsfsfs
[sign] => C9D2AA9C2D77B1D424FC5B2188A1F88223BA38D339208C5A3034B4BE16B0BA14
)
Array
(
[return_code] => SUCCESS
[result_code] => FAIL
[err_code] => PARAM_ERROR
[err_code_des] => 分账接收方关系不存在,请检查参数中每个接收方的关系。
[mch_id] => 155384***
[sub_mch_id] => 155432****
[appid] => wx9d01deb92b13****
[sub_appid] => wxc16696309c49b****
[nonce_str] => f9ad3fd296ce09e0
[sign] => AE2A1882A714385665279CD30CEB9CAD2AFA2E4E4F69C639FB02F2BFF8294626
我们个别的openid分账失败,但是此openid添加分账接收方的时候返回成功
请问一下分账到个人也需要创建分账用户吗
确实,调用分账接口之前,必须要先调用“添加分账方”接口,不然就会提示这信息。
好的,后续分账功能有其他问题,可以这里找解决方案https://developers.weixin.qq.com/community/pay/doc/000c843e9106306e3f689096f56008?blockType=8
已解决!!