# Get Affiliate UIDs

**HTTP request** Get Affiliate UIDs

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

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

<strong>Request parameters</strong>

| Parameter      | Parameter type  | Required?  | Description                              |
|:---------------|:----------------|:-----------|:-----------------------------------------|
| uid            | Long            | No         | Invited User UID                         |
| startTime      | Long            | No         | Start timestamp in UTC (milliseconds). Must fall within the past 1 year; defaults to 90 days prior to `endTime` when omitted. |
| endTime        | Long            | No         | End timestamp in UTC (milliseconds). Must be greater than `startTime`; total range cannot exceed 90 days. |
| page           | Integer         | No         | Page number (starting from 1, default 1) |
| pageSize       | Integer         | No         | Page size (default 100)                  |


- End time must be later than the start time.
- The query window cannot exceed 90 consecutive days.
- The start time must be within the most recent 365 days; by default the system queries the last 90 days.

</div> 
<div class='api-align'>
  <div class='code-wrap'>
<strong>Request example</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>Response parameters</strong>

| Field Name    | Type    | Description                                |
|:--------------|:--------|:-------------------------------------------|
| uid                 | String  | Invited User UID                           |
| registerTime        | Long    | Registration timestamp, unit: milliseconds |
| kycResult           | Boolean | KYC status                                 |
| inviteCode          | String  | Invitation Code                            |
| firstDeposit        | Long    | First deposit time (milliseconds)          |
| firstTrade          | Long    | First trade time (milliseconds)            |
| lastDeposit         | Long    | Latest deposit time (milliseconds)         |
| lastTrade           | Long    | Latest trade time (milliseconds)           |
| channelUserInfoItemList | Array | Affiliate user items                    |
| pages               | Integer | Total pages                                |
| pageSize            | Integer | Page size                                  |
| total               | Long    | Total records                              |
  </div>
  <div class='api-align'>

  <div class='code-wrap'>
<strong>Response example</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>
