Orders Statistics by Product

📊 Returns top-selling products with order statistics.

HTTP: GET /orders/stats/by-product

Query parameters

NameTypeRequiredDescriptionExample
domainstringnoFilter by domain.profi-parfemy.cz
date_fromstringnoStart date (YYYY-MM-DD).2025-01-01
date_tostringnoEnd date (YYYY-MM-DD).2025-12-31
convert_tostringnoConvert all amounts to this currency.EUR
limitintegernoNumber of top products to return (default 50).50
sortstringnoSort by: quantity, revenue, margin, orders.revenue

Notes

Sample request

curl -H "Authorization: ApiKey YOUR_API_KEY" "https://admin.elpricing.com/api/orders/stats/by-product?domain=profi-parfemy.cz&limit=20&sort=revenue"

Interactive call

Queue workflow

Tasks are persisted to var/api_queue/tasks.json. Process them with:

php go.php cron:list\nphp go.php cron:go

Logs are written to var/api_queue/logs/{task_id}.log.