novinzodevelopers
Your store's APIApps referenceReseller insight

Seller Analytics

POST/admin/analytics

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.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

from*string
to*string

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