curl --request GET \
--url 'https://api.stateset.com/api/v1/analytics/sales' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"data": {
"average_order_value": "string",
"orders_this_month": 1,
"orders_this_week": 1,
"orders_today": 1,
"revenue_this_month": "string",
"revenue_this_week": "string",
"revenue_today": "string",
"total_orders": 1,
"total_revenue": "string"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
Get sales metrics only
Get sales metrics only
GET
/
api
/
v1
/
analytics
/
sales
curl --request GET \
--url 'https://api.stateset.com/api/v1/analytics/sales' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"data": {
"average_order_value": "string",
"orders_this_month": 1,
"orders_this_week": 1,
"orders_today": 1,
"revenue_this_month": "string",
"revenue_this_week": "string",
"revenue_today": "string",
"total_orders": 1,
"total_revenue": "string"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
Responses
ApiResponse_SalesMetrics
Sales metrics retrieved successfully
curl --request GET \
--url 'https://api.stateset.com/api/v1/analytics/sales' \
--header 'Authorization: Bearer YOUR_API_KEY'
{
"data": {
"average_order_value": "string",
"orders_this_month": 1,
"orders_this_week": 1,
"orders_today": 1,
"revenue_this_month": "string",
"revenue_this_week": "string",
"revenue_today": "string",
"total_orders": 1,
"total_revenue": "string"
},
"errors": null,
"message": null,
"meta": null,
"success": true
}
โI