Skip to main content

Get Affiliate Sub-Affiliate List

To use this endpoint, you should have an affiliate account and only tick "affiliate" permission while creating the API key.
Affiliate site: https://affiliates.bybit.com

tip
  • Use master UID only
  • The api key can only have "Affiliate" permission

HTTP Request

GET/v5/affiliate/affiliate-sub-list

Request Parameters

ParameterRequiredTypeComments
cursorfalsestringCursor. Use the nextPageCursor token from the response to retrieve the next page of the result set
sizefalseintegerLimit for data size per page. [0, 100]. Default: 0
startDatefalsestringStart date of the query period, format YYYY-MM-DD. The range between "startDate" and "endTime" cannot exceed 3 months
endDatefalsestringEnd date of the query period, format YYYY-MM-DD. "startDate" and "endDate" must either both be provided or both be omitted. If both are omitted, it returns T-1 data by default
subAffIdfalseintegerSub-affiliate ID for exact lookup. Pass 0 or omit to return all sub-affiliates without filtering

Response Parameters

ParameterTypeComments
listarrayObject
> subAffIdstringSub-affiliate ID
> userIdstringSub-affiliate UID
> namestringSub-affiliate account nickname
> emailstringSub-affiliate email address (partially masked)
> commissionsVoljsonCommission amount per currency for the queried date range (fixed five currencies: BTC / ETH / MNT / USDC / USDT)
> commissionsForUsdtstringTotal commission converted to USDT for the queried date range
> becameAffTimestringTime when this user became a sub-affiliate, format YYYY-MM-DD HH:mm:ss (UTC)
> startDatestringQuery start time echoed from the request parameters, format YYYY-MM-DD HH:mm:ss
> endDatestringQuery end time echoed from the request parameters, format YYYY-MM-DD HH:mm:ss
nextPageCursorstringRefer to the cursor request parameter

Request Example

GET /v5/affiliate/affiliate-sub-list?cursor=&size=100&startDate=2024-01-01&endDate=2024-01-31 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-API-KEY: xxxxxxxxxxxxxxxxxx
X-BAPI-TIMESTAMP: 1706745600000
X-BAPI-RECV-WINDOW: 5000
X-BAPI-SIGN: xxxxxx
Content-Type: application/json

Response Example

{
"retCode": 0,
"retMsg": "OK",
"result": {
"list": [
{
"subAffId": "10001",
"userId": "123456789",
"name": "sub_affiliate_nick",
"email": "sub***@example.com",
"commissionsVol": {
"BTC": "0.005",
"ETH": "0.2",
"MNT": "40.0",
"USDC": "100.0",
"USDT": "400.0"
},
"commissionsForUsdt": "550.00",
"becameAffTime": "2023-06-01 10:00:00",
"startDate": "2024-01-01 00:00:00",
"endDate": "2024-01-31 23:59:59"
}
],
"nextPageCursor": "eyJsYXN0SWQiOiIxMDAwMSJ9"
},
"retExtInfo": {},
"time": 1706745600000
}