1. 查询客户列表
GET /v1/api/custom/info?from={from}&to={to}&page={page}&size={size}
| Name | Required | Type | Description | 
| x-api-tenantId | yes | string | 租户编号 | 
| x-api-token | yes | string | 认证token | 
Request Parameters
| Name | Required | Type | Description | 
| from | yes | datetime | 开始时间 | 
| to | yes | datetime | 结束时间 | 
| page | no | number | 默认为1 | 
| size | no | number | 默认为20,最大值200 | 
Response
| Name | Type | Description | 
| result | boolean | 成功标识,返回true,表示请求成功,false表示请求失败 | 
| mcode | string | 错误码,成功时返回m00000,失败时返回对应的错误码,见文档默认错误码说明 | 
| data | object | 客户数据 | 
| errorMessage | List | 错误提示信息,部分错误码时有值 | 
1、data数据类型
| Name | Type | Description | 
| list | object | 账户列表 | 
| offset | string | 入金货币 | 
| pager | int | 登录状态 | 
| pages | int | 交易状态 | 
| size | int | sned reports | 
| total | string | 总记录数 | 
2、list数据类型
| Name | Type | Description | 
| _id | string | 客户id | 
| customName | string | 姓名 | 
| email | string | 邮箱 | 
| customNo | string | 客户编号 | 
| oweId | string | 归属用户id | 
| customerState | string | 状态 | 
| commendId | string | 推荐人id(另一个客户的id) | 
| phones | json | 电话 | 
| createTime | datetime | 创建时间 | 
 
 
 
Example
请求示例
GET /v1/api/custom/info?from=2019-11-01 00:00:00&to=2019-11-27 00:00:00&page=1&size=2
返回示例:成功
{
    "data": {
        "list": [
            {
                "_id": "c4699d03-ad43-4457-a418-6cd0a72483a6",
                "customName": "[email protected]",
                "email": "",
                "customNo": "CNPP2F",
                "oweId": "27",
                "customerState": "Potential",
                "createTime": "2019-11-04 14:13:09"
            },
            {
                "_id": "8dd153a3-36ad-4d97-bf6a-26bdd643c9a0",
                "customName": "[email protected]",
                "email": "",
                "customNo": "CYLE2U",
                "oweId": "27",
                "customerState": "Potential",
                "createTime": "2019-11-04 14:13:19"
            }
        ],
        "offset": 0,
        "pager": 1,
        "pages": 94,
        "size": 2,
        "total": 188
    },
    "mcode": "m0000000",
    "result": true,
    "time": 1575448536727
}
返回示例:失败
{
    "mcode":"m0000001",
    "errorMessage":"",
    "result":false
}
2. Error 错误处理
错误码表(Error Code)
| mcode | Message | 
| BW_INVALID_PARAM | 参数错误 | 
| BW_INVALID_SERVERID | 无效serverId | 
| -1 | 服务异常,请稍后再试 |