Skip to content

On a schedule

Email a weekly Wix Stores sales summary

Every Monday an email shows last week's Wix Stores order count, revenue, average order value and the five best-selling products.

Runs
On a schedule
Apps
Wix
AI
Not needed
Access
read (Wix eCommerce orders)

Send this to your assistant

Create a ClickRuntime automation: every Monday at 8am, email me last week's Wix Stores sales: number of orders, total revenue, average order value and the top five products by quantity.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

Wix has sales analytics, but most shop owners do not open them every week. A short Monday email with the numbers that matter is easier to keep up with.

This pulls last week's approved orders from Wix eCommerce, totals them and lists your best-selling products. It also remembers the previous week so you can see the direction at a glance.

It suits small online shops, makers selling on a Wix site, and anyone who reports weekly sales to a partner or investor.

What you get out of it

  • The week in one look

    Orders, revenue and average order value sit on three lines. You know how the week went before your first meeting.

  • Best sellers by quantity

    The top-five list shows what is actually moving, which helps with reordering stock and choosing what to promote.

  • Week-on-week comparison

    Last week's figures are shown next to this week's, so a dip or jump is clear without opening a chart.

  • No dashboard login

    The numbers come to your inbox. You can read them on your phone and forward them as they are.

  • Read-only access

    The API key only needs to read orders. The automation cannot change products, prices or orders.

How it works

What happens, step by step

  1. Every Monday morning ClickRuntime loads all Wix Stores orders from the previous seven days.

  2. It adds up revenue, counts orders and works out the average order value.

  3. Line items are totalled per product to find the five best sellers.

  4. The summary arrives as one email with last week's figures for comparison.

Before it runs live

  • Connect Wix

What you get

RunsOn a schedule
Email a weekly Wix Stores sales summarytoday, 9:00Succeeded
Email · Wix sales last week: 38 orders, $2,947.60Orders: 38 (previous week 31) Revenue: $2,947.60 (previous week $2,410.00) Average order: $77.57 Top products 1. Ceramic pour-over set: 14 2. Single-origin beans 250g: 11 3. Gooseneck kettle: 6 4. Paper filters (100): 6 5. Gift card $25: 4

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Run it at a different time, more or less often, or only on weekdays
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Slack
  • Combine it with other Wix steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
email_a_weekly_wix_stores_sales_summary.pyexample
from collections import Counter
from datetime import datetime, timezone, timedelta
from clickruntime import on_trigger, credentials, http, state, notify

SITE_ID = "your-site-id"

@on_trigger
def run(event):
    since = (datetime.now(timezone.utc) - timedelta(days=7)).isoformat()
    orders, cursor = [], None
    while True:
        paging = {"limit": 100, **({"cursor": cursor} if cursor else {})}
        resp = http.post("https://www.wixapis.com/ecom/v1/orders/search",
                         headers={"Authorization": credentials.secret("WIX_API_KEY"), "wix-site-id": SITE_ID},
                         json={"search": {"filter": {"createdDate": {"$gt": since}, "status": "APPROVED"}, "cursorPaging": paging}})
        resp.raise_for_status()
        body = resp.json()
        orders += body.get("orders", [])
        cursor = body.get("metadata", {}).get("cursors", {}).get("next")
        if not cursor:
            break
    revenue = sum(float(o["priceSummary"]["total"]["amount"]) for o in orders)
    currency = orders[0]["currency"] if orders else ""
    products = Counter()
    for o in orders:
        for i in o["lineItems"]:
            products[i["productName"]["original"]] += i["quantity"]
    prev = state.get("prev") or {}
    state.set("prev", {"orders": len(orders), "revenue": revenue})
    top = "\n".join(f"{n}. {name}: {q}" for n, (name, q) in enumerate(products.most_common(5), 1))
    text = (f"Orders: {len(orders)} (previous week {prev.get('orders', 'n/a')})\n"
            f"Revenue: {currency} {revenue:,.2f} (previous week {currency} {prev.get('revenue', 0):,.2f})\n"
            f"Average order: {currency} {revenue / len(orders) if orders else 0:,.2f}\n\nTop products\n{top or 'No sales'}")
    notify.email_me(f"Wix sales last week: {len(orders)} orders, {currency} {revenue:,.2f}", text)
    return {"orders": len(orders), "revenue": revenue}

FAQ

Common questions

Are refunded or cancelled orders counted?
Only approved orders are counted, so cancelled checkouts are left out. Refunds made after the order was approved are not subtracted; ask your assistant to subtract refunded amounts if you need net revenue.
Can it send the summary to my business partner too?
The built-in email goes to you. To send to other people, connect Gmail and ask for the report to go to a list of addresses.
Does it include taxes and shipping?
Revenue uses the order total, which includes tax and shipping as Wix charged them. The script can switch to the subtotal if you prefer product revenue only.
What permissions does it need?
read (Wix eCommerce orders). Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it runs (on a schedule). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Email a weekly Wix Stores sales summary” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.