Get Affiliate Commission
HTTP request Get Affiliate Commission
- GET /api/v2/rebate/affiliate/getAffiliateCommission
Weight(IP): 20, Weight(UID): 20
Request parameters
| 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) | 
Request example
curl "https://api-spot.weex.com/api/v2/rebate/affiliate/getAffiliateCommission" \
   -H "ACCESS-KEY:*******" \
   -H "ACCESS-SIGN:*******" \
   -H "ACCESS-PASSPHRASE:*****" \
   -H "ACCESS-TIMESTAMP:1659076670000" \
   -H "locale:zh-CN" \
   -H "Content-Type: application/json"
Response parameters
| Field Name | Type | Description | 
|---|---|---|
| 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) | 
Response example
{
  "code": "200",
  "data": {
    "pages": 3,
    "pageSize": 100,
    "total": 1014,
    "channelCommissionInfoItems": [
      {
        "uid": "4667776811",
        "dealTime": "1755687731913",
        "coin": "USDT",
        "fee": "0.682571",
        "commission": "0.0682571",
        "rate": "0.1",
        "symbol": "cmt_btcusdt",
        "sourceType": 1,
        "takerAmount": "1137.619",
        "makerAmount": "0"
      }]
  },
  "timestamp": 1756103438804
}