# shopping-guide.queryGuideBuyerByTag

本接口应在服务器端调用,详细说明参见服务端API

根据标签值筛选客户

# 请求地址

POST https://api.weixin.qq.com/cgi-bin/guide/queryguidebuyerbytag?access_token=ACCESS_TOKEN

# 请求参数

属性 类型 默认值 必填 说明
access_token string 接口调用凭证
guide_account string 顾问微信号(guide_account和guide_openid二选一)
guide_openid string 顾问openid或者unionid(guide_account和guide_openid二选一)
push_count number 本月还可主动发消息次数
tag_values Array.<string> 标签值,该值必须在标签可选值集合中

# 返回值

# Object

属性 类型 说明
openid_list Array.<string> 客户openid列表
errcode number 错误码
errmsg string 错误信息

errcode 的合法值

说明 最低版本
0 成功
-1 系统失败
40003 无效的openid
43004 没有关注该服务号
9300801 无效的微信号
9300804 该微信号不是顾问
9300806 客户和顾问不存在绑定关系
9300807 标签值无效,不是可选标签值

# 请求数据示例

{
  "guide_account": "xxxxxxx",
  "push_count": 0,
  "tag_values":["tag1_1","tag2_1"]
}

# 返回数据示例

{
   "openid_list": ["xxx1","xxx2"],
   "errcode": 0,
   "errmsg": "ok"
}