# 获取代理邀请用户的UID列表

**HTTP request** 获取邀请用户的UID列表 (代理账户)

- **GET** ```/api/v3/rebate/affiliate/getAffiliateUIDs```

权重(IP): 20
<div class='api-content-wrap'>
<div>


<strong>请求参数</strong>

| 参数名       | 参数类型 | 是否必须 | 描述           |
|:-----------|:------|:-------|:-------------|
| uid        | Long  | 否     | 被邀请用户的UID    |
| startTime  | Long  | 否     | 开始时间戳(UTC毫秒)。必须在最近1年内，未传则默认取结束时间向前90天。 |
| endTime    | Long  | 否     | 结束时间戳(UTC毫秒)。必须大于开始时间，查询区间不得超过90天。 |
| page       | Integer | 否    | 页码(从1开始，默认1) |
| pageSize   | Integer | 否    | 每页数量(默认100)  |

- 结束时间必须晚于开始时间。
- 单次查询的时间跨度最长为连续90天。
- 开始时间需落在最近365天内，若未指定则系统默认查询最近90天。
</div>
<div class='api-align'>
  <div class='code-wrap'>
<strong>请求示例</strong>

```powershell
curl "https://api-spot.weex.com/api/v3/rebate/affiliate/getAffiliateUIDs" \
   -H "ACCESS-KEY:*******" \
   -H "ACCESS-SIGN:*******" \
   -H "ACCESS-PASSPHRASE:*****" \
   -H "ACCESS-TIMESTAMP:1659076670000" \
   -H "Content-Type: application/json"
```

  </div>
  </div> 

</div>

<div class='api-content-wrap'>
  <div>
<strong>返回参数</strong>

| 字段名          | 类型      | 字段说明         |
|:-------------|:--------|:-------------|
| uid          | String  | 被邀请用户UID     |
| registerTime | Long    | 注册时间戳(单位：毫秒) |
| kycResult    | Boolean | KYC认证状态      |
| inviteCode   | String  | 邀请码          |
| firstDeposit | Long    | 首次入金时间(毫秒)   |
| firstTrade   | Long    | 首次交易时间(毫秒)   |
| lastDeposit  | Long    | 最近一次入金时间(毫秒) |
| lastTrade    | Long    | 最近一次交易时间(毫秒) |
| channelUserInfoItemList | Array | 代理用户明细列表 |
| pages        | Integer | 总页数           |
| pageSize     | Integer | 每页数量          |
| total        | Long    | 总记录数          |

  </div>
  <div class='api-align'>

  <div class='code-wrap'>
<strong>返回示例</strong>

```json
{
  "pages": 1,
  "pageSize": 100,
  "total": 98,
  "channelUserInfoItemList": [{
    "uid": "3066862172",
    "registerTime": 1749797913000,
    "kycResult": false,
    "inviteCode": "3lft",
    "firstTrade": 1738767425000,
    "lastTrade": 1744115178000,
    "firstDeposit": 1736425200000,
    "lastDeposit": 1745038712000
  }]
}
```
  </div>
    </div> 
</div>
