基本信息
- 用途说明:查询客户列表
- 请求方式:POST
- 请求地址:https://api.kingdee.com/weigusoft/wg_crm/wg_customerListApi?access_token=
请求参数
headers参数
- 所有的接口必须携带header参数
| 参数名称 | 参数示例 | 是否必填 | 参数说明 |
|---|---|---|---|
| Content-Type | application/json | true | 固定传:application/json |
| groupName | ns-v7g6 | true | 分组名称,获取授权信息时返回的groupName |
| accountId | 16xxxxxxxxxxxx | true | 账套ID,获取授权信息时返回的accountId |
| X-GW-Router-Addr | https://tf.jdy.com | true | IDC域名,获取授权信息时返回的domain |
body参数
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| flag | true | String | 列表标识-LIST |
| entity | true | String | 单据标识-wg_bd_customer_inh_gh |
| pageindex | true | number | 当前页(默认1) |
| pagesize | true | number | 每页显示条数(默认10,最大100) |
| sorttime | true | String | 排序-modifytime desc |
| bdate | true | String | 最近联系开始日期 |
| edate | true | String | 最近联系结束日期 |
| custype | true | String | 客户类型 |
| cusclass | true | String | 客户分类 |
| ywyname | true | String | 业务员 |
| isnew | true | String | |
| istrade | true | Boolean | 是否交易客户 |
| labids | true | Array[String] | 客户标签 |
| search | true | String | 模糊搜索-客户编码/名称/手机/联系人/固定电话/通讯地址/备注 |
| startctimeids | true | String | |
| endctimeids | true | String | |
| custClassTypeIds | true | String | 客户分类id |
| compyModelIds | true | String | 公司规模 |
| compyTypeIds | true | String | 公司类别 |
| custStatess | true | String | |
| cussourceid | true | String | |
| ymyid | true | String | 业务员 |
| cbdate | true | String | 创建开始时间 |
| cedate | true | String | 创建结束时间 |
请求示例
{
"flag": "LIST",
"entity": "wg_bd_customer_inh_gh",
"pageindex": 1,
"pagesize": 10,
"sorttime": "modifytime desc",
"bdate": "",
"edate": "",
"custype": "",
"cusclass": "",
"ywyname": "",
"isnew": null,
"istrade": null,
"labids": [],
"search": "公海客户拉拉",
"startctimeids": "",
"endctimeids": "",
"custClassTypeIds": "",
"compyModelIds": "",
"compyTypeIds": "",
"custStatess": "",
"cussourceid": ""
}
响应示例
{
"data": {
"currentPageSize": 10,
"currentPageIndex": 1,
"totalPages": 1,
"count": 1,
"list": [
{
"id": "1520172122356371456",
"customerNo": "ghkh-20220929-00000001",
"customerName": "公海客户拉拉",
"nextGjTime": "",
"salesManId": "",
"salesMan": "",
"isTrade": true,
"createTime": "2022-09-29 10:30:25.0",
"billStatus": "1",
"customerType": "",
"lastContactDate": "2022-09-29 11:35:09.0",
"cusDetailedAddress": "",
"cusPostalAddress": "",
"modifytime": "2022-10-10 13:52:36.0",
"custClassName": ""
}
]
},
"errorCode": "success",
"status": true,
"success": true
}