# shopping-guide.getGuideBuyerRelation

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

查询指定顾问和客户的关系

# 请求地址

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

# 请求参数

属性 类型 默认值 必填 说明
access_token string 接口调用凭证
guide_account string 顾问微信号(guide_account和guide_openid二选一)
guide_openid string 顾问openid或者unionid(guide_account和guide_openid二选一)
openid string 客户openid

# 返回值

# Object

属性 类型 说明
openid string 客户openid
buyer_nickname string 客户昵称
create_time number 绑定时间戳
errcode number 错误码
errmsg string 错误信息

errcode 的合法值

说明 最低版本
0 成功
-1 系统失败
40003 无效的openid
9300801 无效的微信号
9300806 客户和顾问不存在绑定关系

# 请求数据示例

{
  "guide_account": "wx_account",
  "openid": "xxxxxxx"
}

# 返回数据示例

{
  "openid": "xxxxx",
  "buyer_nickname": "张三",
  "create_time": 11223344,
  "errcode": 0,
  "errmsg": "ok"
}