Skip to main content
GET
/
api
/
v1
/
analytics
/
sales
Sales Analytics
curl --request GET \
  --url https://api.launchmystore.io/api/v1/analytics/sales \
  --header 'Authorization: Bearer <token>'
{
  "status": 200,
  "state": "success",
  "message": null,
  "data": {
    "grossSale": 0,
    "averageOrderValue": 0,
    "avgSalePerDay": 0,
    "avgOrders": 0,
    "conversionRate": 0,
    "cancelOrdersCount": 0,
    "canceledOrdersAmount": 0,
    "totalCustomers": 0,
    "returningCustomers": 0,
    "returningCustomerRate": 0,
    "taxCollected": 0,
    "ordersData": { "totalOrders": 0, "ordersByDay": {} },
    "saleByTopRegion": {},
    "viewDataByDays": 0,
    "viewsByDate": {},
    "sourceCount": {}
  },
  "pagination": null
}

Documentation Index

Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt

Use this file to discover all available pages before exploring further.

Sales-focused breakdown of the requested range — gross sale, AOV, returning customer rate, tax collected, and per-region totals. Required scope: read_analytics

Query Parameters

range
string
default:"last_7_days"
Predefined range (same options as /summary).
start
string
Custom range start (ISO 8601).
end
string
Custom range end (ISO 8601).

Response

data
object
{
  "status": 200,
  "state": "success",
  "message": null,
  "data": {
    "grossSale": 0,
    "averageOrderValue": 0,
    "avgSalePerDay": 0,
    "avgOrders": 0,
    "conversionRate": 0,
    "cancelOrdersCount": 0,
    "canceledOrdersAmount": 0,
    "totalCustomers": 0,
    "returningCustomers": 0,
    "returningCustomerRate": 0,
    "taxCollected": 0,
    "ordersData": { "totalOrders": 0, "ordersByDay": {} },
    "saleByTopRegion": {},
    "viewDataByDays": 0,
    "viewsByDate": {},
    "sourceCount": {}
  },
  "pagination": null
}