# Report pos

::: info
Every response arrives in the shared envelope — `code`, `message`, `messages`, `status_code`, `time` — with the payload in `data`. The tables below describe what is inside `data`.
:::

## POST /reports/pos/summary/chart

POS summary chart (sales + income + expense combined time series).

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/chart' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "search": "string",
  "type": "product"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/chart', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "sale_type": "receipt",
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "field": "gross_sales",
    "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "search": "string",
    "type": "product"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/chart",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "sale_type": "receipt",
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "field": "gross_sales",
        "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "search": "string",
        "type": "product",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "search": "string",
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/chart');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `sale_type` | `string` | No | One of: `receipt`, `sale_contract`, `trade` |
| `from_date` | `string (date-time)` | No | Start of the reporting window. |
| `to_date` | `string (date-time)` | No | End of the reporting window. |
| `field` | `string` | No | Metric the chart plots.. One of: `gross_sales`, `refund`, `discount`, `gift`, `net_sales`, `profit`. Default: `"gross_sales"` |
| `supplier_id` | `string` | No |  |
| `cashbox_id` | `string` | No | Cashbox ObjectId. |
| `product_id` | `string` | No |  |
| `search` | `string` | No | Free-text search. |
| `type` | `string` | No | One of: `product`, `customer`, `employee`, `payment`, `category` |

```json
{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "search": "string",
  "type": "product"
}
```

**Response**

```json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": [
    {
      "label": "string",
      "value": 0
    }
  ],
  "time": "2025-05-01T12:00:00Z"
}
```

## POST /reports/pos/summary/sale/chart

POS sales chart over the reporting window.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/sale/chart' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "type": "product"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/sale/chart', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "sale_type": "receipt",
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "field": "gross_sales",
    "type": "product"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/sale/chart",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "sale_type": "receipt",
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "field": "gross_sales",
        "type": "product",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/sale/chart');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `sale_type` | `string` | No | One of: `receipt`, `sale_contract`, `trade` |
| `from_date` | `string (date-time)` | No | Start of the reporting window. |
| `to_date` | `string (date-time)` | No | End of the reporting window. |
| `field` | `string` | No | Metric the chart plots.. One of: `gross_sales`, `refund`, `discount`, `gift`, `net_sales`, `profit`. Default: `"gross_sales"` |
| `type` | `string` | No | One of: `product`, `customer`, `employee`, `payment`, `category` |

```json
{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "type": "product"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/chart](#post-reports-pos-summary-chart).

## POST /reports/pos/summary/income/chart

POS income chart over the reporting window.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/income/chart' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "payment_type_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/income/chart', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "payment_type_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "type": "product"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/income/chart",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "payment_type_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "type": "product",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "payment_type_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/income/chart');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `from_date` | `string (date-time)` | No | Start of the reporting window. |
| `to_date` | `string (date-time)` | No | End of the reporting window. |
| `cashbox_id` | `string` | No | Cashbox ObjectId. |
| `payment_type_id` | `string` | No |  |
| `type` | `string` | No | One of: `product`, `customer`, `employee`, `payment`, `category` |

```json
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "payment_type_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/chart](#post-reports-pos-summary-chart).

## POST /reports/pos/summary/expense/chart

POS expense chart over the reporting window.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/expense/chart' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "payment_type_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/expense/chart', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "payment_type_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "type": "product"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/expense/chart",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "payment_type_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "type": "product",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "payment_type_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/expense/chart');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `from_date` | `string (date-time)` | No | Start of the reporting window. |
| `to_date` | `string (date-time)` | No | End of the reporting window. |
| `cashbox_id` | `string` | No | Cashbox ObjectId. |
| `payment_type_id` | `string` | No |  |
| `type` | `string` | No | One of: `product`, `customer`, `employee`, `payment`, `category` |

```json
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "payment_type_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/chart](#post-reports-pos-summary-chart).

## POST /reports/pos/summary/debt/get-summary

Aggregate POS-issued customer debt.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/debt/get-summary' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/debt/get-summary', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/debt/get-summary",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/debt/get-summary');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `organization_id` | `string` | Yes | Required by validation, but the report runs for the organization from the `organization_id` header (or the integration settings), not this value. |

```json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
```

**Response**

```json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {},
  "time": "2025-05-01T12:00:00Z"
}
```

## POST /reports/pos/summary/credit/get-summary

Aggregate POS-issued customer credit.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/credit/get-summary' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/credit/get-summary', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/credit/get-summary",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/credit/get-summary');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `organization_id` | `string` | Yes | Required by validation, but the report runs for the organization from the `organization_id` header (or the integration settings), not this value. |

```json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/get-summary](#post-reports-pos-summary-debt-get-summary).

## POST /reports/pos/summary/debt/paging

Paginated POS debt rows.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/debt/paging' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "limit": 0,
  "page": 0
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/debt/paging', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "limit": 0,
    "page": 0
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/debt/paging",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "limit": 0,
        "page": 0,
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "limit": 0,
  "page": 0
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/debt/paging');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `limit` | `number` | Yes | Maximum number of rows to return. |
| `page` | `number` | Yes | Page number, starting from 1. |
| `supplier_id` | `string` | No |  |
| `customer_id` | `string` | No |  |
| `sort` | `object` | No |  |
| `sort.name` | `integer` | No | One of: `1`, `-1` |
| `search` | `string` | No | Free-text search. |

```json
{
  "limit": 0,
  "page": 0,
  "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "sort": {
    "name": 1
  },
  "search": "string"
}
```

**Response**

| Field | Type | Description |
|---|---|---|
| `list` | `object[]` |  |
| `total` | `number` |  |

```json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {
    "list": [
      {}
    ],
    "total": 0
  },
  "time": "2025-05-01T12:00:00Z"
}
```

## POST /reports/pos/summary/credit/paging

Paginated POS credit rows.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/credit/paging' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "limit": 0,
  "page": 0
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/credit/paging', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "limit": 0,
    "page": 0
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/credit/paging",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "limit": 0,
        "page": 0,
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "limit": 0,
  "page": 0
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/credit/paging');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `limit` | `number` | Yes | Maximum number of rows to return. |
| `page` | `number` | Yes | Page number, starting from 1. |
| `supplier_id` | `string` | No |  |
| `customer_id` | `string` | No |  |
| `sort` | `object` | No |  |
| `sort.name` | `integer` | No | One of: `1`, `-1` |
| `search` | `string` | No | Free-text search. |

```json
{
  "limit": 0,
  "page": 0,
  "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "sort": {
    "name": 1
  },
  "search": "string"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

## POST /reports/pos/summary/product/get-summary

Aggregate POS product (finished-goods) summary.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/product/get-summary' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/product/get-summary', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/product/get-summary",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/product/get-summary');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `organization_id` | `string` | Yes | Required by validation, but the report runs for the organization from the `organization_id` header (or the integration settings), not this value. |
| `is_material` | `boolean` | No |  |
| `is_semi_product` | `boolean` | No |  |

```json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "is_material": false,
  "is_semi_product": false
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/get-summary](#post-reports-pos-summary-debt-get-summary).

## POST /reports/pos/summary/material/get-summary

Aggregate POS material (raw-material) summary.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/material/get-summary' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/material/get-summary', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/material/get-summary",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/material/get-summary');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `organization_id` | `string` | Yes | Required by validation, but the report runs for the organization from the `organization_id` header (or the integration settings), not this value. |
| `is_product` | `boolean` | No |  |
| `is_semi_product` | `boolean` | No |  |

```json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "is_product": false,
  "is_semi_product": false
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/get-summary](#post-reports-pos-summary-debt-get-summary).

## POST /reports/pos/summary/semi-product/get-summary

Aggregate POS semi-product (work-in-progress) summary.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/semi-product/get-summary' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/semi-product/get-summary', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/semi-product/get-summary",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/semi-product/get-summary');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `organization_id` | `string` | Yes | Required by validation, but the report runs for the organization from the `organization_id` header (or the integration settings), not this value. |
| `is_product` | `boolean` | No |  |
| `is_material` | `boolean` | No |  |

```json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "is_product": false,
  "is_material": false
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/get-summary](#post-reports-pos-summary-debt-get-summary).

## POST /reports/pos/summary/product/chart-paging

Paginated POS product chart data.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/product/chart-paging' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "limit": 0,
  "page": 0
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/product/chart-paging', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "limit": 0,
    "page": 0
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/product/chart-paging",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "limit": 0,
        "page": 0,
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "limit": 0,
  "page": 0
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/product/chart-paging');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `limit` | `number` | Yes | Maximum number of rows to return. |
| `page` | `number` | Yes | Page number, starting from 1. |
| `warehouse_id` | `string` | No |  |
| `product_id` | `string` | No |  |
| `sort` | `object` | No |  |
| `sort.name` | `integer` | No | One of: `1`, `-1` |
| `is_material` | `boolean` | No |  |
| `is_semi_product` | `boolean` | No |  |
| `search` | `string` | No | Free-text search. |
| `state` | `string` | No | One of: `canceled`, `done` |

```json
{
  "limit": 0,
  "page": 0,
  "warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "sort": {
    "name": 1
  },
  "is_material": false,
  "is_semi_product": false,
  "search": "string",
  "state": "canceled"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

## POST /reports/pos/summary/material/chart-paging

Paginated POS material chart data.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/material/chart-paging' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "limit": 0,
  "page": 0
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/material/chart-paging', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "limit": 0,
    "page": 0
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/material/chart-paging",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "limit": 0,
        "page": 0,
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "limit": 0,
  "page": 0
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/material/chart-paging');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `limit` | `number` | Yes | Maximum number of rows to return. |
| `page` | `number` | Yes | Page number, starting from 1. |
| `warehouse_id` | `string` | No |  |
| `product_id` | `string` | No |  |
| `sort` | `object` | No |  |
| `sort.name` | `integer` | No | One of: `1`, `-1` |
| `is_product` | `boolean` | No |  |
| `is_semi_product` | `boolean` | No |  |
| `search` | `string` | No | Free-text search. |
| `state` | `string` | No | One of: `canceled`, `done` |

```json
{
  "limit": 0,
  "page": 0,
  "warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "sort": {
    "name": 1
  },
  "is_product": false,
  "is_semi_product": false,
  "search": "string",
  "state": "canceled"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

## POST /reports/pos/summary/semi-product/chart-paging

Paginated POS semi-product chart data.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/semi-product/chart-paging' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "limit": 0,
  "page": 0
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/semi-product/chart-paging', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "limit": 0,
    "page": 0
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/semi-product/chart-paging",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "limit": 0,
        "page": 0,
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "limit": 0,
  "page": 0
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/semi-product/chart-paging');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `limit` | `number` | Yes | Maximum number of rows to return. |
| `page` | `number` | Yes | Page number, starting from 1. |
| `warehouse_id` | `string` | No |  |
| `product_id` | `string` | No |  |
| `sort` | `object` | No |  |
| `sort.name` | `integer` | No | One of: `1`, `-1` |
| `is_product` | `boolean` | No |  |
| `is_material` | `boolean` | No |  |
| `search` | `string` | No | Free-text search. |
| `state` | `string` | No | One of: `canceled`, `done` |

```json
{
  "limit": 0,
  "page": 0,
  "warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "sort": {
    "name": 1
  },
  "is_product": false,
  "is_material": false,
  "search": "string",
  "state": "canceled"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

## POST /reports/pos/summary/goods/by-price/total

Total goods valuation grouped by price.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/goods/by-price/total' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "price_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/goods/by-price/total', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "price_id": "64b7f4d9e2b3b6a0b7c5d7ff"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/goods/by-price/total",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "price_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "price_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/goods/by-price/total');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `organization_id` | `string` | Yes | Required by validation, but the report runs for the organization from the `organization_id` header (or the integration settings), not this value. |
| `price_id` | `string` | Yes |  |
| `is_product` | `boolean` | No |  |
| `is_material` | `boolean` | No |  |
| `is_semi_product` | `boolean` | No |  |

```json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "price_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "is_product": false,
  "is_material": false,
  "is_semi_product": false
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/get-summary](#post-reports-pos-summary-debt-get-summary).

## POST /reports/pos/summary/goods/by-price/paging

Paginated goods rows grouped by price.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/goods/by-price/paging' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "limit": 0,
  "page": 0
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/goods/by-price/paging', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "limit": 0,
    "page": 0
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/goods/by-price/paging",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "limit": 0,
        "page": 0,
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "limit": 0,
  "page": 0
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/summary/goods/by-price/paging');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `limit` | `number` | Yes | Maximum number of rows to return. |
| `page` | `number` | Yes | Page number, starting from 1. |
| `price_id` | `string` | No |  |
| `product_id` | `string` | No |  |
| `is_product` | `boolean` | No |  |
| `is_material` | `boolean` | No |  |
| `is_semi_product` | `boolean` | No |  |
| `search` | `string` | No | Free-text search. |

```json
{
  "limit": 0,
  "page": 0,
  "price_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "is_product": false,
  "is_material": false,
  "is_semi_product": false,
  "search": "string"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

## POST /reports/pos/sales/by-payment-method-paging

POS sales aggregated by payment method.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/sales/by-payment-method-paging' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "organizations": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "employees": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "mediator_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "divider": "hour",
  "field": "gross_sales",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "report_by": "created_by",
  "type": "product"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/sales/by-payment-method-paging', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "sale_type": "receipt",
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "organizations": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "employees": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "responsible_ids": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "mediator_ids": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "divider": "hour",
    "field": "gross_sales",
    "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "product_ids": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "report_by": "created_by",
    "type": "product"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/sales/by-payment-method-paging",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "sale_type": "receipt",
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "organizations": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "employees": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "responsible_ids": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "mediator_ids": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "divider": "hour",
        "field": "gross_sales",
        "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "product_ids": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "report_by": "created_by",
        "type": "product",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "organizations": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "employees": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "mediator_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "divider": "hour",
  "field": "gross_sales",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "report_by": "created_by",
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/sales/by-payment-method-paging');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `sale_type` | `string` | No | One of: `receipt`, `sale_contract`, `trade` |
| `from_date` | `string (date-time)` | No | Start of the reporting window. |
| `to_date` | `string (date-time)` | No | End of the reporting window. |
| `organizations` | `string[]` | No |  |
| `employees` | `string[]` | No |  |
| `responsible_ids` | `string[]` | No |  |
| `mediator_ids` | `string[]` | No |  |
| `divider` | `string` | No | Time bucket of the chart series.. One of: `hour`, `day`, `week`, `month`, `quarter`, `year`. Default: `"day"` |
| `field` | `string` | No | Metric the chart plots.. One of: `gross_sales`, `refund`, `discount`, `gift`, `net_sales`, `profit`. Default: `"gross_sales"` |
| `category_id` | `string` | No |  |
| `customer_category_id` | `string` | No |  |
| `supplier_id` | `string` | No |  |
| `supplier_category_id` | `string` | No |  |
| `product_id` | `string` | No |  |
| `product_ids` | `string[]` | No |  |
| `contract_id` | `string` | No |  |
| `report_by` | `string` | No | One of: `created_by`, `responsible` |
| `type` | `string` | No | One of: `product`, `customer`, `employee`, `payment`, `category` |

```json
{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "organizations": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "employees": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "mediator_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "divider": "hour",
  "field": "gross_sales",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "report_by": "created_by",
  "type": "product"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

## POST /reports/pos/cashbox/income-expense

Cashbox income vs expense rollup for the POS.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/cashbox/income-expense' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/cashbox/income-expense', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "field": "gross_sales",
    "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "type": "product"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/cashbox/income-expense",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "field": "gross_sales",
        "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "type": "product",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/cashbox/income-expense');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `from_date` | `string (date-time)` | No | Start of the reporting window. |
| `to_date` | `string (date-time)` | No | End of the reporting window. |
| `field` | `string` | No | Metric the chart plots.. One of: `gross_sales`, `refund`, `discount`, `gift`, `net_sales`, `profit`. Default: `"gross_sales"` |
| `cashbox_id` | `string` | No | Cashbox ObjectId. |
| `type` | `string` | No | One of: `product`, `customer`, `employee`, `payment`, `category` |

```json
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/get-summary](#post-reports-pos-summary-debt-get-summary).

## POST /reports/pos/sale/summary

POS sale summary (aggregate KPIs).

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/sale/summary' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/sale/summary', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "field": "gross_sales",
    "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "type": "product"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/sale/summary",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "field": "gross_sales",
        "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "type": "product",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/sale/summary');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `from_date` | `string (date-time)` | No | Start of the reporting window. |
| `to_date` | `string (date-time)` | No | End of the reporting window. |
| `field` | `string` | No | Metric the chart plots.. One of: `gross_sales`, `refund`, `discount`, `gift`, `net_sales`, `profit`. Default: `"gross_sales"` |
| `product_id` | `string` | No |  |
| `type` | `string` | No | One of: `product`, `customer`, `employee`, `payment`, `category` |

```json
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/get-summary](#post-reports-pos-summary-debt-get-summary).

## POST /reports/pos/sale/summary/chart

POS sale summary chart time series.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/sale/summary/chart' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "type": "product"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/sale/summary/chart', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "sale_type": "receipt",
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "field": "gross_sales",
    "type": "product"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/sale/summary/chart",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "sale_type": "receipt",
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "field": "gross_sales",
        "type": "product",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/sale/summary/chart');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `sale_type` | `string` | No | One of: `receipt`, `sale_contract`, `trade` |
| `from_date` | `string (date-time)` | No | Start of the reporting window. |
| `to_date` | `string (date-time)` | No | End of the reporting window. |
| `field` | `string` | No | Metric the chart plots.. One of: `gross_sales`, `refund`, `discount`, `gift`, `net_sales`, `profit`. Default: `"gross_sales"` |
| `type` | `string` | No | One of: `product`, `customer`, `employee`, `payment`, `category` |

```json
{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "type": "product"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/chart](#post-reports-pos-summary-chart).

## POST /reports/pos/product/top

Top-N best-selling products in the POS.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/product/top' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "limit": 0,
  "sort_by": "string",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/product/top', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "field": "gross_sales",
    "limit": 0,
    "sort_by": "string",
    "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "type": "product"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/product/top",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "field": "gross_sales",
        "limit": 0,
        "sort_by": "string",
        "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "type": "product",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "limit": 0,
  "sort_by": "string",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/product/top');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `from_date` | `string (date-time)` | No | Start of the reporting window. |
| `to_date` | `string (date-time)` | No | End of the reporting window. |
| `field` | `string` | No | Metric the chart plots.. One of: `gross_sales`, `refund`, `discount`, `gift`, `net_sales`, `profit`. Default: `"gross_sales"` |
| `limit` | `number` | No | Maximum number of rows to return. |
| `sort_by` | `string` | No | Field name to sort by. |
| `product_id` | `string` | No |  |
| `type` | `string` | No | One of: `product`, `customer`, `employee`, `payment`, `category` |

```json
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "limit": 0,
  "sort_by": "string",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

## POST /reports/pos/employee/top

Top-N best-performing employees in the POS.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/employee/top' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "limit": 0,
  "sort_by": "string",
  "report_by": "created_by",
  "type": "product"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/employee/top', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "field": "gross_sales",
    "limit": 0,
    "sort_by": "string",
    "report_by": "created_by",
    "type": "product"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/employee/top",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "field": "gross_sales",
        "limit": 0,
        "sort_by": "string",
        "report_by": "created_by",
        "type": "product",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "limit": 0,
  "sort_by": "string",
  "report_by": "created_by",
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/employee/top');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `from_date` | `string (date-time)` | No | Start of the reporting window. |
| `to_date` | `string (date-time)` | No | End of the reporting window. |
| `field` | `string` | No | Metric the chart plots.. One of: `gross_sales`, `refund`, `discount`, `gift`, `net_sales`, `profit`. Default: `"gross_sales"` |
| `limit` | `number` | No | Maximum number of rows to return. |
| `sort_by` | `string` | No | Field name to sort by. |
| `report_by` | `string` | No | One of: `created_by`, `responsible` |
| `type` | `string` | No | One of: `product`, `customer`, `employee`, `payment`, `category` |

```json
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "limit": 0,
  "sort_by": "string",
  "report_by": "created_by",
  "type": "product"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

## POST /reports/pos/product/stock/summary

Product stock summary across the POS. Takes no request body; anything sent is ignored.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/product/stock/summary' \
  -H "api-key: $BITO_API_KEY"
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/product/stock/summary', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/product/stock/summary",
    headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())
```

```php [PHP]
<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/product/stock/summary');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

No request body.

**Response**

Same response shape as [POST /reports/pos/summary/debt/get-summary](#post-reports-pos-summary-debt-get-summary).

## POST /reports/pos/production/by-product/produced

Manufacturing 'produced' totals grouped by product.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/production/by-product/produced' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "limit": 0,
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "sort_by": "string",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "asc": 1,
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "is_product": false,
  "is_material": false,
  "is_semi_product": false,
  "type": "product"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/production/by-product/produced', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "field": "gross_sales",
    "limit": 0,
    "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "sort_by": "string",
    "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "asc": 1,
    "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "product_ids": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "is_product": false,
    "is_material": false,
    "is_semi_product": false,
    "type": "product"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/production/by-product/produced",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "field": "gross_sales",
        "limit": 0,
        "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "sort_by": "string",
        "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "asc": 1,
        "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "product_ids": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "is_product": False,
        "is_material": False,
        "is_semi_product": False,
        "type": "product",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "limit": 0,
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "sort_by": "string",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "asc": 1,
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "is_product": false,
  "is_material": false,
  "is_semi_product": false,
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/production/by-product/produced');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `from_date` | `string (date-time)` | No | Start of the reporting window. |
| `to_date` | `string (date-time)` | No | End of the reporting window. |
| `field` | `string` | No | Metric the chart plots.. One of: `gross_sales`, `refund`, `discount`, `gift`, `net_sales`, `profit`. Default: `"gross_sales"` |
| `limit` | `number` | No | Maximum number of rows to return. |
| `organization_id` | `string` | No | Organization ObjectId. |
| `sort_by` | `string` | No | Field name to sort by. |
| `category_id` | `string` | No |  |
| `asc` | `integer` | No | Sort direction: `1` ascending, `-1` descending.. One of: `1`, `-1`. Default: `-1` |
| `product_id` | `string` | No |  |
| `product_ids` | `string[]` | No |  |
| `is_product` | `boolean` | No |  |
| `is_material` | `boolean` | No |  |
| `is_semi_product` | `boolean` | No |  |
| `type` | `string` | No | One of: `product`, `customer`, `employee`, `payment`, `category` |

```json
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "limit": 0,
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "sort_by": "string",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "asc": 1,
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "is_product": false,
  "is_material": false,
  "is_semi_product": false,
  "type": "product"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

## POST /reports/pos/production/by-product/used

Manufacturing 'used' totals grouped by product (raw materials).

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/production/by-product/used' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "limit": 0,
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "sort_by": "string",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "asc": 1,
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "is_product": false,
  "is_material": false,
  "is_semi_product": false,
  "type": "product"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/production/by-product/used', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "field": "gross_sales",
    "limit": 0,
    "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "sort_by": "string",
    "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "asc": 1,
    "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "product_ids": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "is_product": false,
    "is_material": false,
    "is_semi_product": false,
    "type": "product"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/production/by-product/used",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "field": "gross_sales",
        "limit": 0,
        "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "sort_by": "string",
        "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "asc": 1,
        "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "product_ids": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "is_product": False,
        "is_material": False,
        "is_semi_product": False,
        "type": "product",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "limit": 0,
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "sort_by": "string",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "asc": 1,
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "is_product": false,
  "is_material": false,
  "is_semi_product": false,
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/production/by-product/used');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `from_date` | `string (date-time)` | No | Start of the reporting window. |
| `to_date` | `string (date-time)` | No | End of the reporting window. |
| `field` | `string` | No | Metric the chart plots.. One of: `gross_sales`, `refund`, `discount`, `gift`, `net_sales`, `profit`. Default: `"gross_sales"` |
| `limit` | `number` | No | Maximum number of rows to return. |
| `organization_id` | `string` | No | Organization ObjectId. |
| `sort_by` | `string` | No | Field name to sort by. |
| `category_id` | `string` | No |  |
| `asc` | `integer` | No | Sort direction: `1` ascending, `-1` descending.. One of: `1`, `-1`. Default: `-1` |
| `product_id` | `string` | No |  |
| `product_ids` | `string[]` | No |  |
| `is_product` | `boolean` | No |  |
| `is_material` | `boolean` | No |  |
| `is_semi_product` | `boolean` | No |  |
| `type` | `string` | No | One of: `product`, `customer`, `employee`, `payment`, `category` |

```json
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "limit": 0,
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "sort_by": "string",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "asc": 1,
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "is_product": false,
  "is_material": false,
  "is_semi_product": false,
  "type": "product"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

## POST /reports/pos/cashflow/get

Cashflow report scoped to the POS.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/cashflow/get' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/cashflow/get', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "date_from": "2025-05-01T12:00:00Z",
    "date_to": "2025-05-01T12:00:00Z"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/cashflow/get",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "date_from": "2025-05-01T12:00:00Z",
        "date_to": "2025-05-01T12:00:00Z",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/cashflow/get');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `cashbox_id` | `string` | No | Cashbox ObjectId. |
| `date_from` | `string (date-time)` | Yes | Start of the date range. |
| `date_to` | `string (date-time)` | Yes | End of the date range. |
| `groups` | `string[]` | No |  |
| `tree` | `boolean` | No | Default: `false` |

```json
{
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "groups": [
    "cashbox"
  ],
  "tree": false
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/get-summary](#post-reports-pos-summary-debt-get-summary).

## POST /reports/pos/finance/installment/get-summary

Installment summary for POS-issued sales.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/finance/installment/get-summary' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "paid_states": [
    "fully_paid"
  ],
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "sale_type": "debt",
  "is_initial_payment": false,
  "is_installment_plan": true
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/finance/installment/get-summary', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "organization_ids": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "paid_states": [
      "fully_paid"
    ],
    "date_from": "2025-05-01T12:00:00Z",
    "date_to": "2025-05-01T12:00:00Z",
    "sale_type": "debt",
    "is_initial_payment": false,
    "is_installment_plan": true
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/finance/installment/get-summary",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "organization_ids": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "paid_states": [
            "fully_paid",
        ],
        "date_from": "2025-05-01T12:00:00Z",
        "date_to": "2025-05-01T12:00:00Z",
        "sale_type": "debt",
        "is_initial_payment": False,
        "is_installment_plan": True,
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "paid_states": [
    "fully_paid"
  ],
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "sale_type": "debt",
  "is_initial_payment": false,
  "is_installment_plan": true
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/finance/installment/get-summary');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `organization_ids` | `string[]` | No | Organization ObjectIds. |
| `responsible_id` | `string` | No |  |
| `customer_id` | `string` | No |  |
| `customer_category_id` | `string` | No |  |
| `paid_states` | `string[]` | No |  |
| `date_from` | `string (date-time)` | No | Start of the date range. |
| `date_to` | `string (date-time)` | No | End of the date range. |
| `sale_type` | `string` | No | One of: `debt`, `cash` |
| `is_initial_payment` | `boolean` | No |  |
| `is_installment_plan` | `boolean` | No | Default: `true` |

```json
{
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "paid_states": [
    "fully_paid"
  ],
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "sale_type": "debt",
  "is_initial_payment": false,
  "is_installment_plan": true
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/get-summary](#post-reports-pos-summary-debt-get-summary).

## POST /reports/pos/finance/installment/get-paging

Paginated installment rows for POS-issued sales.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/finance/installment/get-paging' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "page": 0,
  "limit": 0
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/finance/installment/get-paging', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "page": 0,
    "limit": 0
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/finance/installment/get-paging",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "page": 0,
        "limit": 0,
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "page": 0,
  "limit": 0
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/finance/installment/get-paging');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `organization_ids` | `string[]` | No | Organization ObjectIds. |
| `responsible_id` | `string` | No |  |
| `customer_id` | `string` | No |  |
| `customer_category_id` | `string` | No |  |
| `paid_states` | `string[]` | No |  |
| `date_from` | `string (date-time)` | No | Start of the date range. |
| `date_to` | `string (date-time)` | No | End of the date range. |
| `payment_status` | `string` | No | One of: `late`, `incoming`, `completed`, `payments` |
| `sale_type` | `string` | No | One of: `debt`, `cash` |
| `is_initial_payment` | `boolean` | No |  |
| `is_installment_plan` | `boolean` | No | Default: `true` |
| `page` | `number` | Yes | Page number, starting from 1. |
| `limit` | `number` | Yes | Maximum number of rows to return. |
| `search` | `string` | No | Free-text search. |

```json
{
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "paid_states": [
    "fully_paid"
  ],
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "payment_status": "late",
  "sale_type": "debt",
  "is_initial_payment": false,
  "is_installment_plan": true,
  "page": 0,
  "limit": 0,
  "search": "string"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

## POST /reports/pos/finance/installment/completed

Installments completed in the reporting window (POS).

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/finance/installment/completed' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "page": 0,
  "limit": 0
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/finance/installment/completed', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "page": 0,
    "limit": 0
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/finance/installment/completed",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "page": 0,
        "limit": 0,
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "page": 0,
  "limit": 0
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/finance/installment/completed');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `organization_ids` | `string[]` | No | Organization ObjectIds. |
| `responsible_id` | `string` | No |  |
| `customer_id` | `string` | No |  |
| `customer_category_id` | `string` | No |  |
| `date_from` | `string (date-time)` | No | Start of the date range. |
| `date_to` | `string (date-time)` | No | End of the date range. |
| `sale_type` | `string` | No | One of: `debt`, `cash` |
| `is_initial_payment` | `boolean` | No |  |
| `is_installment_plan` | `boolean` | No | Default: `true` |
| `page` | `number` | Yes | Page number, starting from 1. |
| `limit` | `number` | Yes | Maximum number of rows to return. |
| `search` | `string` | No | Free-text search. |

```json
{
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "sale_type": "debt",
  "is_initial_payment": false,
  "is_installment_plan": true,
  "page": 0,
  "limit": 0,
  "search": "string"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

## POST /reports/pos/dashboard/top/{key}

Top-N for the POS dashboard, by the given key.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/dashboard/top/product' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "organizations": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "employees": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "mediator_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "field": "gross_sales",
  "limit": 0,
  "sort_by": "string",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "report_by": "created_by",
  "type": "product"
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/dashboard/top/product', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "sale_type": "receipt",
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "organizations": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "employees": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "responsible_ids": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "mediator_ids": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "field": "gross_sales",
    "limit": 0,
    "sort_by": "string",
    "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "product_ids": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "report_by": "created_by",
    "type": "product"
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/dashboard/top/product",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "sale_type": "receipt",
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "organizations": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "employees": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "responsible_ids": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "mediator_ids": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "field": "gross_sales",
        "limit": 0,
        "sort_by": "string",
        "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "product_ids": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "report_by": "created_by",
        "type": "product",
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "organizations": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "employees": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "mediator_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "field": "gross_sales",
  "limit": 0,
  "sort_by": "string",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "report_by": "created_by",
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/dashboard/top/product');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Path parameters**

| Parameter | Type | Required | Description |
|---|---|---|---|
| `key` | `string` | Yes |  |

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `sale_type` | `string` | No | One of: `receipt`, `sale_contract`, `trade` |
| `from_date` | `string (date-time)` | No | Start of the reporting window. |
| `to_date` | `string (date-time)` | No | End of the reporting window. |
| `organizations` | `string[]` | No |  |
| `employees` | `string[]` | No |  |
| `responsible_ids` | `string[]` | No |  |
| `mediator_ids` | `string[]` | No |  |
| `field` | `string` | No | Metric the chart plots.. One of: `gross_sales`, `refund`, `discount`, `gift`, `net_sales`, `profit`. Default: `"gross_sales"` |
| `limit` | `number` | No | Maximum number of rows to return. |
| `sort_by` | `string` | No | Field name to sort by. |
| `category_id` | `string` | No |  |
| `customer_category_id` | `string` | No |  |
| `supplier_id` | `string` | No |  |
| `supplier_category_id` | `string` | No |  |
| `product_id` | `string` | No |  |
| `product_ids` | `string[]` | No |  |
| `contract_id` | `string` | No |  |
| `report_by` | `string` | No | One of: `created_by`, `responsible` |
| `type` | `string` | No | One of: `product`, `customer`, `employee`, `payment`, `category` |

```json
{
  "sale_type": "receipt",
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "organizations": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "employees": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "mediator_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "field": "gross_sales",
  "limit": 0,
  "sort_by": "string",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "report_by": "created_by",
  "type": "product"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

## POST /reports/pos/trade/by-product/pagin

POS trade rollup grouped by product.

**Required permission:** none — closed to an app that declares permissions · [how permissions work](https://docs.bito.uz/en/api/permissions.md)

**Example request**

::: code-group

```bash [curl]
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/trade/by-product/pagin' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "limit": 0,
  "page": 0
}'
```

```js [JavaScript]
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/trade/by-product/pagin', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "limit": 0,
    "page": 0
  }),
})
const { code, data } = await res.json()
```

```python [Python]
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/pos/trade/by-product/pagin",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "limit": 0,
        "page": 0,
    },
)
print(res.json())
```

```php [PHP]
<?php
$body = <<<'JSON'
{
  "limit": 0,
  "page": 0
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/pos/trade/by-product/pagin');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'POST',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
    CURLOPT_POSTFIELDS => $body,
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);
```

:::

**Request body**

| Field | Type | Required | Description |
|---|---|---|---|
| `limit` | `number` | Yes | Maximum number of rows to return. |
| `page` | `number` | Yes | Page number, starting from 1. |
| `warehouse_id` | `string` | No |  |
| `category_id` | `string` | No |  |
| `product_id` | `string` | No |  |
| `customer_id` | `string` | No |  |
| `date_from` | `string (date-time)` | No | Start of the date range. |
| `date_to` | `string (date-time)` | No | End of the date range. |
| `sort` | `object` | No |  |
| `sort.name` | `integer` | No | One of: `1`, `-1` |
| `trade_state` | `string` | No | One of: `new`, `in_progress`, `canceled`, `done` |
| `trade_states` | `string[]` | No |  |
| `state` | `string` | No | One of: `canceled`, `done` |

```json
{
  "limit": 0,
  "page": 0,
  "warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "sort": {
    "name": 1
  },
  "trade_state": "new",
  "trade_states": [
    "new"
  ],
  "state": "canceled"
}
```

**Response**

Same response shape as [POST /reports/pos/summary/debt/paging](#post-reports-pos-summary-debt-paging).

---

*This page is generated from the OpenAPI spec.*
