Skip to content
View as Markdown

Report finance ​

INFO

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

POST /reports/balance/get ​

Current cashbox / account balance snapshot.

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

FieldTypeRequiredDescription
organization_idstringNoOrganization ObjectId.
datestring (date-time)No
category_idstringNo
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "date": "2025-05-01T12:00:00Z",
  "category_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}

Response

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.

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

FieldTypeRequiredDescription
organization_idstringNoOrganization ObjectId.
organization_idsstring[]NoOrganization ObjectIds.
datestring (date-time)NoPoint in time to report the balance at. Defaults to now.
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "organization_ids": [
    "64b7f4d9e2b3b6a0b7c5d7ff"
  ],
  "date": "2025-05-01T12:00:00Z"
}

Response

Same response shape as POST /reports/balance/get.

POST /reports/balance/items ​

Per-currency / per-account balance breakdown.

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

FieldTypeRequiredDescription
organization_idstringNoOrganization ObjectId.
datestring (date-time)No
category_idstringNo
sectionstringYesOne of: active, debt, credit
section_typestringYesOne of: on_the_way, material, product, customer, supplier, employee, person
pageanyNoPage number, starting from 1.
limitanyNoMaximum number of rows to return.
searchstringNoFree-text search.
updated_atstring (date-time)NoOnly records updated at or after this time.
date_fromstring (date-time)NoStart of the date range.
date_tostring (date-time)NoEnd of the date range.
source_idstringNo
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"
}

Response

FieldTypeDescription
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).

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

FieldTypeRequiredDescription
organization_idstringNoOrganization ObjectId.
cashbox_idstringNoCashbox ObjectId.
date_fromstring (date-time)YesStart of the date range.
date_tostring (date-time)YesEnd of the date range.
treebooleanNoDefault: false
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "date_from": "2025-05-01T12:00:00Z",
  "date_to": "2025-05-01T12:00:00Z",
  "tree": false
}

Response

Same response shape as POST /reports/balance/get.

POST /reports/customer-debt/get ​

Aggregate of outstanding customer debt.

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

FieldTypeRequiredDescription
organization_idstringNoOrganization ObjectId.
date_fromstring (date-time)NoStart of the date range.
date_tostring (date-time)NoEnd of the date range.
pagenumberYesPage number, starting from 1.
limitnumberYesMaximum 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
}

Response

Same response shape as POST /reports/balance/get.

POST /reports/profit-loss/get ​

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

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

FieldTypeRequiredDescription
organization_idstringNoOrganization ObjectId.
json
{
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}

Response

Same response shape as POST /reports/balance/get.

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

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

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

FieldTypeRequiredDescription
organization_idstringNoOrganization ObjectId.
organization_idsstring[]NoOrganization ObjectIds.
responsible_idstringNo
customer_idstringNo
customer_category_idstringNo
paid_statesstring[]No
date_fromstring (date-time)NoStart of the date range.
date_tostring (date-time)NoEnd of the date range.
sale_typestringNoOne of: debt, cash
is_initial_paymentbooleanNo
is_installment_planbooleanNoDefault: true
json
{
  "organization_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
}

Response

Same response shape as POST /reports/balance/get.

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

Paginated list of installment plans.

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

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

Response

Same response shape as POST /reports/balance/items.

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

Completed installment plans within the reporting window.

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

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

Response

Same response shape as POST /reports/balance/items.

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

Aggregate payment-overview metrics per customer.

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

FieldTypeRequiredDescription
organization_idstringNoOrganization ObjectId.
organization_idsstring[]NoOrganization ObjectIds.
responsible_idstringNo
customer_idstringNo
customer_category_idstringNo
paid_statesstring[]No
date_fromstring (date-time)NoStart of the date range.
date_tostring (date-time)NoEnd of the date range.
sale_typestringNoOne of: debt, cash
is_initial_paymentbooleanNo
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
}

Response

Same response shape as POST /reports/balance/get.

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

Paginated payment-overview rows per customer.

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

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

Response

Same response shape as POST /reports/balance/items.

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

Customers whose payment plan completed in the window.

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

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

Response

Same response shape as POST /reports/balance/items.

POST /reports/summary/income/pagin ​

Paginated income summary rows.

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

FieldTypeRequiredDescription
limitnumberYesMaximum number of rows to return.
pagenumberYesPage number, starting from 1.
organization_idstringNoOrganization ObjectId.
warehouse_idstringNo
supplier_idstringNo
product_idstringNo
product_idsstring[]No
date_fromstring (date-time)NoStart of the date range.
date_tostring (date-time)NoEnd of the date range.
sortobjectNo
sort.nameintegerNoOne of: 1, -1
statestringNoOne of: 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"
}

Response

Same response shape as POST /reports/balance/items.

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

Aggregate income/expense statistics for the window.

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

Example request

bash
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/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);

Request body

FieldTypeRequiredDescription
from_datestring (date-time)NoStart of the reporting window.
to_datestring (date-time)NoEnd of the reporting window.
fieldstringNoMetric the chart plots.. One of: gross_sales, refund, discount, gift, net_sales, profit. Default: "gross_sales"
organization_idstringNoOrganization ObjectId.
cashbox_idstringNoCashbox ObjectId.
typestringNoOne of: product, customer, employee, payment, category
json
{
  "from_date": "2025-05-01T12:00:00Z",
  "to_date": "2025-05-01T12:00:00Z",
  "field": "gross_sales",
  "organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "cashbox_id": "64b7f4d9e2b3b6a0b7c5d7ff",
  "type": "product"
}

Response

Same response shape as POST /reports/balance/get.


This page is generated from the OpenAPI spec.

Bito 2.0 Integration API