---
title: "Reporting — sales (View Details)"
method: GET
path: "/reporting/sales/view"
tags: ["Admin Reporting: Sales"]
---

# Reporting — sales (View Details)

`GET /reporting/sales/view`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/reporting/sales/view`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/reporting/sales/view/get.ts> (a function with typed inputs; its response is checked against the schema)

The detailed table form of a sales stat (the admin "View Details" page). `statistics` is `{ columns, records }`. `?type=` chooses the stat group.

## Query parameters

- `type` 'total-sales' | 'average-sales' | 'total-orders' | 'purchase-funnel' | 'abandoned-carts' | 'refunds' | 'tax-collected' | 'shipping-collected' | 'top-payment-methods' | 'sales-by-coupon'
- `start` string, date
- `end` string, date
- `channel` string

## Response `200`

AdminReportingSales collection

- AdminReportingSales[]
  - `entity` string, nullable
  - `type` string, nullable
  - `dateRange` unknown[], nullable
    - unknown
  - `statistics` object, nullable

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
