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.

範例: