Skip to main content
GET
Get affiliate commission
返回调用方所邀请玩家向其支付的佣金,按玩家用户名分组。不带参数时返回终身收益;带 fromDate / toDate 时限定范围。
与大多数端点不同,此端点在顶层以 commissionPaid 返回结果(不在 data 下)。

请求

GET /affiliate/getAffiliateCommission
string
开始日期(MM-DD-YYYY)。默认为 08-02-2021。
string
结束日期(MM-DD-YYYY)。默认为今天。

响应

array
每条记录是单键对象,将玩家用户名映射为该玩家在请求范围内支付的佣金总额。

示例

错误

授权

Authorization
string
header
必填

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.

查询参数

fromDate
string

Start date (MM-DD-YYYY). Defaults to 08-02-2021.

示例:

"10-03-2022"

toDate
string

End date (MM-DD-YYYY). Defaults to today.

示例:

"10-10-2022"

响应

Commission summary

commissionPaid
object[]

Each entry is a single-key object mapping a player's username to total commission paid.

示例: