Report sales
INFO
Каждый ответ приходит в общем конверте — code, message, messages, status_code, time — а полезная нагрузка лежит в data. Таблицы ниже описывают содержимое data.
POST /reports/trade/pagin
Paginated list of trades for the reporting window.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/trade/pagin' \
-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/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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/trade/pagin",
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/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
limit | number | Да | Maximum number of rows to return. |
page | number | Да | Page number, starting from 1. |
organization_id | string | Нет | Organization ObjectId. |
warehouse_id | string | Нет | |
customer_category_id | 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 |
state | string | Нет | Допустимые значения: canceled, done |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"sort": {
"name": 1
},
"state": "canceled"
}Ответ
| Поле | Тип | Описание |
|---|---|---|
list | object[] | |
total | number |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"list": [
{}
],
"total": 0
},
"time": "2025-05-01T12:00:00Z"
}POST /reports/trade/by-product/pagin
Trade aggregation grouped by product.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/trade/by-product/pagin' \
-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/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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/trade/by-product/pagin",
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/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
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 | Нет | |
contract_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",
"contract_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/trade/pagin.
POST /reports/trade/by-customer/pagin
Trade aggregation grouped by customer.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/trade/by-customer/pagin' \
-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/by-customer/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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/trade/by-customer/pagin",
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/by-customer/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
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 | Нет | |
product_ids | string[] | Нет | |
customer_id | string | Нет | |
contract_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 |
state | string | Нет | Допустимые значения: canceled, done |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"sort": {
"name": 1
},
"state": "canceled"
}Ответ
Структура ответа совпадает с POST /reports/trade/pagin.
POST /reports/trade/items/pagin
Paginated list of individual trade line items.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/trade/items/pagin' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0,
"page": 0,
"_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/items/pagin', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"limit": 0,
"page": 0,
"_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/items/pagin",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
"page": 0,
"_id": "64b7f4d9e2b3b6a0b7c5d7ff",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0,
"page": 0,
"_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/items/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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
limit | number | Да | Maximum number of rows to return. |
page | number | Да | Page number, starting from 1. |
organization_id | string | Нет | Organization ObjectId. |
_id | string | Да |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}Ответ
Структура ответа совпадает с POST /reports/trade/pagin.
POST /reports/sales/items/unsold-paging
Products that have not been sold in the reporting window.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/sales/items/unsold-paging' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/sales/items/unsold-paging', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"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/sales/items/unsold-paging",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/sales/items/unsold-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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
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[] | Нет | |
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" |
limit | number | Нет | Maximum number of rows to return. |
page | number | Да | Page number, starting from 1. |
organization_id | string | Нет | Organization ObjectId. |
warehouse_id | string | Нет | |
sort_by | string | Нет | Field name to sort by. |
category_id | string | Нет | |
customer_category_id | string | Нет | |
supplier_id | string | Нет | |
supplier_category_id | string | Нет | |
asc | integer | Нет | Sort direction: 1 ascending, -1 descending.. Допустимые значения: 1, -1. По умолчанию: -1 |
product_id | string | Нет | |
product_ids | string[] | Нет | |
customer_id | string | Нет | |
contract_id | string | Нет | |
sort | object | Нет | |
sort.name | integer | Нет | Допустимые значения: 1, -1 |
report_by | string | Нет | Допустимые значения: created_by, responsible |
is_product | boolean | Нет | |
is_material | boolean | Нет | |
is_semi_product | boolean | Нет | |
type | string | Нет | Допустимые значения: product, customer, employee, payment, category |
min_items_sold | number | Нет | |
min_gross_sales | number | Нет | |
product_type | string | Нет | Допустимые значения: is_semi_product, is_product, is_material, is_service |
quantity | number | Нет | |
min_quantity | number | Нет | |
stock_status | string | Нет | Допустимые значения: out_of_stock, in_stock |
{
"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",
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort_by": "string",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"asc": 1,
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"report_by": "created_by",
"is_product": false,
"is_material": false,
"is_semi_product": false,
"type": "product",
"min_items_sold": 0,
"min_gross_sales": 0,
"product_type": "is_semi_product",
"quantity": 0,
"min_quantity": 0,
"stock_status": "out_of_stock"
}Ответ
Структура ответа совпадает с POST /reports/trade/pagin.
POST /reports/sales/by-employee-pagin
Sales aggregated by employee (salesperson).
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-employee-pagin' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-employee-pagin', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"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/sales/by-employee-pagin",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-employee-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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
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[] | Нет | |
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" |
limit | number | Нет | Maximum number of rows to return. |
page | number | Да | Page number, starting from 1. |
organization_id | string | Нет | Organization ObjectId. |
warehouse_id | string | Нет | |
sort_by | string | Нет | Field name to sort by. |
category_id | string | Нет | |
customer_category_id | string | Нет | |
supplier_id | string | Нет | |
supplier_category_id | string | Нет | |
asc | integer | Нет | Sort direction: 1 ascending, -1 descending.. Допустимые значения: 1, -1. По умолчанию: -1 |
product_id | string | Нет | |
product_ids | string[] | Нет | |
customer_id | string | Нет | |
contract_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 |
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"
],
"divider": "hour",
"field": "gross_sales",
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort_by": "string",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"asc": 1,
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"sort": {
"name": 1
},
"report_by": "created_by",
"type": "product"
}Ответ
Структура ответа совпадает с POST /reports/trade/pagin.
POST /reports/sales/by-payment-method-pagin
Sales aggregated by payment method.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-payment-method-pagin' \
-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",
"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/sales/by-payment-method-pagin', {
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",
"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/sales/by-payment-method-pagin",
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",
"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"
],
"divider": "hour",
"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/sales/by-payment-method-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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
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[] | Нет | |
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 | Нет | |
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"
],
"divider": "hour",
"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/trade/pagin.
POST /reports/sales/by-category-pagin
Sales aggregated by product category.
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-category-pagin' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-category-pagin', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"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/sales/by-category-pagin",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-category-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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
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[] | Нет | |
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" |
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 | Нет | |
customer_category_id | string | Нет | |
supplier_id | string | Нет | |
supplier_category_id | string | Нет | |
product_id | string | Нет | |
product_ids | string[] | Нет | |
customer_id | string | Нет | |
contract_id | string | Нет | |
sort | object | Нет | |
sort.name | integer | Нет | Допустимые значения: 1, -1 |
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"
],
"divider": "hour",
"field": "gross_sales",
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"report_by": "created_by",
"type": "product"
}Ответ
Структура ответа совпадает с POST /reports/trade/pagin.
POST /reports/sales/by-category-all
Sales aggregated by category (full / non-paged variant).
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-category-all' \
-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/sales/by-category-all', {
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/sales/by-category-all",
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/sales/by-category-all');
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"
}Ответ
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {},
"time": "2025-05-01T12:00:00Z"
}POST /reports/sales/by-mediator-pagin
Sales aggregated by mediator (broker / referrer).
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-mediator-pagin' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-mediator-pagin', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"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/sales/by-mediator-pagin",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-mediator-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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
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[] | Нет | |
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" |
limit | number | Нет | Maximum number of rows to return. |
page | number | Да | Page number, starting from 1. |
organization_id | string | Нет | Organization ObjectId. |
warehouse_id | string | Нет | |
sort_by | string | Нет | Field name to sort by. |
category_id | string | Нет | |
customer_category_id | string | Нет | |
supplier_id | string | Нет | |
supplier_category_id | string | Нет | |
asc | integer | Нет | Sort direction: 1 ascending, -1 descending.. Допустимые значения: 1, -1. По умолчанию: -1 |
product_id | string | Нет | |
product_ids | string[] | Нет | |
customer_id | string | Нет | |
contract_id | string | Нет | |
sort | object | Нет | |
sort.name | integer | Нет | Допустимые значения: 1, -1 |
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"
],
"divider": "hour",
"field": "gross_sales",
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort_by": "string",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"asc": 1,
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"report_by": "created_by",
"type": "product"
}Ответ
Структура ответа совпадает с POST /reports/trade/pagin.
POST /reports/sales/by-supplier-pagin
Sales aggregated by supplier (for products sourced from each supplier).
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-supplier-pagin' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-supplier-pagin', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"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/sales/by-supplier-pagin",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/sales/by-supplier-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);Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
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[] | Нет | |
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" |
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 | Нет | |
customer_category_id | string | Нет | |
supplier_id | string | Нет | |
supplier_category_id | string | Нет | |
product_id | string | Нет | |
product_ids | string[] | Нет | |
customer_id | string | Нет | |
contract_id | string | Нет | |
sort | object | Нет | |
sort.name | integer | Нет | Допустимые значения: 1, -1 |
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"
],
"divider": "hour",
"field": "gross_sales",
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"report_by": "created_by",
"type": "product"
}Ответ
Структура ответа совпадает с POST /reports/trade/pagin.
POST /reports/sales/settlements
Sales settlements report (cash-vs-bank / settlement reconciliation).
Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения
Пример запроса
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/sales/settlements' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"page": 0,
"limit": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/sales/settlements', {
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()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/sales/settlements",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"page": 0,
"limit": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"page": 0,
"limit": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/sales/settlements');
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_ids | string[] | Нет | Organization ObjectIds. |
responsible_id | string | Нет | |
customer_id | string | Нет | |
customer_category_id | string | Нет | |
paid_states | string[] | Нет | |
page | number | Да | Page number, starting from 1. |
limit | number | Да | Maximum number of rows to return. |
search | string | Нет | Free-text search. |
date_from | string (date-time) | Нет | Start of the date range. |
date_to | string (date-time) | Нет | End of the date range. |
organization_id | string | Нет | Organization ObjectId. |
sort_by | string | Нет | Field name to sort by. |
asc | integer | Нет | Sort direction: 1 ascending, -1 descending.. Допустимые значения: -1, 1 |
{
"organization_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"paid_states": [
"fully_paid"
],
"page": 0,
"limit": 0,
"search": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort_by": "string",
"asc": -1
}Ответ
Структура ответа совпадает с POST /reports/sales/by-category-all.
Эта страница сгенерирована из спецификации OpenAPI.