问题文档地址 https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_1.shtml
1.文档上面这样写的,"query分账接收方列表,支持设置出资商户作为分账接收方,单次分账最多可有5个分账接收方",这一点经测试报错{"code":"INVALID_REQUEST","message":"分账接收方不允许为分账出资方"}
2.添加了分账接收方后,发起分账的时候,分账接收方类型type的值填写为MERCHANT_ID,同时receiver_account填写为商户号不能分账,报错{"code":"PARAM_ERROR","message":"请求参数错误"},但把type去掉,同时再填上receiver_mchid,就能分账成功,请问type是无用的吗?
3、添加了个人openid为分账接收方后,type值填写为PERSONAL_OPENID,receiver_account填写为openid,报{"code":"PARAM_ERROR","message":"请求参数错误"},一直卡在这里,实在是猜不出来怎么操作了,求助大神们。
我对接的是小程序-jsapi接口
错误场景-给个人分账:
{"sub_mchid":"1600139869","transaction_id":"4323400622202006228381856514","out_order_no":"2020062216502711675755","receivers":[{"type":"PERSONAL_OPENID","receiver_account":"oxi-25JKD_qE1tkWud9ajG-0n60o","amount":1,"description":"d"}],"finish":true}
{"code":"PARAM_ERROR","message":"请求参数错误"}
添加了个人收账方
{"code":"INVALID_REQUEST","message":"操作已完成,无需二次请求"}
错误场景-给商户分账:
{"sub_mchid":"1600139869","transaction_id":"4323400622202006228381856514","out_order_no":"2020062216570411675757","receivers":[{"type":"MERCHANT_ID","receiver_account":"1571821331","amount":1,"description":"\u5206\u8d26\u6d4b\u8bd5"}],"finish":false}
{"code":"PARAM_ERROR","message":"请求参数错误"}
成功场景-给商户分账:
{"sub_mchid":"1600139869","transaction_id":"4323400622202006228381856514","out_order_no":"2020062216594511675759","receivers":[{"receiver_account":"1571821331","receiver_mchid":"1571821331","amount":1,"description":"\u5206\u8d26\u6d4b\u8bd5"}],"finish":false}
{"order_id":"30000202402020062201364476946","out_order_no":"2020062216594511675759","sub_mchid":"1600139869","transaction_id":"4323400622202006228381856514"}
实在不知道哪里错了。
https://developers.weixin.qq.com/community/pay/doc/000284823e8460aada68dacca5b008?blockType=8%3FblockType%3D8%3FblockType%3D8你好,分账常见错误。建议参考。谢谢。