Report dashboard
INFO
Каждый ответ приходит в общем конверте — code, message, messages, status_code, time — а полезная нагрузка лежит в data. Таблицы ниже описывают содержимое data.
POST /reports/summary/debt/paging
Paginated debt rows for the dashboard summary card.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/debt/paging' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0,
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/debt/paging",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0,
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
limit | number | Да | Maximum number of rows to return. |
page | number | Да | Page number, starting from 1. |
organization_id | string | Нет | Organization ObjectId. |
supplier_id | string | Нет | |
customer_id | string | Нет | |
sort | object | Нет | |
sort.name | integer | Нет | Допустимые значения: 1, -1 |
search | string | Нет | Free-text search. |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"search": "string"
}Ответ
| Поле | Тип | Описание |
|---|---|---|
list | object[] | |
total | number |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"list": [
{}
],
"total": 0
},
"time": "2025-05-01T12:00:00Z"
}POST /reports/summary/credit/paging
Paginated credit rows for the dashboard summary card.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/credit/paging' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0,
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/credit/paging",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0,
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
limit | number | Да | Maximum number of rows to return. |
page | number | Да | Page number, starting from 1. |
organization_id | string | Нет | Organization ObjectId. |
supplier_id | string | Нет | |
customer_id | string | Нет | |
sort | object | Нет | |
sort.name | integer | Нет | Допустимые значения: 1, -1 |
search | string | Нет | Free-text search. |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"search": "string"
}Ответ
Структура ответа совпадает с POST /reports/summary/debt/paging.
POST /reports/customers/health-score/charts
Customer health-score time series for charts.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/charts' \
-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",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/charts', {
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",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/charts",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/charts');
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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
from_date | string (date-time) | Нет | Start of the reporting window. |
to_date | string (date-time) | Нет | End of the reporting window. |
divider | string | Нет | Time bucket of the chart series.. Допустимые значения: hour, day, week, month, quarter, year. По умолчанию: "day" |
field | string | Нет | Metric the chart plots.. Допустимые значения: gross_sales, refund, discount, gift, net_sales, profit. По умолчанию: "gross_sales" |
organization_id | string | Нет | Organization ObjectId. |
category_id | string | Нет | |
product_id | string | Нет | |
type | string | Нет | Допустимые значения: product, customer, employee, payment, category |
{
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}Ответ
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": [
{
"label": "string",
"value": 0
}
],
"time": "2025-05-01T12:00:00Z"
}POST /reports/customers/health-score/summary
Aggregate customer health-score summary (good / warning / churn-risk counts).
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/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",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/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",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/summary",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
from_date | string (date-time) | Нет | Start of the reporting window. |
to_date | string (date-time) | Нет | End of the reporting window. |
divider | string | Нет | Time bucket of the chart series.. Допустимые значения: hour, day, week, month, quarter, year. По умолчанию: "day" |
field | string | Нет | Metric the chart plots.. Допустимые значения: gross_sales, refund, discount, gift, net_sales, profit. По умолчанию: "gross_sales" |
organization_id | string | Нет | Organization ObjectId. |
category_id | string | Нет | |
product_id | string | Нет | |
type | string | Нет | Допустимые значения: product, customer, employee, payment, category |
{
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}Ответ
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {},
"time": "2025-05-01T12:00:00Z"
}POST /reports/dashboard/summary
Main dashboard KPI summary (sales, expenses, profit, top-line counters).
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/summary' \
-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",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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 res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/summary', {
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",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/summary",
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",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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
$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",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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/dashboard/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
sale_type | string | Нет | Допустимые значения: receipt, sale_contract, trade |
from_date | string (date-time) | Нет | Start of the reporting window. |
to_date | string (date-time) | Нет | End of the reporting window. |
organizations | string[] | Нет | |
employees | string[] | Нет | |
responsible_ids | string[] | Нет | |
mediator_ids | string[] | Нет | |
field | string | Нет | Metric the chart plots.. Допустимые значения: gross_sales, refund, discount, gift, net_sales, profit. По умолчанию: "gross_sales" |
organization_id | string | Нет | Organization ObjectId. |
category_id | string | Нет | |
customer_category_id | string | Нет | |
supplier_id | string | Нет | |
supplier_category_id | string | Нет | |
product_id | string | Нет | |
product_ids | string[] | Нет | |
contract_id | string | Нет | |
report_by | string | Нет | Допустимые значения: created_by, responsible |
type | string | Нет | Допустимые значения: product, customer, employee, payment, category |
{
"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",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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"
}Ответ
Структура ответа совпадает с POST /reports/customers/health-score/summary.
POST /reports/dashboard/chart
Main dashboard time-series chart data.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/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",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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 res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/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",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/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",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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
$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",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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/dashboard/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
sale_type | string | Нет | Допустимые значения: receipt, sale_contract, trade |
from_date | string (date-time) | Нет | Start of the reporting window. |
to_date | string (date-time) | Нет | End of the reporting window. |
organizations | string[] | Нет | |
employees | string[] | Нет | |
responsible_ids | string[] | Нет | |
mediator_ids | string[] | Нет | |
field | string | Нет | Metric the chart plots.. Допустимые значения: gross_sales, refund, discount, gift, net_sales, profit. По умолчанию: "gross_sales" |
organization_id | string | Нет | Organization ObjectId. |
category_id | string | Нет | |
customer_category_id | string | Нет | |
supplier_id | string | Нет | |
supplier_category_id | string | Нет | |
product_id | string | Нет | |
product_ids | string[] | Нет | |
contract_id | string | Нет | |
report_by | string | Нет | Допустимые значения: created_by, responsible |
type | string | Нет | Допустимые значения: product, customer, employee, payment, category |
{
"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",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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"
}Ответ
Структура ответа совпадает с POST /reports/customers/health-score/charts.
POST /reports/dashboard/top/{key}
Top-N entities ranked by the given key (e.g. products / customers / employees).
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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 res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/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,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/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,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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
$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,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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/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);Параметры пути
| Параметр | Тип | Обязательно | Описание |
|---|---|---|---|
key | string | Да | Top-N grouping key: product, customer, employee, category, payment_method, etc. |
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
sale_type | string | Нет | Допустимые значения: receipt, sale_contract, trade |
from_date | string (date-time) | Нет | Start of the reporting window. |
to_date | string (date-time) | Нет | End of the reporting window. |
organizations | string[] | Нет | |
employees | string[] | Нет | |
responsible_ids | string[] | Нет | |
mediator_ids | string[] | Нет | |
field | string | Нет | Metric the chart plots.. Допустимые значения: gross_sales, refund, discount, gift, net_sales, profit. По умолчанию: "gross_sales" |
limit | number | Нет | Maximum number of rows to return. |
organization_id | string | Нет | Organization ObjectId. |
sort_by | string | Нет | Field name to sort by. |
category_id | string | Нет | |
customer_category_id | string | Нет | |
supplier_id | string | Нет | |
supplier_category_id | string | Нет | |
product_id | string | Нет | |
product_ids | string[] | Нет | |
contract_id | string | Нет | |
report_by | string | Нет | Допустимые значения: created_by, responsible |
type | string | Нет | Допустимые значения: product, customer, employee, payment, category |
{
"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,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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"
}Ответ
Структура ответа совпадает с POST /reports/summary/debt/paging.
POST /reports/order/dashboard/summary
Sale-order dashboard KPI summary.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/summary' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/summary', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/summary",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"state": "new",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
organization_id | string | Нет | Organization ObjectId. |
from_date | string (date-time) | Нет | Start of the reporting window. |
to_date | string (date-time) | Нет | End of the reporting window. |
responsible_ids | string[] | Нет | |
state | string | Нет | Допустимые значения: new, draft, in_progress, canceled, done, accepted |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}Ответ
Структура ответа совпадает с POST /reports/customers/health-score/summary.
POST /reports/order/dashboard/chart
Sale-order dashboard time-series chart.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/chart' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/chart', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/chart",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"state": "new",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
organization_id | string | Нет | Organization ObjectId. |
responsible_ids | string[] | Нет | |
state | string | Нет | Допустимые значения: new, draft, in_progress, canceled, done, accepted |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}Ответ
Структура ответа совпадает с POST /reports/customers/health-score/charts.
POST /reports/order/dashboard/states
Sale-order count by state (new / in-progress / done / canceled).
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/states' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/states', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/states",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"state": "new",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/states');
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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
organization_id | string | Нет | Organization ObjectId. |
from_date | string (date-time) | Нет | Start of the reporting window. |
to_date | string (date-time) | Нет | End of the reporting window. |
responsible_ids | string[] | Нет | |
state | string | Нет | Допустимые значения: new, draft, in_progress, canceled, done, accepted |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}Ответ
Структура ответа совпадает с POST /reports/customers/health-score/summary.
POST /reports/order/dashboard/top/{key}
Top-N for the sale-order dashboard, by the given key.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/top/product' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/top/product', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"limit": 0
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/top/product",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/order/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);Параметры пути
| Параметр | Тип | Обязательно | Описание |
|---|---|---|---|
key | string | Да |
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
organization_id | string | Нет | Organization ObjectId. |
from_date | string (date-time) | Нет | Start of the reporting window. |
to_date | string (date-time) | Нет | End of the reporting window. |
responsible_ids | string[] | Нет | |
state | string | Нет | Допустимые значения: new, draft, in_progress, canceled, done, accepted |
limit | integer | Да | Maximum number of rows to return. |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new",
"limit": 0
}Ответ
Структура ответа совпадает с POST /reports/summary/debt/paging.
POST /reports/summary/debt/get-summary
Aggregate customer-debt summary for the dashboard card.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/debt/get-summary' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0,
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/debt/get-summary', {
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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/debt/get-summary",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0,
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
limit | number | Да | Maximum number of rows to return. |
page | number | Да | Page number, starting from 1. |
organization_id | string | Нет | Organization ObjectId. |
supplier_id | string | Нет | |
customer_id | string | Нет | |
sort | object | Нет | |
sort.name | integer | Нет | Допустимые значения: 1, -1 |
search | string | Нет | Free-text search. |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"search": "string"
}Ответ
Структура ответа совпадает с POST /reports/customers/health-score/summary.
POST /reports/summary/credit/get-summary
Aggregate customer-credit summary for the dashboard card.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/credit/get-summary' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0,
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/credit/get-summary', {
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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/credit/get-summary",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0,
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
limit | number | Да | Maximum number of rows to return. |
page | number | Да | Page number, starting from 1. |
organization_id | string | Нет | Organization ObjectId. |
supplier_id | string | Нет | |
customer_id | string | Нет | |
sort | object | Нет | |
sort.name | integer | Нет | Допустимые значения: 1, -1 |
search | string | Нет | Free-text search. |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"search": "string"
}Ответ
Структура ответа совпадает с POST /reports/customers/health-score/summary.
POST /reports/summary/goods/by-price/total
Total goods valuation grouped by price (dashboard card).
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/goods/by-price/total' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"price_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/goods/by-price/total",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"price_id": "64b7f4d9e2b3b6a0b7c5d7ff",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"price_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
organization_id | string | Да | Organization ObjectId. |
price_id | string | Да | |
is_product | boolean | Нет | |
is_material | boolean | Нет | |
is_semi_product | boolean | Нет |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"price_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"is_product": false,
"is_material": false,
"is_semi_product": false
}Ответ
Структура ответа совпадает с POST /reports/customers/health-score/summary.
POST /reports/summary/product/chart-paging
Paginated product chart rows for the dashboard.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/product/chart-paging' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0,
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/product/chart-paging",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0,
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
limit | number | Да | Maximum number of rows to return. |
page | number | Да | Page number, starting from 1. |
organization_id | string | Нет | Organization ObjectId. |
warehouse_id | string | Нет | |
product_id | string | Нет | |
sort | object | Нет | |
sort.name | integer | Нет | Допустимые значения: 1, -1 |
is_product | boolean | Нет | |
is_material | boolean | Нет | |
is_semi_product | boolean | Нет | |
search | string | Нет | Free-text search. |
state | string | Нет | Допустимые значения: canceled, done |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"is_product": false,
"is_material": false,
"is_semi_product": false,
"search": "string",
"state": "canceled"
}Ответ
Структура ответа совпадает с POST /reports/summary/debt/paging.
POST /reports/summary/product/get-summary
Aggregate product summary for the dashboard card.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/product/get-summary' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/product/get-summary",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
organization_id | string | Да | Organization ObjectId. |
is_product | boolean | Нет | |
is_material | boolean | Нет | |
is_semi_product | boolean | Нет |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"is_product": false,
"is_material": false,
"is_semi_product": false
}Ответ
Структура ответа совпадает с POST /reports/customers/health-score/summary.
POST /reports/summary/sale/chart
Sale chart time series for the dashboard.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/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",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/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",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
sale_type | string | Нет | Допустимые значения: receipt, sale_contract, trade |
from_date | string (date-time) | Нет | Start of the reporting window. |
to_date | string (date-time) | Нет | End of the reporting window. |
field | string | Нет | Metric the chart plots.. Допустимые значения: gross_sales, refund, discount, gift, net_sales, profit. По умолчанию: "gross_sales" |
organization_id | string | Нет | Organization ObjectId. |
type | string | Нет | Допустимые значения: product, customer, employee, payment, category |
{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}Ответ
Структура ответа совпадает с POST /reports/customers/health-score/charts.
POST /reports/trade/customer/chart
Trade-by-customer chart time series for the dashboard.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/chart' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/chart', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/chart",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
organization_id | string | Нет | Organization ObjectId. |
customer_id | string | Да | |
date_from | string (date-time) | Нет | Start of the date range. |
date_to | string (date-time) | Нет | End of the date range. |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z"
}Ответ
Структура ответа совпадает с POST /reports/customers/health-score/charts.
POST /reports/trade/customer/health-score
Customer health-score rollup based on trade history.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/health-score' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/health-score', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/health-score",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/health-score');
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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
organization_id | string | Нет | Organization ObjectId. |
customer_id | string | Да |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}Ответ
Структура ответа совпадает с POST /reports/customers/health-score/summary.
POST /reports/trade/price-deviation/paging
Paginated rows of trades where the sold price deviates from the configured price list.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/trade/price-deviation/paging' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0,
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/price-deviation/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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/trade/price-deviation/paging",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0,
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/price-deviation/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
limit | number | Да | Maximum number of rows to return. |
page | number | Да | Page number, starting from 1. |
organization_id | string | Нет | Organization ObjectId. |
warehouse_id | string | Нет | |
category_id | string | Нет | |
product_id | string | Нет | |
product_ids | string[] | Нет | |
customer_id | string | Нет | |
date_from | string (date-time) | Нет | Start of the date range. |
date_to | string (date-time) | Нет | End of the date range. |
sort | object | Нет | |
sort.name | integer | Нет | Допустимые значения: 1, -1 |
trade_state | string | Нет | Допустимые значения: new, in_progress, canceled, done |
trade_states | string[] | Нет | |
state | string | Нет | Допустимые значения: canceled, done |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"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"
}Ответ
Структура ответа совпадает с POST /reports/summary/debt/paging.
Эта страница сгенерирована из спецификации OpenAPI.