Seller Product Revenue
/admin/analytics/productsEvery 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.
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/products" \ -H "Content-Type: application/json" \ -d '{ "window": { "from": "string", "to": "string" } }'[ { "skuId": "string", "name": "string", "currency": "AED", "keysSold": -9007199254740991, "refundsMinor": -9007199254740991, "netRevenueMinor": -9007199254740991 }]Seller Analytics POST
How 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.
Admin Get Key GET
Next Page
