tableStatistics

This page contains the documentation for the statistics endpoints.

The statistics endpoints allow you to get the statistics of the users, products and orders. These metrics give you insights to the number of users, the most ordered items, and the status of the different orders.

Get User Stats

get
/stats/dashboard

This endpoint provides a summary of key metrics for the users shown in the admin dashboard, including:

  • Total orders and their statuses (pending, delivery, and completed).
  • Total users and total products. Each metric includes a text label, count, and a link for further details.
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Provide your API key.

Responses
chevron-right
200

Successful response. Returns a summary of dashboard statistics.

application/json
get
/stats/dashboard

Get Product Stats

get
/stats/productTable/{page}

This endpoint retrieves product statistics for the specified page, including:

  • Total products sold (soldCount).
  • Breakdown of product orders by status (pending, delivery, completed) with counts and total quantities.
chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Provide your API key.

Path parameters
pageinteger · min: 1Required

The page number for paginated product statistics.

Responses
chevron-right
200

Successful response. Returns a paginated list of product statistics.

application/json
get
/stats/productTable/{page}

Get Order Stats

get
/stats/orders/all/{page}

This endpoint retrieves order statistics for the specified page.

chevron-right
lockRequired scopes
This endpoint requires the following scopes:
Authorizations
AuthorizationstringRequired

Provide your API key.

Path parameters
pageintegerRequired

The page number for pagination.

Example: 1
Responses
chevron-right
200

A list of orders.

application/json
get
/stats/orders/all/{page}

Last updated