基本信息
- 用途说明:查询crm联系人列表(单据标识:wg_inv_crm_contact)
- 请求方式:POST
- 请求地址:https://api.kingdee.com/weigusoft/wg_cost/loadList?access_token=&authority_info=
请求参数
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 |
| Appuserid | 10102023 | true | 当前登录用户id |
params参数
| 参数名称 | 参数类型 | 是否必填 | 参数说明 |
|---|---|---|---|
| access_token | string | true | 金蝶云通行证token |
| authority_info | string | true | 见文档authority_info参数说明 |
body参数
| 参数名称 | 必选 | 类型 | 说明 |
|---|---|---|---|
| entityName | true | String | 单据标识:wg_inv_crm_contact |
| pageindex | true | Number | 当前页(默认1) |
| pagesize | true | Number | 每页显示条数 |
| andQfilters | false | Array |
"andQfilters": [ { "property": "number", "cp": "=", "value": "CRML-2024-04-01-190c28c6" }], //与条件 |
| orQfilters | false | Array |
orQfilters": [ { "property": "contactperson", //条件字段标识 "cp": "=", //条件符号 "value": "test" //条件值,like的要加% }], //或条件 |
| onlyBasic | false | Boolean |
是否只获取基本信息,名称和编码 |
| onlyCount | false | Boolean |
是否只获取数量 |
| haveMatPic | false | Boolean |
是否返回物料图片 |
| srcType | false | String |
上一个页面单据类型 |
| srcId | false | String |
上一个页面单据id |
| exclude | false | Boolean |
是否有排除的 |
| level | false | String |
基础资料查到哪一层,例:"1" |
| orderBy | false | String |
排序,“number asc” |
请求示例
{
"pageindex": 1,
"pagesize": 10,
"entityName": "wg_inv_crm_contact",
"selectProperties": "customerid.name,mobile,contact_address,isdefault_linkman,contactperson,status,salerid.name,enable",
"andQfilters": [],
"orQfilters": [
{
"property": "customerid.name",
"cp": "like",
"value": "%test1%"
},
{
"property": "contactperson",
"cp": "like",
"value": "%test1%"
},
{
"property": "mobile",
"cp": "like",
"value": "%test1%"
},
{
"property": "salerid.name",
"cp": "like",
"value": "%test1%"
}
],
"orderBy": "number asc"
}
响应示例
{
"data": {
"currentPageSize": 10,
"currentPageIndex": 1,
"totalPages": 1,
"count": 1,
"list": [
{
"customerid_id": "1747152135121819650",
"contactperson": "test1",
"mobile": "18522223333",
"customerid_mullabel": [
{
"number": "113724193477307785",
"name": "6",
"id": "113724193477307785"
}
],
"salerid_id": "1394084520470297600",
"number": "CRML-2024-04-01-190c28c6",
"masterid": "1747177699220151296",
"customerid_number": "CRMKH-20230808-0001",
"salerid_name": "董素敏",
"salerid_number": "ZY00004",
"enable": "1",
"customerid_name": "杨波",
"isdefault_linkman": false,
"id": "1747177699220151296",
"contact_address": "",
"status": "C"
}
],
"qtycount": 0,
"allamount": 0
},
"errorCode": "success",
"status": true,
"success": true
}
curl:
curl ^"https://api.kingdee.com/weigusoft/wg_cost/loadList?access_token=1751589696b6fadec8ca66f4bff7eece^&authority_info=80YVhAfnQaOYK7vgQL1NZOCzmT9slfIZW8j01JnRwGPlJhpCXkVtaJW70RN/XQPn^" ^
-H ^"Accept: */*^" ^
-H ^"Accept-Language: zh-CN,zh;q=0.9^" ^
-H ^"Appuserid: 10102023^" ^
-H ^"Connection: keep-alive^" ^
-H ^"Content-Type: application/json;charset=UTF-8^" ^
-H ^"Origin: http://localhost:5173^" ^
-H ^"Referer: http://localhost:5173/^" ^
-H ^"Sec-Fetch-Dest: empty^" ^
-H ^"Sec-Fetch-Mode: cors^" ^
-H ^"Sec-Fetch-Site: cross-site^" ^
-H ^"User-Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1^" ^
-H ^"X-GW-Router-Addr: https://tf-ek.jdy.com^" ^
-H ^"access_token: 1751589696b6fadec8ca66f4bff7eece^" ^
-H ^"accountId: 1675743896569628608^" ^
-H ^"groupName: ns-isv5^" ^
--data-raw ^"^{^\^"pageindex^\^":1,^\^"pagesize^\^":10,^\^"entityName^\^":^\^"wg_inv_crm_contact^\^",^\^"selectProperties^\^":^\^"customerid.name,mobile,contact_address,isdefault_linkman,contactperson,status,salerid.name,enable^\^",^\^"andQfilters^\^":^[^],^\^"orQfilters^\^":^[^{^\^"property^\^":^\^"customerid.name^\^",^\^"cp^\^":^\^"like^\^",^\^"value^\^":^\^"^%^test1^%^\^"^},^{^\^"property^\^":^\^"contactperson^\^",^\^"cp^\^":^\^"like^\^",^\^"value^\^":^\^"^%^test1^%^\^"^},^{^\^"property^\^":^\^"mobile^\^",^\^"cp^\^":^\^"like^\^",^\^"value^\^":^\^"^%^test1^%^\^"^},^{^\^"property^\^":^\^"salerid.name^\^",^\^"cp^\^":^\^"like^\^",^\^"value^\^":^\^"^%^test1^%^\^"^}^],^\^"orderBy^\^":^\^"number asc^\^"^}^"