
# 查询客户和客户分组信息（API名称：getPagedCustomerList）
#### 功能介绍
通过此服务，可查询到客户和客户分组信息 。
#### 相关接口
| **接口名称**                                                             | **调用说明**                                                     |
|:---|:---|
| [获取Token](https://support.huaweicloud.com/api-isdp/api_01_0019.html) | 调用该接口获取到Token，再调用其他接口时，需要在请求消息头中添加"Authorization"，其值即为Token。 |
   
#### URL
| 请求方式 | HTTPS地址                                                              | 服务架构    | 消息体类型            |
|:---|:---|:---|:---|
| POST | https://***isdp+域名***/openapi/v1/customerFacede/getPagedCustomerList | OpenAPI | application/json |
   
#### 请求头
| **KEY**       | VALUE                  | 是否必填 | **描述**                                                                                           |
|:---|:---|:---|:---|
| Content-Type  | application/json       | 是    | 无                                                                                                |
| Authorization | bearer ${access_token} | 是    | bearer +" "+[5.2.1](https://support.huaweicloud.com/api-isdp/api_01_0019.html)中获取的access_token的值 |
   
#### 请求参数
| 参数                   | 类型      | 是否必填 | 描述            |
|:---|:---|:---|:---|
| po.customerCode      | String  | 否    | 客户编码，支持右模糊查询。 |
| po.customerName      | String  | 否    | 客户名称，支持右模糊查询。 |
| po.customerGroupName | String  | 否    | 客户分组名称，支持右模糊。 |
| page.start           | Integer | 是    | 分页起始下标。       |
| page.count           | Integer | 是    | 每页数。          |
   
#### 响应参数
| 参数                | 类型     | 描述      |
|:---|:---|:---|
| tenantId          | Long   | 租户ID。   |
| customerId        | Long   | 客户ID。   |
| customerCode      | String | 客户编码。   |
| customerName      | String | 客户名称。   |
| customerGroupName | String | 客户分组名称。 |
| customerGroupCode | String | 客户分组名称。 |
   
#### 请求示例
```
{
  "page.count": 15,
  "page.start": 0, 
  "po.customerCode": "AAA",
  "po.customerGroupCode": "TE",
  "po.customerName": "AAA"
}
```
#### 响应示例
```
{
    "data":[
        {
            "customerCode":"AAA1",
            "customerName":"AAAAA2",
            "tenantId":1008611, 
            " customerId ":1008611,
            "customerGroupName":"TEST",
            "customerGroupCode":"TX"
        },
        {
            "customerCode":"AAAAA",
            "customerName":"AAAAAB",
            "tenantId":1008611, 
            "customerId":1008611,
            "customerGroupName":"TEST",
            "customerGroupCode":"TX"
        }
    ],
    "pos":0,
    "total_count":2,
    "entityName":null,
    "totalCount":2
}
```
