novinzodevelopers
Your store's APIApps referenceReseller insight

Seller Product Revenue

POST/admin/analytics/products

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.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

window*
membershipId?|null

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  }]