Sales Analytics
curl --request GET \
--url https://api.launchmystore.io/api/v1/analytics/sales \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/analytics/sales"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/api/v1/analytics/sales', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.launchmystore.io/api/v1/analytics/sales",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/analytics/sales"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.launchmystore.io/api/v1/analytics/sales")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/analytics/sales")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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": { "2026-05-01": { "count": 0 } },
"sourceCount": { "direct": { "count": 0 } }
},
"pagination": null
}
Analytics
Sales Analytics
Sales totals, conversion rate, AOV, and breakdowns for the range.
GET
/
api
/
v1
/
analytics
/
sales
Sales Analytics
curl --request GET \
--url https://api.launchmystore.io/api/v1/analytics/sales \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/analytics/sales"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/api/v1/analytics/sales', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.launchmystore.io/api/v1/analytics/sales",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/analytics/sales"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.launchmystore.io/api/v1/analytics/sales")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/analytics/sales")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"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": { "2026-05-01": { "count": 0 } },
"sourceCount": { "direct": { "count": 0 } }
},
"pagination": null
}
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
string
default:"last_7_days"
Predefined range (same options as
/summary).string
Custom range start (ISO 8601).
string
Custom range end (ISO 8601).
Response
object
Show sales
Show sales
number
Total sales in range.
number
Average order value.
number
Average daily sales.
number
Average daily orders.
number
Sessions → orders (%).
number
Cancelled order count.
number
Cancelled order value.
number
Distinct customers.
number
Returning customers.
number
Returning-customer rate (%).
number
Tax collected on orders.
object
{ totalOrders, ordersByDay }.object
Map of region → sales total.
number
Sessions in range.
object
Map of date →
{ count } (e.g. { "2026-05-01": { "count": 12 } }).object
Map of traffic source →
{ count } (e.g. { "google": { "count": 8 } }).{
"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": { "2026-05-01": { "count": 0 } },
"sourceCount": { "direct": { "count": 0 } }
},
"pagination": null
}