---
title: "Obtain statistics about sales"
method: GET
path: "/apps/{appId}/statistics/timetable/sales"
tags: ["Statistics"]
---

# Obtain statistics about sales

`GET /apps/{appId}/statistics/timetable/sales`

## Path parameters

- `appId` integer, required

## Query parameters

- `detailed` boolean
- `groups` array[] — Array of intervals in days count
  - integer[] — Interval like [x, y] where x, y are a number of days between today. Example, to have all invoices overdue by more than 30 days but less than 60 : [-60, -30]

## Response `200`

Success

- object[]
  - `interval` string[]
  - `count` integer
  - `balance` integer
  - `data` Invoice[] — unresolved $ref

## Other responses

- `400` — Bad request
- `404` — Not found

---

[API](https://skmtc.net/sinao/apis/sinao-api.md) · [All operations](https://skmtc.net/sinao/apis/sinao-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sinao/sinao-api/revisions/436b47b78bf4/schema)
