Skip to content
Markdown

Report finance ​

INFO

Каждый ответ приходит в общем конверте — code, message, messages, status_code, time — а полезная нагрузка лежит в data. Таблицы ниже описывают содержимое data.

POST /reports/balance/get ​

Current cashbox / account balance snapshot.

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/balance/get' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "date": "2025-05-01T12:00:00Z",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/balance/get', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "date": "2025-05-01T12:00:00Z",
    "category_id": "64b7f4d9e2b3b6a0b7c5d7ff"
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/balance/get",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "date": "2025-05-01T12:00:00Z",
        "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "date": "2025-05-01T12:00:00Z",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;

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

Тело запроса

ПолеТипОбязательноОписание
organization_idstringНетOrganization ObjectId.
datestring (date-time)Нет
category_idstringНет
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "date": "2025-05-01T12:00:00Z",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}

Ответ

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

POST /reports/balance/get-at ​

Balance at a specific point in time.

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/balance/get-at' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "date": "2025-05-01T12:00:00Z"
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/balance/get-at', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "organization_ids": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "date": "2025-05-01T12:00:00Z"
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/balance/get-at",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "organization_ids": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "date": "2025-05-01T12:00:00Z",
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "date": "2025-05-01T12:00:00Z"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/balance/get-at');
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_idstringНетOrganization ObjectId.
organization_idsstring[]НетOrganization ObjectIds.
datestring (date-time)НетPoint in time to report the balance at. Defaults to now.
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "date": "2025-05-01T12:00:00Z"
}

Ответ

Структура ответа совпадает с POST /reports/balance/get.

POST /reports/balance/items ​

Per-currency / per-account balance breakdown.

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/balance/items' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "section": "active",
  "section_type": "on_the_way"
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/balance/items', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "section": "active",
    "section_type": "on_the_way"
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/balance/items",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "section": "active",
        "section_type": "on_the_way",
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "section": "active",
  "section_type": "on_the_way"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/balance/items');
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_idstringНетOrganization ObjectId.
datestring (date-time)Нет
category_idstringНет
sectionstringДаДопустимые значения: active, debt, credit
section_typestringДаДопустимые значения: on_the_way, material, product, customer, supplier, employee, person
pageanyНетPage number, starting from 1.
limitanyНетMaximum number of rows to return.
searchstringНетFree-text search.
updated_atstring (date-time)НетOnly records updated at or after this time.
date_fromstring (date-time)НетStart of the date range.
date_tostring (date-time)НетEnd of the date range.
source_idstringНет
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "date": "2025-05-01T12:00:00Z",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "section": "active",
  "section_type": "on_the_way",
  "page": null,
  "limit": null,
  "search": "string",
  "updated_at": "2025-05-01T12:00:00Z",
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "source_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}

Ответ

ПолеТипОписание
listobject[]
totalnumber
json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {
    "list": [
      {}
    ],
    "total": 0
  },
  "time": "2025-05-01T12:00:00Z"
}

POST /reports/cashflow/get ​

Cashflow report for the reporting window (in + out + net).

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/cashflow/get' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z"
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/cashflow/get', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "date_from": "2025-05-01T12:00:00Z",
    "date_to": "2025-05-01T12:00:00Z"
  }),
})
const { code, data } = await res.json()
python
import os
import requests

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

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

Тело запроса

ПолеТипОбязательноОписание
organization_idstringНетOrganization ObjectId.
cashbox_idstringНетCashbox ObjectId.
date_fromstring (date-time)ДаStart of the date range.
date_tostring (date-time)ДаEnd of the date range.
treebooleanНетПо умолчанию: false
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "tree": false
}

Ответ

Структура ответа совпадает с POST /reports/balance/get.

POST /reports/customer-debt/get ​

Aggregate of outstanding customer debt.

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/customer-debt/get' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "page": 0,
  "limit": 0
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/customer-debt/get', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "page": 0,
    "limit": 0
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/customer-debt/get",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "page": 0,
        "limit": 0,
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "page": 0,
  "limit": 0
}
JSON;

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

Тело запроса

ПолеТипОбязательноОписание
organization_idstringНетOrganization ObjectId.
date_fromstring (date-time)НетStart of the date range.
date_tostring (date-time)НетEnd of the date range.
pagenumberДаPage number, starting from 1.
limitnumberДаMaximum number of rows to return.
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "page": 0,
  "limit": 0
}

Ответ

Структура ответа совпадает с POST /reports/balance/get.

POST /reports/profit-loss/get ​

P&L report (revenue, COGS, expenses, net profit).

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/profit-loss/get' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/profit-loss/get', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/profit-loss/get",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;

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

Тело запроса

ПолеТипОбязательноОписание
organization_idstringНетOrganization ObjectId.
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}

Ответ

Структура ответа совпадает с POST /reports/balance/get.

POST /reports/finance/installment-plan/get-summary ​

Summary of installment-plan installments (debt, paid, due).

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

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

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

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/finance/installment-plan/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_idstringНетOrganization ObjectId.
organization_idsstring[]НетOrganization ObjectIds.
responsible_idstringНет
customer_idstringНет
customer_category_idstringНет
paid_statesstring[]Нет
date_fromstring (date-time)НетStart of the date range.
date_tostring (date-time)НетEnd of the date range.
sale_typestringНетДопустимые значения: debt, cash
is_initial_paymentbooleanНет
is_installment_planbooleanНетПо умолчанию: true
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "paid_states": [
    "fully_paid"
  ],
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "sale_type": "debt",
  "is_initial_payment": false,
  "is_installment_plan": true
}

Ответ

Структура ответа совпадает с POST /reports/balance/get.

POST /reports/finance/installment-plan/get-paging ​

Paginated list of installment plans.

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/finance/installment-plan/get-paging' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "page": 0,
  "limit": 0
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/finance/installment-plan/get-paging', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "page": 0,
    "limit": 0
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/finance/installment-plan/get-paging",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "page": 0,
        "limit": 0,
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "page": 0,
  "limit": 0
}
JSON;

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

Тело запроса

ПолеТипОбязательноОписание
organization_idstringНетOrganization ObjectId.
organization_idsstring[]НетOrganization ObjectIds.
responsible_idstringНет
customer_idstringНет
customer_category_idstringНет
paid_statesstring[]Нет
date_fromstring (date-time)НетStart of the date range.
date_tostring (date-time)НетEnd of the date range.
payment_statusstringНетДопустимые значения: late, incoming, completed, payments
sale_typestringНетДопустимые значения: debt, cash
is_initial_paymentbooleanНет
is_installment_planbooleanНетПо умолчанию: true
pagenumberДаPage number, starting from 1.
limitnumberДаMaximum number of rows to return.
searchstringНетFree-text search.
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "paid_states": [
    "fully_paid"
  ],
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "payment_status": "late",
  "sale_type": "debt",
  "is_initial_payment": false,
  "is_installment_plan": true,
  "page": 0,
  "limit": 0,
  "search": "string"
}

Ответ

Структура ответа совпадает с POST /reports/balance/items.

POST /reports/finance/installment-plan/completed ​

Completed installment plans within the reporting window.

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/finance/installment-plan/completed' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "page": 0,
  "limit": 0
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/finance/installment-plan/completed', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "page": 0,
    "limit": 0
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/finance/installment-plan/completed",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "page": 0,
        "limit": 0,
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "page": 0,
  "limit": 0
}
JSON;

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

Тело запроса

ПолеТипОбязательноОписание
organization_idstringНетOrganization ObjectId.
organization_idsstring[]НетOrganization ObjectIds.
responsible_idstringНет
customer_idstringНет
customer_category_idstringНет
date_fromstring (date-time)НетStart of the date range.
date_tostring (date-time)НетEnd of the date range.
sale_typestringНетДопустимые значения: debt, cash
is_initial_paymentbooleanНет
is_installment_planbooleanНетПо умолчанию: true
pagenumberДаPage number, starting from 1.
limitnumberДаMaximum number of rows to return.
searchstringНетFree-text search.
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "sale_type": "debt",
  "is_initial_payment": false,
  "is_installment_plan": true,
  "page": 0,
  "limit": 0,
  "search": "string"
}

Ответ

Структура ответа совпадает с POST /reports/balance/items.

POST /reports/finance/customers-payment-overview/get-summary ​

Aggregate payment-overview metrics per customer.

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/finance/customers-payment-overview/get-summary' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "paid_states": [
    "fully_paid"
  ],
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "sale_type": "debt",
  "is_initial_payment": false
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/finance/customers-payment-overview/get-summary', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "organization_ids": [
      "64b7f4d9e2b3b6a0b7c5d7ff"
    ],
    "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "paid_states": [
      "fully_paid"
    ],
    "date_from": "2025-05-01T12:00:00Z",
    "date_to": "2025-05-01T12:00:00Z",
    "sale_type": "debt",
    "is_initial_payment": false
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/finance/customers-payment-overview/get-summary",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "organization_ids": [
            "64b7f4d9e2b3b6a0b7c5d7ff",
        ],
        "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "paid_states": [
            "fully_paid",
        ],
        "date_from": "2025-05-01T12:00:00Z",
        "date_to": "2025-05-01T12:00:00Z",
        "sale_type": "debt",
        "is_initial_payment": False,
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "paid_states": [
    "fully_paid"
  ],
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "sale_type": "debt",
  "is_initial_payment": false
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/finance/customers-payment-overview/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_idstringНетOrganization ObjectId.
organization_idsstring[]НетOrganization ObjectIds.
responsible_idstringНет
customer_idstringНет
customer_category_idstringНет
paid_statesstring[]Нет
date_fromstring (date-time)НетStart of the date range.
date_tostring (date-time)НетEnd of the date range.
sale_typestringНетДопустимые значения: debt, cash
is_initial_paymentbooleanНет
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "paid_states": [
    "fully_paid"
  ],
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "sale_type": "debt",
  "is_initial_payment": false
}

Ответ

Структура ответа совпадает с POST /reports/balance/get.

POST /reports/finance/customers-payment-overview/get-paging ​

Paginated payment-overview rows per customer.

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/finance/customers-payment-overview/get-paging' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "page": 0,
  "limit": 0
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/finance/customers-payment-overview/get-paging', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "page": 0,
    "limit": 0
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/finance/customers-payment-overview/get-paging",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "page": 0,
        "limit": 0,
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "page": 0,
  "limit": 0
}
JSON;

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

Тело запроса

ПолеТипОбязательноОписание
organization_idstringНетOrganization ObjectId.
organization_idsstring[]НетOrganization ObjectIds.
responsible_idstringНет
customer_idstringНет
customer_category_idstringНет
paid_statesstring[]Нет
date_fromstring (date-time)НетStart of the date range.
date_tostring (date-time)НетEnd of the date range.
payment_statusstringНетДопустимые значения: late, incoming, completed, payments
sale_typestringНетДопустимые значения: debt, cash
is_initial_paymentbooleanНет
is_installment_planbooleanНетПо умолчанию: true
pagenumberДаPage number, starting from 1.
limitnumberДаMaximum number of rows to return.
searchstringНетFree-text search.
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "paid_states": [
    "fully_paid"
  ],
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "payment_status": "late",
  "sale_type": "debt",
  "is_initial_payment": false,
  "is_installment_plan": true,
  "page": 0,
  "limit": 0,
  "search": "string"
}

Ответ

Структура ответа совпадает с POST /reports/balance/items.

POST /reports/finance/customers-payment-overview/completed ​

Customers whose payment plan completed in the window.

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/finance/customers-payment-overview/completed' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "page": 0,
  "limit": 0
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/finance/customers-payment-overview/completed', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "page": 0,
    "limit": 0
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/finance/customers-payment-overview/completed",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "page": 0,
        "limit": 0,
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "page": 0,
  "limit": 0
}
JSON;

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

Тело запроса

ПолеТипОбязательноОписание
organization_idstringНетOrganization ObjectId.
organization_idsstring[]НетOrganization ObjectIds.
responsible_idstringНет
customer_idstringНет
customer_category_idstringНет
date_fromstring (date-time)НетStart of the date range.
date_tostring (date-time)НетEnd of the date range.
sale_typestringНетДопустимые значения: debt, cash
is_initial_paymentbooleanНет
is_installment_planbooleanНетПо умолчанию: true
pagenumberДаPage number, starting from 1.
limitnumberДаMaximum number of rows to return.
searchstringНетFree-text search.
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "sale_type": "debt",
  "is_initial_payment": false,
  "is_installment_plan": true,
  "page": 0,
  "limit": 0,
  "search": "string"
}

Ответ

Структура ответа совпадает с POST /reports/balance/items.

POST /reports/summary/income/pagin ​

Paginated income summary rows.

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/income/pagin' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "limit": 0,
  "page": 0
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/income/pagin', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "limit": 0,
    "page": 0
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/summary/income/pagin",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "limit": 0,
        "page": 0,
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "limit": 0,
  "page": 0
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/income/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);

Тело запроса

ПолеТипОбязательноОписание
limitnumberДаMaximum number of rows to return.
pagenumberДаPage number, starting from 1.
organization_idstringНетOrganization ObjectId.
warehouse_idstringНет
supplier_idstringНет
product_idstringНет
product_idsstring[]Нет
date_fromstring (date-time)НетStart of the date range.
date_tostring (date-time)НетEnd of the date range.
sortobjectНет
sort.nameintegerНетДопустимые значения: 1, -1
statestringНетДопустимые значения: canceled, done
json
{
  "limit": 0,
  "page": 0,
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "product_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "sort": {
    "name": 1
  },
  "state": "canceled"
}

Ответ

Структура ответа совпадает с POST /reports/balance/items.

POST /reports/summary/income-expense/stats ​

Aggregate income/expense statistics for the window.

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/income-expense/stats' \
  -H "api-key: $BITO_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}'
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/income-expense/stats', {
  method: 'POST',
  headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "from_date": "2025-05-01T12:00:00Z",
    "to_date": "2025-05-01T12:00:00Z",
    "field": "gross_sales",
    "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
    "type": "product"
  }),
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "POST",
    "https://api.bito.uz/integration-api/integration/api/v2/reports/summary/income-expense/stats",
    headers={"api-key": os.environ["BITO_API_KEY"]},
    json={
        "from_date": "2025-05-01T12:00:00Z",
        "to_date": "2025-05-01T12:00:00Z",
        "field": "gross_sales",
        "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
        "type": "product",
    },
)
print(res.json())
php
<?php
$body = <<<'JSON'
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}
JSON;

$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/income-expense/stats');
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_datestring (date-time)НетStart of the reporting window.
to_datestring (date-time)НетEnd of the reporting window.
fieldstringНетMetric the chart plots.. Допустимые значения: gross_sales, refund, discount, gift, net_sales, profit. По умолчанию: "gross_sales"
organization_idstringНетOrganization ObjectId.
cashbox_idstringНетCashbox ObjectId.
typestringНетДопустимые значения: product, customer, employee, payment, category
json
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}

Ответ

Структура ответа совпадает с POST /reports/balance/get.


Эта страница сгенерирована из спецификации OpenAPI.

Bito 2.0 Integration API