Granted Product Revenue
/admin/product-analyticsWhat the products the store's owner granted the caller earned the store in the window, by name: for each duration, keys sold, what the store refunded, and what its resellers paid it less those refunds. No other product, and nothing of who bought them. Only a teammate granted products reads it; anyone else is refused and reads SellerProductRevenue. 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
application/json
curl -X POST "https://example.com/admin/product-analytics" \ -H "Content-Type: application/json" \ -d '{ "from": "string", "to": "string" }'[ { "productId": "string", "name": "string", "durations": [ { "skuId": "string", "name": "string", "currency": "AED", "keysSold": -9007199254740991, "refundsMinor": -9007199254740991, "netRevenueMinor": -9007199254740991 } ] }]