API docs: Reports
Sales summary
/api/v1/reports/salesreports:readReturns order count, sales, refunds, and net revenue for the last days days.
Query parameters
| Parameter | Description |
|---|---|
daysinteger | 1–365, default 7. |
curl "https://e2c.store/api/v1/reports/sales?days=30" \
-H "Authorization: Bearer $E2C_API_KEY"{
"data": {
"period_days": 30,
"total_orders": 48,
"pending_orders": 3,
"total_sales": 2140.5,
"total_refunds": 45.48,
"total_revenue": 2095.02
}
}Revenue trend
/api/v1/reports/revenue-trendreports:readReturns revenue and order count for each day, in your primary currency. Days with no orders are included with zeros, so the series has no gaps.
Query parameters
| Parameter | Description |
|---|---|
daysinteger | 1–90, default 30. |
curl "https://e2c.store/api/v1/reports/revenue-trend?days=3" \
-H "Authorization: Bearer $E2C_API_KEY"{
"data": {
"currency": "CAD",
"days": [
{ "date": "2026-09-24", "revenue": 91.46, "order_count": 2 },
{ "date": "2026-09-25", "revenue": 0, "order_count": 0 },
{ "date": "2026-09-26", "revenue": 45.48, "order_count": 1 }
]
}
}Order status breakdown
/api/v1/reports/order-statusreports:readReturns the number of orders in each status, across all time.
curl "https://e2c.store/api/v1/reports/order-status" \
-H "Authorization: Bearer $E2C_API_KEY"{
"data": [
{ "status": "CONF", "status_label": "Confirmed", "count": 4 },
{ "status": "SHIP", "status_label": "Shipped", "count": 12 },
{ "status": "DEL", "status_label": "Delivered", "count": 131 }
]
}Top products
/api/v1/reports/top-productsreports:readReturns your best-selling products by revenue. product_code is null for products that have since been deleted.
Query parameters
| Parameter | Description |
|---|---|
daysinteger | 1–365, default 30. |
limitinteger | 1–50, default 10. |
curl "https://e2c.store/api/v1/reports/top-products?days=90&limit=3" \
-H "Authorization: Bearer $E2C_API_KEY"{
"data": [
{ "product_code": "linen-tee", "name": "Linen Tee", "units_sold": 64, "revenue": 1279.36 },
{ "product_code": "canvas-tote", "name": "Canvas Tote", "units_sold": 21, "revenue": 524.79 },
{ "product_code": "gift-card", "name": "Gift Card", "units_sold": 5, "revenue": 250 }
]
}Traffic
/api/v1/reports/trafficreports:readReturns sessions, unique visitors, and page views, plus the product view → cart → checkout → order funnel.
Query parameters
| Parameter | Description |
|---|---|
daysinteger | 1–90, default 30. |
curl "https://e2c.store/api/v1/reports/traffic?days=7" \
-H "Authorization: Bearer $E2C_API_KEY"{
"data": {
"period_days": 7,
"sessions": 812,
"unique_visitors": 604,
"page_views": 2950,
"funnel": {
"product_views": 1240,
"cart_visits": 96,
"checkout_starts": 41,
"checkout_completes": 18,
"product_view_to_order_rate": 1.45
}
}
}product_view_to_order_rate is a percentage: completed checkouts divided by product views, times 100.