# Get Affiliate Commission

**HTTP request** Get Affiliate Commission

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

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). Default: 7 days ago,Max range: 3 months |
| endTime        | Long            | No       | End timestamp in UTC (milliseconds). Default: current time,Max range: 3 months |
| coin           | String          | No       | USDT or BTC                                                                    |
| productType    | String          | No       | SPOT or FUTURES (default SPOT)                                                 |
| page           | Integer         | No       | Page number (starting from 1, default 1)                                       |
| pageSize       | Integer         | No       | Page size (default 100)                                                        |

</div> 
<div class='api-align'>
  <div class='code-wrap'>
<strong>Request example</strong>

```powershell
curl "https://api-spot.weex.com/api/v3/rebate/affiliate/getAffiliateCommission" \
   -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                              |
|:----------------------------|:--------|:-----------------------------------------|
| channelCommissionInfoItems  | Array   | Commission records                        |
| uid                         | Long    | Invited User UID                         |
| date                        | Long    | Commission timestamp, unit: milliseconds |
| coin                        | String  | USDT, BTC ...                            |
| productType                 | String  | Product Type                             |
| fee                         | String  | Net Trading Fee                          |
| commission                  | String  | Paid Commission                          |
| rate                        | String  | Rebate Rate                              |
| symbol                      | String  | Trading Pair                             |
| sourceType                  | Integer | 1: Direct Client, 2: Sub-agent           |
| takerAmount                 | String  | Taker Amount (Trading Volume)            |
| makerAmount                 | String  | Maker Amount (Trading Volume)            |
| 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": 3,
  "pageSize": 100,
  "total": 1014,
  "channelCommissionInfoItems": [
    {
      "uid": "4667776811",
      "date": 1755687731913,
      "coin": "USDT",
      "fee": "0.682571",
      "commission": "0.0682571",
      "rate": "0.1",
      "productType": "SPOT",
      "symbol": "cmt_btcusdt",
      "sourceType": 1,
      "takerAmount": "1137.619",
      "makerAmount": "0"
    }
  ]
}
```
  </div>
    </div> 
</div>
