简要描述:

  • 客户统计

请求域名:

  • http://xx.com

请求URL:

POST/business/{公众号id}/plugin/CustomerManage/getStatisticsList

参数:

参数名 是否必须 类型 说明
search.name string 员工名称
search.department_id int 部门id
search.industry_id int 行业id
search.source_id int 来源id
search.progress_id int 进展id
search.date array 日期
search.tag_id int 标签id
page int 页数

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "ok",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 222,
                "name": "谢梓杰",
                "follow_count": 65,
                "lose_customer_count": 0,
                "customer_count": 73,
                "new_customer_count": 73,
                "opportunity_count": 14,
                "customer_last_date": "2023-03-30 14:41:18",
                "follow_last_date": "2023-03-07 17:19:04",
                "userid": null,
                "avatar_mediaid": null
            },
            {
                "id": 42,
                "name": "柏丽芬",
                "follow_count": 0,
                "lose_customer_count": 0,
                "customer_count": 13,
                "new_customer_count": 13,
                "opportunity_count": 0,
                "customer_last_date": "2023-05-05 11:26:13",
                "follow_last_date": "-",
                "userid": null,
                "avatar_mediaid": null
            },
            {
                "id": 39,
                "name": "韦平",
                "follow_count": 0,
                "lose_customer_count": 0,
                "customer_count": 6,
                "new_customer_count": 6,
                "opportunity_count": 0,
                "customer_last_date": "2023-05-05 09:44:14",
                "follow_last_date": "-",
                "userid": null,
                "avatar_mediaid": null
            },
            {
                "id": 204,
                "name": "覆面系蓝孩",
                "follow_count": 4,
                "lose_customer_count": 0,
                "customer_count": 5,
                "new_customer_count": 5,
                "opportunity_count": 0,
                "customer_last_date": "2023-02-20 14:40:04",
                "follow_last_date": "2023-03-07 17:28:35",
                "userid": null,
                "avatar_mediaid": null
            },
            {
                "id": 53,
                "name": "嗨",
                "follow_count": 0,
                "lose_customer_count": 0,
                "customer_count": 4,
                "new_customer_count": 4,
                "opportunity_count": 0,
                "customer_last_date": "2023-05-05 09:21:47",
                "follow_last_date": "-",
                "userid": null,
                "avatar_mediaid": null
            },
            {
                "id": 464,
                "name": "刘洁",
                "follow_count": 58,
                "lose_customer_count": 0,
                "customer_count": 4,
                "new_customer_count": 4,
                "opportunity_count": 0,
                "customer_last_date": "2023-05-04 16:03:14",
                "follow_last_date": "2023-03-09 14:32:39",
                "userid": null,
                "avatar_mediaid": null
            },
            {
                "id": 43,
                "name": "韦安",
                "follow_count": 0,
                "lose_customer_count": 0,
                "customer_count": 3,
                "new_customer_count": 3,
                "opportunity_count": 0,
                "customer_last_date": "2023-05-05 09:21:47",
                "follow_last_date": "-",
                "userid": null,
                "avatar_mediaid": null
            },
            {
                "id": 199,
                "name": "售后客服-栗子",
                "follow_count": 0,
                "lose_customer_count": 0,
                "customer_count": 2,
                "new_customer_count": 2,
                "opportunity_count": 0,
                "customer_last_date": "-",
                "follow_last_date": "-",
                "userid": null,
                "avatar_mediaid": null
            },
            {
                "id": 215,
                "name": "lay测试",
                "follow_count": 0,
                "lose_customer_count": 0,
                "customer_count": 2,
                "new_customer_count": 2,
                "opportunity_count": 0,
                "customer_last_date": "-",
                "follow_last_date": "-",
                "userid": null,
                "avatar_mediaid": null
            },
            {
                "id": 193,
                "name": "阿部",
                "follow_count": 0,
                "lose_customer_count": 0,
                "customer_count": 2,
                "new_customer_count": 2,
                "opportunity_count": 0,
                "customer_last_date": "-",
                "follow_last_date": "-",
                "userid": null,
                "avatar_mediaid": null
            }
        ],
        "first_page_url": "https://dev15.yunzmall.com/business/25/plugin/CustomerManage/getStatisticsList?page=1",
        "from": 1,
        "last_page": 5,
        "last_page_url": "https://dev15.yunzmall.com/business/25/plugin/CustomerManage/getStatisticsList?page=5",
        "next_page_url": "https://dev15.yunzmall.com/business/25/plugin/CustomerManage/getStatisticsList?page=2",
        "path": "https://dev15.yunzmall.com/business/25/plugin/CustomerManage/getStatisticsList",
        "per_page": 10,
        "prev_page_url": null,
        "to": 10,
        "total": 43
    }
}

错误时返回:

  {
    "errcode": 500,
    "errmsg": "invalid appid"
  }

返回参数说明:

参数名 类型 说明
name string 员工名称
lose_customer_count int 流失客户数量
customer_count int 当前客户数量
new_customer_count int 新增客户数量
follow_count int 跟进记录数量
opportunity_count int 商机数量(如果没商机插件该字段不存在)
customer_last_date string 最新客户时间
follow_last_date string 最新跟进记录时间

备注:

  • 更多返回错误代码请看首页的错误代码描述