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
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"
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Organization ObjectId. |
date | string (date-time) | No | |
category_id | string | No |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"date": "2025-05-01T12:00:00Z",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}Response
{
"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
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"
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Organization ObjectId. |
organization_ids | string[] | No | Organization ObjectIds. |
date | string (date-time) | No | Point in time to report the balance at. Defaults to now. |
{
"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
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"
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Organization ObjectId. |
date | string (date-time) | No | |
category_id | string | No | |
section | string | Yes | One of: active, debt, credit |
section_type | string | Yes | One of: on_the_way, material, product, customer, supplier, employee, person |
page | any | No | Page number, starting from 1. |
limit | any | No | Maximum number of rows to return. |
search | string | No | Free-text search. |
updated_at | string (date-time) | No | Only records updated at or after this time. |
date_from | string (date-time) | No | Start of the date range. |
date_to | string (date-time) | No | End of the date range. |
source_id | string | No |
{
"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
| Field | Type | Description |
|---|---|---|
list | object[] | |
total | number |
{
"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
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"
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Organization ObjectId. |
cashbox_id | string | No | Cashbox ObjectId. |
date_from | string (date-time) | Yes | Start of the date range. |
date_to | string (date-time) | Yes | End of the date range. |
tree | boolean | No | Default: false |
{
"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
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
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Organization ObjectId. |
date_from | string (date-time) | No | Start of the date range. |
date_to | string (date-time) | No | End of the date range. |
page | number | Yes | Page number, starting from 1. |
limit | number | Yes | Maximum number of rows to return. |
{
"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
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"
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Organization ObjectId. |
{
"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
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
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Organization ObjectId. |
organization_ids | string[] | No | Organization ObjectIds. |
responsible_id | string | No | |
customer_id | string | No | |
customer_category_id | string | No | |
paid_states | string[] | No | |
date_from | string (date-time) | No | Start of the date range. |
date_to | string (date-time) | No | End of the date range. |
sale_type | string | No | One of: debt, cash |
is_initial_payment | boolean | No | |
is_installment_plan | boolean | No | Default: true |
{
"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
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
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Organization ObjectId. |
organization_ids | string[] | No | Organization ObjectIds. |
responsible_id | string | No | |
customer_id | string | No | |
customer_category_id | string | No | |
paid_states | string[] | No | |
date_from | string (date-time) | No | Start of the date range. |
date_to | string (date-time) | No | End of the date range. |
payment_status | string | No | One of: late, incoming, completed, payments |
sale_type | string | No | One of: debt, cash |
is_initial_payment | boolean | No | |
is_installment_plan | boolean | No | Default: true |
page | number | Yes | Page number, starting from 1. |
limit | number | Yes | Maximum number of rows to return. |
search | string | No | Free-text search. |
{
"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
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
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Organization ObjectId. |
organization_ids | string[] | No | Organization ObjectIds. |
responsible_id | string | No | |
customer_id | string | No | |
customer_category_id | string | No | |
date_from | string (date-time) | No | Start of the date range. |
date_to | string (date-time) | No | End of the date range. |
sale_type | string | No | One of: debt, cash |
is_initial_payment | boolean | No | |
is_installment_plan | boolean | No | Default: true |
page | number | Yes | Page number, starting from 1. |
limit | number | Yes | Maximum number of rows to return. |
search | string | No | Free-text search. |
{
"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
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
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Organization ObjectId. |
organization_ids | string[] | No | Organization ObjectIds. |
responsible_id | string | No | |
customer_id | string | No | |
customer_category_id | string | No | |
paid_states | string[] | No | |
date_from | string (date-time) | No | Start of the date range. |
date_to | string (date-time) | No | End of the date range. |
sale_type | string | No | One of: debt, cash |
is_initial_payment | boolean | No |
{
"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
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
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Organization ObjectId. |
organization_ids | string[] | No | Organization ObjectIds. |
responsible_id | string | No | |
customer_id | string | No | |
customer_category_id | string | No | |
paid_states | string[] | No | |
date_from | string (date-time) | No | Start of the date range. |
date_to | string (date-time) | No | End of the date range. |
payment_status | string | No | One of: late, incoming, completed, payments |
sale_type | string | No | One of: debt, cash |
is_initial_payment | boolean | No | |
is_installment_plan | boolean | No | Default: true |
page | number | Yes | Page number, starting from 1. |
limit | number | Yes | Maximum number of rows to return. |
search | string | No | Free-text search. |
{
"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
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
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Organization ObjectId. |
organization_ids | string[] | No | Organization ObjectIds. |
responsible_id | string | No | |
customer_id | string | No | |
customer_category_id | string | No | |
date_from | string (date-time) | No | Start of the date range. |
date_to | string (date-time) | No | End of the date range. |
sale_type | string | No | One of: debt, cash |
is_initial_payment | boolean | No | |
is_installment_plan | boolean | No | Default: true |
page | number | Yes | Page number, starting from 1. |
limit | number | Yes | Maximum number of rows to return. |
search | string | No | Free-text search. |
{
"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
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
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
limit | number | Yes | Maximum number of rows to return. |
page | number | Yes | Page number, starting from 1. |
organization_id | string | No | Organization ObjectId. |
warehouse_id | string | No | |
supplier_id | string | No | |
product_id | string | No | |
product_ids | string[] | No | |
date_from | string (date-time) | No | Start of the date range. |
date_to | string (date-time) | No | End of the date range. |
sort | object | No | |
sort.name | integer | No | One of: 1, -1 |
state | string | No | One of: canceled, done |
{
"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
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"
}'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()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
$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
| Field | Type | Required | Description |
|---|---|---|---|
from_date | string (date-time) | No | Start of the reporting window. |
to_date | string (date-time) | No | End of the reporting window. |
field | string | No | Metric the chart plots.. One of: gross_sales, refund, discount, gift, net_sales, profit. Default: "gross_sales" |
organization_id | string | No | Organization ObjectId. |
cashbox_id | string | No | Cashbox ObjectId. |
type | string | No | One of: product, customer, employee, payment, category |
{
"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.