Skip to content
View as Markdown

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

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
sale_typestringNoOne of: receipt, sale_contract, trade
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
fieldstringNoMetric the chart plots.. One of: gross_sales, refund, discount, gift, net_sales, profit. Default: "gross_sales"
supplier_idstringNo
cashbox_idstringNoCashbox ObjectId.
product_idstringNo
searchstringNoFree-text search.
typestringNoOne 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

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
sale_typestringNoOne of: receipt, sale_contract, trade
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
fieldstringNoMetric the chart plots.. One of: gross_sales, refund, discount, gift, net_sales, profit. Default: "gross_sales"
typestringNoOne 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/income/chart ​

POS income chart over the reporting window.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
cashbox_idstringNoCashbox ObjectId.
payment_type_idstringNo
typestringNoOne 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/expense/chart ​

POS expense chart over the reporting window.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
cashbox_idstringNoCashbox ObjectId.
payment_type_idstringNo
typestringNoOne 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/debt/get-summary ​

Aggregate POS-issued customer debt.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
organization_idstringYesRequired 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

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
organization_idstringYesRequired 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/paging ​

Paginated POS debt rows.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
limitnumberYesMaximum number of rows to return.
pagenumberYesPage number, starting from 1.
supplier_idstringNo
customer_idstringNo
sortobjectNo
sort.nameintegerNoOne of: 1, -1
searchstringNoFree-text search.
json
{
  "limit": 0,
  "page": 0,
  "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "sort": {
    "name": 1
  },
  "search": "string"
}

Response

FieldTypeDescription
listobject[]
totalnumber
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

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
limitnumberYesMaximum number of rows to return.
pagenumberYesPage number, starting from 1.
supplier_idstringNo
customer_idstringNo
sortobjectNo
sort.nameintegerNoOne of: 1, -1
searchstringNoFree-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/product/get-summary ​

Aggregate POS product (finished-goods) summary.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
organization_idstringYesRequired by validation, but the report runs for the organization from the organization_id header (or the integration settings), not this value.
is_materialbooleanNo
is_semi_productbooleanNo
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/material/get-summary ​

Aggregate POS material (raw-material) summary.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
organization_idstringYesRequired by validation, but the report runs for the organization from the organization_id header (or the integration settings), not this value.
is_productbooleanNo
is_semi_productbooleanNo
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/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

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
organization_idstringYesRequired by validation, but the report runs for the organization from the organization_id header (or the integration settings), not this value.
is_productbooleanNo
is_materialbooleanNo
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/product/chart-paging ​

Paginated POS product chart data.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
limitnumberYesMaximum number of rows to return.
pagenumberYesPage number, starting from 1.
warehouse_idstringNo
product_idstringNo
sortobjectNo
sort.nameintegerNoOne of: 1, -1
is_materialbooleanNo
is_semi_productbooleanNo
searchstringNoFree-text search.
statestringNoOne 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/material/chart-paging ​

Paginated POS material chart data.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
limitnumberYesMaximum number of rows to return.
pagenumberYesPage number, starting from 1.
warehouse_idstringNo
product_idstringNo
sortobjectNo
sort.nameintegerNoOne of: 1, -1
is_productbooleanNo
is_semi_productbooleanNo
searchstringNoFree-text search.
statestringNoOne 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/semi-product/chart-paging ​

Paginated POS semi-product chart data.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
limitnumberYesMaximum number of rows to return.
pagenumberYesPage number, starting from 1.
warehouse_idstringNo
product_idstringNo
sortobjectNo
sort.nameintegerNoOne of: 1, -1
is_productbooleanNo
is_materialbooleanNo
searchstringNoFree-text search.
statestringNoOne 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/goods/by-price/total ​

Total goods valuation grouped by price.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
organization_idstringYesRequired by validation, but the report runs for the organization from the organization_id header (or the integration settings), not this value.
price_idstringYes
is_productbooleanNo
is_materialbooleanNo
is_semi_productbooleanNo
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/goods/by-price/paging ​

Paginated goods rows grouped by price.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
limitnumberYesMaximum number of rows to return.
pagenumberYesPage number, starting from 1.
price_idstringNo
product_idstringNo
is_productbooleanNo
is_materialbooleanNo
is_semi_productbooleanNo
searchstringNoFree-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/sales/by-payment-method-paging ​

POS sales aggregated by payment method.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
sale_typestringNoOne of: receipt, sale_contract, trade
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
organizationsstring[]No
employeesstring[]No
responsible_idsstring[]No
mediator_idsstring[]No
dividerstringNoTime bucket of the chart series.. One of: hour, day, week, month, quarter, year. Default: "day"
fieldstringNoMetric the chart plots.. One of: gross_sales, refund, discount, gift, net_sales, profit. Default: "gross_sales"
category_idstringNo
customer_category_idstringNo
supplier_idstringNo
supplier_category_idstringNo
product_idstringNo
product_idsstring[]No
contract_idstringNo
report_bystringNoOne of: created_by, responsible
typestringNoOne 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/cashbox/income-expense ​

Cashbox income vs expense rollup for the POS.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
fieldstringNoMetric the chart plots.. One of: gross_sales, refund, discount, gift, net_sales, profit. Default: "gross_sales"
cashbox_idstringNoCashbox ObjectId.
typestringNoOne 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/sale/summary ​

POS sale summary (aggregate KPIs).

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
fieldstringNoMetric the chart plots.. One of: gross_sales, refund, discount, gift, net_sales, profit. Default: "gross_sales"
product_idstringNo
typestringNoOne 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/sale/summary/chart ​

POS sale summary chart time series.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
sale_typestringNoOne of: receipt, sale_contract, trade
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
fieldstringNoMetric the chart plots.. One of: gross_sales, refund, discount, gift, net_sales, profit. Default: "gross_sales"
typestringNoOne 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/product/top ​

Top-N best-selling products in the POS.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
fieldstringNoMetric the chart plots.. One of: gross_sales, refund, discount, gift, net_sales, profit. Default: "gross_sales"
limitnumberNoMaximum number of rows to return.
sort_bystringNoField name to sort by.
product_idstringNo
typestringNoOne 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/employee/top ​

Top-N best-performing employees in the POS.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
fieldstringNoMetric the chart plots.. One of: gross_sales, refund, discount, gift, net_sales, profit. Default: "gross_sales"
limitnumberNoMaximum number of rows to return.
sort_bystringNoField name to sort by.
report_bystringNoOne of: created_by, responsible
typestringNoOne 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/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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/pos/product/stock/summary' \
  -H "api-key: $BITO_API_KEY"
js
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
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
$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/production/by-product/produced ​

Manufacturing 'produced' totals grouped by product.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
fieldstringNoMetric the chart plots.. One of: gross_sales, refund, discount, gift, net_sales, profit. Default: "gross_sales"
limitnumberNoMaximum number of rows to return.
organization_idstringNoOrganization ObjectId.
sort_bystringNoField name to sort by.
category_idstringNo
ascintegerNoSort direction: 1 ascending, -1 descending.. One of: 1, -1. Default: -1
product_idstringNo
product_idsstring[]No
is_productbooleanNo
is_materialbooleanNo
is_semi_productbooleanNo
typestringNoOne 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/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

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
fieldstringNoMetric the chart plots.. One of: gross_sales, refund, discount, gift, net_sales, profit. Default: "gross_sales"
limitnumberNoMaximum number of rows to return.
organization_idstringNoOrganization ObjectId.
sort_bystringNoField name to sort by.
category_idstringNo
ascintegerNoSort direction: 1 ascending, -1 descending.. One of: 1, -1. Default: -1
product_idstringNo
product_idsstring[]No
is_productbooleanNo
is_materialbooleanNo
is_semi_productbooleanNo
typestringNoOne 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/cashflow/get ​

Cashflow report scoped to the POS.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
cashbox_idstringNoCashbox ObjectId.
date_fromstring (date-time)YesStart of the date range.
date_tostring (date-time)YesEnd of the date range.
groupsstring[]No
treebooleanNoDefault: 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/finance/installment/get-summary ​

Installment summary for POS-issued sales.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
organization_idsstring[]NoOrganization ObjectIds.
responsible_idstringNo
customer_idstringNo
customer_category_idstringNo
paid_statesstring[]No
date_fromstring (date-time)NoStart of the date range.
date_tostring (date-time)NoEnd of the date range.
sale_typestringNoOne of: debt, cash
is_initial_paymentbooleanNo
is_installment_planbooleanNoDefault: 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/finance/installment/get-paging ​

Paginated installment rows for POS-issued sales.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
organization_idsstring[]NoOrganization ObjectIds.
responsible_idstringNo
customer_idstringNo
customer_category_idstringNo
paid_statesstring[]No
date_fromstring (date-time)NoStart of the date range.
date_tostring (date-time)NoEnd of the date range.
payment_statusstringNoOne of: late, incoming, completed, payments
sale_typestringNoOne of: debt, cash
is_initial_paymentbooleanNo
is_installment_planbooleanNoDefault: true
pagenumberYesPage number, starting from 1.
limitnumberYesMaximum number of rows to return.
searchstringNoFree-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/finance/installment/completed ​

Installments completed in the reporting window (POS).

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
organization_idsstring[]NoOrganization ObjectIds.
responsible_idstringNo
customer_idstringNo
customer_category_idstringNo
date_fromstring (date-time)NoStart of the date range.
date_tostring (date-time)NoEnd of the date range.
sale_typestringNoOne of: debt, cash
is_initial_paymentbooleanNo
is_installment_planbooleanNoDefault: true
pagenumberYesPage number, starting from 1.
limitnumberYesMaximum number of rows to return.
searchstringNoFree-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/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

Example request

bash
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
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
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
$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

ParameterTypeRequiredDescription
keystringYes

Request body

FieldTypeRequiredDescription
sale_typestringNoOne of: receipt, sale_contract, trade
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
organizationsstring[]No
employeesstring[]No
responsible_idsstring[]No
mediator_idsstring[]No
fieldstringNoMetric the chart plots.. One of: gross_sales, refund, discount, gift, net_sales, profit. Default: "gross_sales"
limitnumberNoMaximum number of rows to return.
sort_bystringNoField name to sort by.
category_idstringNo
customer_category_idstringNo
supplier_idstringNo
supplier_category_idstringNo
product_idstringNo
product_idsstring[]No
contract_idstringNo
report_bystringNoOne of: created_by, responsible
typestringNoOne 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/trade/by-product/pagin ​

POS trade rollup grouped by product.

Required permission: none — closed to an app that declares permissions · how permissions work

Example request

bash
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
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
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
$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

FieldTypeRequiredDescription
limitnumberYesMaximum number of rows to return.
pagenumberYesPage number, starting from 1.
warehouse_idstringNo
category_idstringNo
product_idstringNo
customer_idstringNo
date_fromstring (date-time)NoStart of the date range.
date_tostring (date-time)NoEnd of the date range.
sortobjectNo
sort.nameintegerNoOne of: 1, -1
trade_statestringNoOne of: new, in_progress, canceled, done
trade_statesstring[]No
statestringNoOne 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.


This page is generated from the OpenAPI spec.

Bito 2.0 Integration API