# Get Affiliate Referral Data


**HTTP request** Direct Customer Trading Volume and Capital Analytics

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

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)    |
| endTime        | Long            | No         | End timestamp in UTC (milliseconds)      |
| 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/getChannelUserTradeAndAsset" \
   -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       |
| depositAmount        | String  | Deposit Amount         |
| withdrawalAmount     | String  | Withdrawal Amount      |
| spotTradingAmount    | String  | Spot Trading Volume    |
| futuresTradingAmount | String  | Futures Trading Volume |
| commission           | String  | Commission             |
| records              | Array   | Aggregated records     |
| 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,
  "records": [
    {
      "uid": "3066862172",
      "depositAmount": "0",
      "withdrawalAmount": "0",
      "spotTradingAmount": "0",
      "futuresTradingAmount": "0",
      "commission": "0"
    }
  ]
}
```
  </div>
    </div> 
</div>
