批量查询客户和客户分组信息(API名称:batchFindCustomerList)
功能介绍
通过此服务,可查询到客户和客户分组信息,,如果不存在或者存在多个直接报错 。
相关接口
|
接口名称 |
调用说明 |
|---|---|
|
调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
URL
|
请求方式 |
HTTPS地址 |
服务架构 |
消息体类型 |
|---|---|---|---|
|
POST |
https://isdp+域名/openapi/v1/customerFacede/batchFindCustomerList |
OpenAPI |
application/json |
请求头
|
KEY |
VALUE |
是否必填 |
描述 |
|---|---|---|---|
|
Content-Type |
application/json |
是 |
无 |
|
Authorization |
bearer ${access_token} |
是 |
bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
|
参数 |
类型 |
是否必填 |
描述 |
|---|---|---|---|
|
po |
Arrays |
是 |
Data如下。 |
Data:
|
参数 |
类型 |
是否必填 |
描述 |
|---|---|---|---|
|
customerNo |
Arrays |
是 |
客户名称,仅精确查询。 |
|
customerName |
String |
否 |
客户名称,仅精确查询。 |
响应参数
|
参数 |
类型 |
描述 |
|---|---|---|
|
tenantId |
Long |
租户ID。 |
|
customerCode |
String |
客户编码。 |
|
customerName |
String |
客户名称。 |
|
customerGroupName |
String |
客户分组名称。 |
|
customerGroupCode |
String |
客户分组名称。 |
请求示例
{
"po":[
{
" customerCode":" AAAAA",
" customerName":" AAAAAB "
},
{
" customerCode":" AAA1",
" customerName":" AAAAA2"
}
]
}
响应示例
{
"data":[
{
"customerCode":"AAA1",
"customerName":"AAAAA2",
"tenantId":1008611,
"customerGroupName":"TEST",
"customerGroupCode":"TX"
},
{
"customerCode":"AAAAA",
"customerName":"AAAAAB",
"tenantId":1008611,
"customerGroupName":"TEST",
"customerGroupCode":"TX"
}
],
"pos":0,
"total_count":2,
"entityName":null,
"totalCount":2
}