30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Get Sales Summary

WooCommerce’s analytics tables can be empty or part-way through an import, and a report built on them gives a confidently wrong answer.

store/get-sales-summary calculates the numbers from the orders themselves, and says which source it used.

At a glance

Abilitystore/get-sales-summary
ToolsetWooCommerce — toolset/woocommerce
GroupWooCommerce › Sales Insight
RequiresWooCommerce, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

Pass from and to as YYYY-MM-DD. Omit from for all time; to defaults to today.

It counts processing and completed orders only — pending and failed orders are not revenue.

The result includes gross and net revenue, refunds, tax, shipping, average order value, distinct customers and the currency.

Input

NameTypeRequiredWhat it is
fromstringNoStart date, YYYY-MM-DD. Omit for all time.
tostringNoEnd date, YYYY-MM-DD. Defaults to today.

What comes back

NameTypeWhat it is
ordersintegerOrders counted.
gross_revenuestringRevenue before refunds.
refundedstringTotal refunded.
net_revenuestringRevenue after refunds.
taxstringTax collected.
shippingstringShipping charged.
average_orderstringAverage order value.
distinct_customersintegerHow many different customers bought.
currencystringStore currency.
counted_statusesarrayThe order statuses counted as revenue.
sourcestringWhere the figures were calculated from.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

How much did we sell last month, after refunds?

It resolves to one call:

{
  "ability": "store/get-sales-summary",
  "parameters": {
    "from": "2026-08-01",
    "to": "2026-08-31"
  }
}

Worth knowing

  • Figures come from the orders, so they stay right even when WooCommerce Analytics hasn’t caught up.
  • Pending and failed orders are excluded on purpose.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading