Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,113 of 9,113 pages
About the help in other languages
All help pages

Store figures and exports

Getting figures and data out of an Exponential store - the dashboard and order statistics, order data as JSON through the expservices order services, product data as CSV with ezcsvexport, the audit export, and what has…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/e-commerce/operations/store-figures-and-exports.md

On this page

Store figures and exports

This page is for merchants, the people who prepare figures for the accountant, and developers who need store data outside the administration. The order list has no spreadsheet export, so this page lists what does exist, what each produces, and what remains to be built.

Contents

  1. What exists
  2. Month-end figures
  3. Order data as JSON
  4. Product data as CSV
  5. Audit exports
  6. An accounting export

What exists

NeedToolOutput
Sales per product and monthStore > Statistics (shop/statistics)Screen
Trends, open orders, abandoned basketsStore dashboardScreen
Orders, items, customers, statisticsexpservices order services (exporder::list, view, items, statistics, customers and more)JSON
Products of a subtreebin/php/ezcsvexport.phpCSV, one file per class
Who changed what in commerceAudit export (audit/export)CSV, JSON lines or JSON

Month-end figures

  1. Store > Statistics for the month: products, quantities and totals per currency.
  2. The dashboard's 30-day figures for trends and the share of failed, cancelled and refunded orders, which count as orders but not as revenue on the dashboard.
  3. Write the figures into your monthly report as described in Store reports.

The statistics count placed orders only, never temporary ones (eZOrder::orderStatistics() filters is_temporary = 0); archived orders are included.

Order data as JSON

The expservices extension, shipped in the repository's extension/ folder, offers the shop's data as remote services (Headless commerce with expservices). For figures and exports:

ServiceReturnsPolicy
exporder::listOrders, filterable by status and archived, sorted by created, id, total or user name, pagedshop/administrate
exporder::view, exporder::items, exporder::historyOne order, its lines, its status historyshop/administrate
exporder::statisticsProducts sold in a year or month with totals per currencyshop/administrate
exporder::customers, exporder::customerOrdersCustomers and their ordersshop/administrate

A script with a personal API token of a dedicated user (with shop/administrate and nothing else) can fetch these and write a spreadsheet. The extension was added as version 0.1.0 and its feature page calls it a first draft; test the services you rely on after updates.

Product data as CSV

php bin/php/ezcsvexport.php --storage-dir=export <node id>

writes one CSV file per content class for the subtree, prices in the text format of the price datatype (Price fields compared). Use it for a price list, a catalog check, or as a template for an import.

Audit exports

With audit/export, the Audit tab exports the console's filter as CSV, JSON lines or JSON, for example all commerce.* events of a month (Commerce audit trail).

An accounting export

An export to an accounting system (orders with VAT per rate, payments, refunds) is not in the kernel. Build it as:

  • a script that reads exporder::list and exporder::view, or the order classes directly, filtering is_temporary = 0; or
  • an event on the after trigger of shop_checkout that sends each placed order as it happens (Workflows on shop triggers).

Agree the fields with your accountant first. Leave customer data out unless the accounting system needs it.

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x