分账请求 分账方有2个,1分给电商收付通平台商户号,2.推荐人的小程序openid
.推荐人已使用接口加入分账方:{"appid":"wxc2f50dcff3ff92c2","type":"PERSONAL_OPENID","account":"o6sJn5J3C5SxXlkw6eUDMxmbicDo","relation_type":"SUPPLIER"}
分账信息:{"sub_mchid":"1587204221","transaction_id":"4332200634202006305295520378","out_order_no":"ECSHARE20200629235920013","receivers":[
{"type":"PERSONAL_OPENID","receiver_account":"o6sJn5J3C5SxXlkw6eUDMxmbicDo","amount":54,"description":"分佣推荐人wx_13917355566"},
{"type":"MERCHANT_ID","receiver_account":"1579883051","amount":27,"description":"佣金分给平台1579883051"}
],"finish":false}
分账信息结果:{"code":"PARAM_ERROR","message":"请求参数错误"}
这个参数哪地方不对吗?都是安装文档说明写的
解决了
接口文档 参数和 示例参数写的对不上
不清不楚
https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_1.shtml,参看文档里的参数进行对比。即可。