Skip to content

Dashboard

The Dashboard menu returns the aggregate figures that power the Bagisto admin Dashboard screen — sales, orders, customers, visitors, stock alerts, top products and top customers. It mirrors the admin Dashboard landing page.

The dashboard is seven separate queries

This is the most important thing to understand about this menu.

The Dashboard you see in the panel is not one response. The page is assembled from seven independent queries, one per section, each selected with the type argument. A single query returns one section of the dashboard. To render the whole screen, run statsAdminDashboard once per type (or only for the sections you need).

The statistics payload changes shape per type — sometimes an object, sometimes a flat array — so always branch on type when consuming it.

Dashboard section (admin panel)typestatistics is
Overall Details cardsover-all (default)object
Today's Details + today's order listtodayobject
Stock Threshold product liststock-threshold-productsarray
Store Stats sales charttotal-salesobject (with over_time series)
Visitors charttotal-visitorsobject (with over_time series)
Top Selling Products listtop-selling-productsarray
Customer With Most Sales listtop-customersarray

Date window

start / end (both YYYY-MM-DD) bound the figures and drive the previous baseline behind every progress percentage — the previous period is the same-length window immediately before start. start defaults to 30 days ago, end to today. channel (a channel code) scopes the figures to a single storefront channel.

dateRange is null over GraphQL

The camelCase dateRange field returns null over GraphQL in this build; type and statistics are fully populated. If you need the formatted label, read it from the REST endpoint, or reconstruct it from the start / end you sent.

Queries in this menu

ActionQuery
Dashboard statisticsstatsAdminDashboard

The Dashboard is read-only — there are no mutations on this menu. For deeper, dedicated sales / customer / product reports, see Reporting.

All Dashboard queries require only an admin Bearer token (no permission gate) — see Authentication.

Released under the MIT License.