public interface WxMaKefuService
小程序客服管理接口. 不同于 WxMaCustomserviceWorkService (企业微信客服绑定) 和 WxMaMsgService.sendKefuMsg (发送客服消息), 此接口专门处理小程序客服账号管理、会话管理等功能。 注意:小程序客服管理接口与公众号客服管理接口在API端点和功能上有所不同。
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
kfAccountAdd(WxMaKfAccountRequest request)
添加客服账号
详情请见:添加客服账号
接口url格式:https://api.weixin.qq.com/customservice/kfaccount/add?
|
boolean |
kfAccountDel(String kfAccount)
删除客服账号
详情请见:删除客服账号
接口url格式:https://api.weixin.qq.com/customservice/kfaccount/del?
|
boolean |
kfAccountUpdate(WxMaKfAccountRequest request)
修改客服账号
详情请见:修改客服账号
接口url格式:https://api.weixin.qq.com/customservice/kfaccount/update?
|
WxMaKfList |
kfList()
获取客服基本信息
详情请见:获取客服基本信息
接口url格式:https://api.weixin.qq.com/cgi-bin/customservice/getkflist?
|
boolean |
kfSessionClose(String openid,
String kfAccount)
关闭会话
详情请见:关闭会话
接口url格式:https://api.weixin.qq.com/customservice/kfsession/close?
|
boolean |
kfSessionCreate(String openid,
String kfAccount)
创建会话
详情请见:创建会话
接口url格式:https://api.weixin.qq.com/customservice/kfsession/create?
|
WxMaKfSession |
kfSessionGet(String openid)
获取客户的会话状态
详情请见:获取客户的会话状态
接口url格式:https://api.weixin.qq.com/customservice/kfsession/getsession?
|
WxMaKfSessionList |
kfSessionList(String kfAccount)
获取客服的会话列表
详情请见:获取客服的会话列表
接口url格式:https://api.weixin.qq.com/customservice/kfsession/getsessionlist?
|
WxMaKfList kfList() throws WxErrorException
获取客服基本信息 详情请见:获取客服基本信息 接口url格式:https://api.weixin.qq.com/cgi-bin/customservice/getkflist?access_token=ACCESS_TOKEN
WxErrorException - 异常boolean kfAccountAdd(WxMaKfAccountRequest request) throws WxErrorException
添加客服账号 详情请见:添加客服账号 接口url格式:https://api.weixin.qq.com/customservice/kfaccount/add?access_token=ACCESS_TOKEN
request - 客服账号信息WxErrorException - 异常boolean kfAccountUpdate(WxMaKfAccountRequest request) throws WxErrorException
修改客服账号 详情请见:修改客服账号 接口url格式:https://api.weixin.qq.com/customservice/kfaccount/update?access_token=ACCESS_TOKEN
request - 客服账号信息WxErrorException - 异常boolean kfAccountDel(String kfAccount) throws WxErrorException
删除客服账号 详情请见:删除客服账号 接口url格式:https://api.weixin.qq.com/customservice/kfaccount/del?access_token=ACCESS_TOKEN&kf_account=KFACCOUNT
kfAccount - 客服账号WxErrorException - 异常boolean kfSessionCreate(String openid, String kfAccount) throws WxErrorException
创建会话 详情请见:创建会话 接口url格式:https://api.weixin.qq.com/customservice/kfsession/create?access_token=ACCESS_TOKEN
openid - 用户openidkfAccount - 客服账号WxErrorException - 异常boolean kfSessionClose(String openid, String kfAccount) throws WxErrorException
关闭会话 详情请见:关闭会话 接口url格式:https://api.weixin.qq.com/customservice/kfsession/close?access_token=ACCESS_TOKEN
openid - 用户openidkfAccount - 客服账号WxErrorException - 异常WxMaKfSession kfSessionGet(String openid) throws WxErrorException
获取客户的会话状态 详情请见:获取客户的会话状态 接口url格式:https://api.weixin.qq.com/customservice/kfsession/getsession?access_token=ACCESS_TOKEN&openid=OPENID
openid - 用户openidWxErrorException - 异常WxMaKfSessionList kfSessionList(String kfAccount) throws WxErrorException
获取客服的会话列表 详情请见:获取客服的会话列表 接口url格式:https://api.weixin.qq.com/customservice/kfsession/getsessionlist?access_token=ACCESS_TOKEN&kf_account=KFACCOUNT
kfAccount - 客服账号WxErrorException - 异常Copyright © 2026. All rights reserved.