Аналитика заказов (агрегаты по статусам + доставки за 30 дней по дням)

GET/api/reseller/stats
curl https://hexpay.live/api/reseller/stats \
  -H "Authorization: Bearer <YOUR_API_KEY>"
Paste your key in the menu and it will replace <YOUR_API_KEY>.
{
  "success": true,
  "by_product": [
    {
      "product": "stars",
      "count": 128,
      "charged_nano": 4812400
    }
  ],
  "by_error": [
    {
      "error_code": "recipient_invalid",
      "count": 4
    }
  ],
  "totals": {
    "delivered": {
      "count": 42,
      "charged_nano": 5540000
    },
    "failed": {
      "count": 1,
      "charged_nano": 0
    }
  },
  "daily_delivered": [
    {
      "date": "2026-07-21",
      "delivered_count": 5,
      "delivered_nano": 660000
    }
  ]
}

Authorization

Header Authorization: Bearer <key> on every request. The key is issued in the cabinet and shown once. It spends your deposit: keep it on the server.

Response fields

successbooleanoptional
by_productobject[]optional

разрез доставленных заказов по товарам за период

by_errorobject[]optional

почему падали заказы за период — ветвитесь по error_code

totalsobjectoptional

агрегаты по статусам (count + сумма списаний в nano)

daily_deliveredobject[]optional

доставки за 30 дней по дням

When it fails

401
Собираем анонимную аналитику посещений. Подробнее