Seller Analytics
/admin/analyticsHow the store's resellers did from from up to to, a window of at most 366 days: each reseller's sales, keys sold and activated, what they paid in it, and what they owe now. Every money figure is in currency, the store's currency now, and so are the rows' currency: what was charged, paid or earned before the store changed its currency is converted into it at the rate of each change since (GetCurrencyHistory) and added; only what no recorded change converts is left out and summed per currency in otherCurrencies. outstandingMinor and overdueMinor are worked out from balances and statements, which a change of the store's currency carries over at the day's rate, so they are in currency too.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/admin/analytics" \ -H "Content-Type: application/json" \ -d '{ "from": "string", "to": "string" }'{ "currency": "AED", "perReseller": [ { "membershipId": "string", "displayName": "string", "revenueMinor": -9007199254740991, "currency": "AED", "keysSold": -9007199254740991, "keysActivated": -9007199254740991, "trialKeys": -9007199254740991, "supportActions": -9007199254740991 } ], "sellThrough": { "keysSold": -9007199254740991, "keysActivated": -9007199254740991 }, "supportLoad": [ { "kind": "hwid_reset", "count": -9007199254740991 } ], "outstandingMinor": -9007199254740991, "overdueMinor": -9007199254740991, "paymentsReceivedMinor": -9007199254740991, "topUpsReceivedMinor": -9007199254740991, "earnedMinor": -9007199254740991, "topSkus": [ { "skuId": "string", "name": "string", "keysSold": -9007199254740991, "revenueMinor": -9007199254740991, "currency": "AED" } ], "otherCurrencies": [ { "currency": "AED", "revenueMinor": -9007199254740991, "paymentsReceivedMinor": -9007199254740991, "topUpsReceivedMinor": -9007199254740991, "earnedMinor": -9007199254740991 } ]}List Product Options GET
The store's products by name, archived ones included, for the store's owner to pick which of them a teammate reads the figures of (GrantedProductRevenue).
Seller Product Revenue POST
Every product the store's resellers bought or were refunded in the window, most net revenue first: keys sold, what the store refunded, and what they paid it less those refunds. With `membershipId`, only keys bought by or through that reseller, its whole downline included. Each row's money is in its own `currency`: what was sold before the store changed its currency is converted into the store's currency now at the rate of each change since (GetCurrencyHistory), so a product has a row of its own in another currency only for what no recorded change converts.
