Store summary for a period
analytics:readRate limit heavyStore summary for a period, on when orders were placed: orders by fulfilment status, cancelled orders (left out of every other figure), items sold, revenue, top products and dropshipping margin. Money is never added across currencies: the money figures of totals are in the leading currency (the one with the most orders), with each currency in totals.by_currency; top_products has up to 10 rows per currency; dropship.margin is null when dropshipped orders were in more than one currency. Money is a decimal string, aov a number. from/to are YYYY-MM-DD (to includes the whole day); default all time. Counts against the heavy rate limit.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Query parameters
fromstringdatetostringdateYYYY-MM-DD, inclusive; must not be before from.
curl --request GET \ --url 'https://api.estage.com/v1/analytics/commerce' \ --header 'ESTAGE-API-Key: est_live_your-api-key'
{
"data": {
"totals": {
"orders": 42,
"cancelled": 2,
"items_sold": 57,
"currency": "USD",
"gross_revenue": "3150.00",
"refunded_total": "75.00",
"net_revenue": "3075.00",
"aov": 75,
"fulfillment": {
"unfulfilled": 6,
"partial": 1,
"fulfilled": 35
},
"by_currency": [
{
"currency": "USD",
"orders": 42,
"gross_revenue": "3150.00",
"refunded_total": "75.00",
"net_revenue": "3075.00",
"aov": 75
}
],
"currencies": [
"USD"
]
},
"top_products": [
{
"product_id": 1201,
"product_name": "Canvas tote",
"currency": "USD",
"quantity": 20,
"revenue": "700.00",
"orders": 18
}
],
"dropship": {
"purchase_orders": 5,
"currency": "USD",
"revenue": "450.00",
"supplier_cost": "260.00",
"margin": "190.00",
"margin_note": null,
"by_currency": [
{
"currency": "USD",
"purchase_orders": 5,
"revenue": "450.00"
}
]
}
}
}{ error: { code, message, details } }.