品牌与服务商添加分账关系-提示“无分账权限”,错误码:NO_AUTH
请求参数:
{"account":"1508900231","appid":"wxb1666c4417a3021e","brand_mchid":"1677990388","name":"深圳青鸾数字技术有限公司","relation_type":"SERVICE_PROVIDER","type":"MERCHANT_ID"}
【请求地址】:https://api.mch.weixin.qq.com/v3/brand/profitsharing/receivers/add
【异常信息】:无分账权限
WxPayException(customErrorMsg=无分账权限
, returnCode=null, returnMsg=null, resultCode=null, errCode=NO_AUTH, errCodeDes=无分账权限, xmlString=null)
这是我的完整curl请求参数:
具体时间:2024-11-22 11:06 左右
curl -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: WECHATPAY2-SHA256-RSA2048 mchid=\"1631647586\",nonce_str=\"I5LpK8RwlKmX6plHtVn5hYeaWmvEAw8v\",timestamp=\"1729566387\",serial_no=\"4C35074F5D6A1DA22EDFAE0B2BF9414F6D7F60F5\",signature=\"S7fUYztiOgxFa6YAJ4aB+GBlq1Q30F8ylW5+t7qcFjjorxWXx1SyRFf3lus5jS3TuVV2QNokSgGDae4dDcvNuVwXtUcLM3BwOOQurgSFXQ2ywJPirqlUKsaeRxV/p5UTx8TQnJWw4qte4fiv6XwWHdXIcHTgJyAtarSPXJrwGALy7MM/NGpyQKoBvExd+ZuIyv5iLwfjEPg/30tgfHGwPt8uEw/XC9mIojuHXW7dC0MpBDsCAtLyb6SvdBesy5XrysMZR16QciClOL9ttWk7k1Agu47G636mMqKR5SJshe58mE/wscTGS4PGJORxW5F8RMN+Ntgp5OsHwJsQH+OfKA==\"" \
-H "Content-Length: 182" \
-H "Host: api.mch.weixin.qq.com" \
-H "Connection: Keep-Alive" \
-H "User-Agent: WechatPay-Apache-HttpClient/null (Windows 10/10.0) Java/1.8.0_341" \
-H "Accept-Encoding: gzip,deflate" \
-d '{"account":"1508900231","appid":"wxb1666c4417a3021e","brand_mchid":"1677990388","name":"深圳青鸾数字技术有限公司","relation_type":"SERVICE_PROVIDER","type":"MERCHANT_ID"}' \
https://api.mch.weixin.qq.com/v3/brand/profitsharing/receivers/add