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; withDocumentation Index
Fetch the complete documentation index at: https://docs.4casters.io/llms.txt
Use this file to discover all available pages before exploring further.
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
Start date (
MM-DD-YYYY). Defaults to 08-02-2021.End date (
MM-DD-YYYY). Defaults to today.Response
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
| Status | Meaning |
|---|---|
400 | fromDate is not parseable. |
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:
[{ "alice": 124.5 }, { "bob": 12 }]