Get affiliate commission
Affiliate
Get affiliate commission
Commission paid to you by your invited players
GET
Get affiliate commission
Returns commission paid to the caller by the players they have invited, grouped by player username. With no parameters, returns lifetime earnings; with
fromDate / toDate, restricts the range.
Unlike most endpoints, this one returns the result at the top level as
commissionPaid (not under data).Request
GET /affiliate/getAffiliateCommission
string
Start date (
MM-DD-YYYY). Defaults to 08-02-2021.string
End date (
MM-DD-YYYY). Defaults to today.Response
array
Each entry is a single-key object mapping a player’s username to the total commission paid by that player in the requested range.
Example
Errors
Authorizations
Pass your auth token in the Authorization header. The Bearer prefix is optional; the server also accepts a signed auth cookie or a token field in the request body.
Query Parameters
Start date (MM-DD-YYYY). Defaults to 08-02-2021.
Example:
"10-03-2022"
End date (MM-DD-YYYY). Defaults to today.
Example:
"10-10-2022"
Response
Commission summary
Each entry is a single-key object mapping a player's username to total commission paid.
Example: