Report dashboard
INFO
Har bir javob umumiy konvertda qaytadi — code, message, messages, status_code, time — foydali yuk esa data ichida. Quyidagi jadvallar faqat data ichini tavsiflaydi.
POST /reports/summary/debt/paging
Paginated debt rows for the dashboard summary card.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/debt/paging' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0,
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/debt/paging', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"limit": 0,
"page": 0
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/debt/paging",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0,
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/debt/paging');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
limit | number | Ha | Maximum number of rows to return. |
page | number | Ha | Page number, starting from 1. |
organization_id | string | Yo‘q | Organization ObjectId. |
supplier_id | string | Yo‘q | |
customer_id | string | Yo‘q | |
sort | object | Yo‘q | |
sort.name | integer | Yo‘q | Mumkin qiymatlar: 1, -1 |
search | string | Yo‘q | Free-text search. |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"search": "string"
}Javob
| Maydon | Tur | Tavsif |
|---|---|---|
list | object[] | |
total | number |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"list": [
{}
],
"total": 0
},
"time": "2025-05-01T12:00:00Z"
}POST /reports/summary/credit/paging
Paginated credit rows for the dashboard summary card.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/credit/paging' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0,
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/credit/paging', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"limit": 0,
"page": 0
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/credit/paging",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0,
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/credit/paging');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
limit | number | Ha | Maximum number of rows to return. |
page | number | Ha | Page number, starting from 1. |
organization_id | string | Yo‘q | Organization ObjectId. |
supplier_id | string | Yo‘q | |
customer_id | string | Yo‘q | |
sort | object | Yo‘q | |
sort.name | integer | Yo‘q | Mumkin qiymatlar: 1, -1 |
search | string | Yo‘q | Free-text search. |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"search": "string"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/summary/debt/paging.
POST /reports/customers/health-score/charts
Customer health-score time series for charts.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/charts' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/charts', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/charts",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/charts');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
from_date | string (date-time) | Yo‘q | Start of the reporting window. |
to_date | string (date-time) | Yo‘q | End of the reporting window. |
divider | string | Yo‘q | Time bucket of the chart series.. Mumkin qiymatlar: hour, day, week, month, quarter, year. Standart: "day" |
field | string | Yo‘q | Metric the chart plots.. Mumkin qiymatlar: gross_sales, refund, discount, gift, net_sales, profit. Standart: "gross_sales" |
organization_id | string | Yo‘q | Organization ObjectId. |
category_id | string | Yo‘q | |
product_id | string | Yo‘q | |
type | string | Yo‘q | Mumkin qiymatlar: product, customer, employee, payment, category |
{
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}Javob
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": [
{
"label": "string",
"value": 0
}
],
"time": "2025-05-01T12:00:00Z"
}POST /reports/customers/health-score/summary
Aggregate customer health-score summary (good / warning / churn-risk counts).
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/summary' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/summary', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/summary",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/customers/health-score/summary');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
from_date | string (date-time) | Yo‘q | Start of the reporting window. |
to_date | string (date-time) | Yo‘q | End of the reporting window. |
divider | string | Yo‘q | Time bucket of the chart series.. Mumkin qiymatlar: hour, day, week, month, quarter, year. Standart: "day" |
field | string | Yo‘q | Metric the chart plots.. Mumkin qiymatlar: gross_sales, refund, discount, gift, net_sales, profit. Standart: "gross_sales" |
organization_id | string | Yo‘q | Organization ObjectId. |
category_id | string | Yo‘q | |
product_id | string | Yo‘q | |
type | string | Yo‘q | Mumkin qiymatlar: product, customer, employee, payment, category |
{
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"divider": "hour",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}Javob
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {},
"time": "2025-05-01T12:00:00Z"
}POST /reports/dashboard/summary
Main dashboard KPI summary (sales, expenses, profit, top-line counters).
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/summary' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/summary', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/summary",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/summary');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
sale_type | string | Yo‘q | Mumkin qiymatlar: receipt, sale_contract, trade |
from_date | string (date-time) | Yo‘q | Start of the reporting window. |
to_date | string (date-time) | Yo‘q | End of the reporting window. |
organizations | string[] | Yo‘q | |
employees | string[] | Yo‘q | |
responsible_ids | string[] | Yo‘q | |
mediator_ids | string[] | Yo‘q | |
field | string | Yo‘q | Metric the chart plots.. Mumkin qiymatlar: gross_sales, refund, discount, gift, net_sales, profit. Standart: "gross_sales" |
organization_id | string | Yo‘q | Organization ObjectId. |
category_id | string | Yo‘q | |
customer_category_id | string | Yo‘q | |
supplier_id | string | Yo‘q | |
supplier_category_id | string | Yo‘q | |
product_id | string | Yo‘q | |
product_ids | string[] | Yo‘q | |
contract_id | string | Yo‘q | |
report_by | string | Yo‘q | Mumkin qiymatlar: created_by, responsible |
type | string | Yo‘q | Mumkin qiymatlar: product, customer, employee, payment, category |
{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/customers/health-score/summary.
POST /reports/dashboard/chart
Main dashboard time-series chart data.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/chart' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/chart', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/chart",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/chart');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
sale_type | string | Yo‘q | Mumkin qiymatlar: receipt, sale_contract, trade |
from_date | string (date-time) | Yo‘q | Start of the reporting window. |
to_date | string (date-time) | Yo‘q | End of the reporting window. |
organizations | string[] | Yo‘q | |
employees | string[] | Yo‘q | |
responsible_ids | string[] | Yo‘q | |
mediator_ids | string[] | Yo‘q | |
field | string | Yo‘q | Metric the chart plots.. Mumkin qiymatlar: gross_sales, refund, discount, gift, net_sales, profit. Standart: "gross_sales" |
organization_id | string | Yo‘q | Organization ObjectId. |
category_id | string | Yo‘q | |
customer_category_id | string | Yo‘q | |
supplier_id | string | Yo‘q | |
supplier_category_id | string | Yo‘q | |
product_id | string | Yo‘q | |
product_ids | string[] | Yo‘q | |
contract_id | string | Yo‘q | |
report_by | string | Yo‘q | Mumkin qiymatlar: created_by, responsible |
type | string | Yo‘q | Mumkin qiymatlar: product, customer, employee, payment, category |
{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/customers/health-score/charts.
POST /reports/dashboard/top/{key}
Top-N entities ranked by the given key (e.g. products / customers / employees).
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/top/product' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"limit": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort_by": "string",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/top/product', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"limit": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort_by": "string",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/top/product",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"field": "gross_sales",
"limit": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort_by": "string",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"limit": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort_by": "string",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/dashboard/top/product');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Yo‘l parametrlari
| Parametr | Tur | Majburiy | Tavsif |
|---|---|---|---|
key | string | Ha | Top-N grouping key: product, customer, employee, category, payment_method, etc. |
So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
sale_type | string | Yo‘q | Mumkin qiymatlar: receipt, sale_contract, trade |
from_date | string (date-time) | Yo‘q | Start of the reporting window. |
to_date | string (date-time) | Yo‘q | End of the reporting window. |
organizations | string[] | Yo‘q | |
employees | string[] | Yo‘q | |
responsible_ids | string[] | Yo‘q | |
mediator_ids | string[] | Yo‘q | |
field | string | Yo‘q | Metric the chart plots.. Mumkin qiymatlar: gross_sales, refund, discount, gift, net_sales, profit. Standart: "gross_sales" |
limit | number | Yo‘q | Maximum number of rows to return. |
organization_id | string | Yo‘q | Organization ObjectId. |
sort_by | string | Yo‘q | Field name to sort by. |
category_id | string | Yo‘q | |
customer_category_id | string | Yo‘q | |
supplier_id | string | Yo‘q | |
supplier_category_id | string | Yo‘q | |
product_id | string | Yo‘q | |
product_ids | string[] | Yo‘q | |
contract_id | string | Yo‘q | |
report_by | string | Yo‘q | Mumkin qiymatlar: created_by, responsible |
type | string | Yo‘q | Mumkin qiymatlar: product, customer, employee, payment, category |
{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"organizations": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"employees": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"mediator_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"field": "gross_sales",
"limit": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort_by": "string",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"contract_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"report_by": "created_by",
"type": "product"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/summary/debt/paging.
POST /reports/order/dashboard/summary
Sale-order dashboard KPI summary.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/summary' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/summary', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/summary",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"state": "new",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/summary');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
organization_id | string | Yo‘q | Organization ObjectId. |
from_date | string (date-time) | Yo‘q | Start of the reporting window. |
to_date | string (date-time) | Yo‘q | End of the reporting window. |
responsible_ids | string[] | Yo‘q | |
state | string | Yo‘q | Mumkin qiymatlar: new, draft, in_progress, canceled, done, accepted |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/customers/health-score/summary.
POST /reports/order/dashboard/chart
Sale-order dashboard time-series chart.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/chart' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/chart', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/chart",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"state": "new",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/chart');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
organization_id | string | Yo‘q | Organization ObjectId. |
responsible_ids | string[] | Yo‘q | |
state | string | Yo‘q | Mumkin qiymatlar: new, draft, in_progress, canceled, done, accepted |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/customers/health-score/charts.
POST /reports/order/dashboard/states
Sale-order count by state (new / in-progress / done / canceled).
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/states' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/states', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/states",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff",
],
"state": "new",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/states');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
organization_id | string | Yo‘q | Organization ObjectId. |
from_date | string (date-time) | Yo‘q | Start of the reporting window. |
to_date | string (date-time) | Yo‘q | End of the reporting window. |
responsible_ids | string[] | Yo‘q | |
state | string | Yo‘q | Mumkin qiymatlar: new, draft, in_progress, canceled, done, accepted |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/customers/health-score/summary.
POST /reports/order/dashboard/top/{key}
Top-N for the sale-order dashboard, by the given key.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/top/product' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/top/product', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"limit": 0
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/top/product",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/order/dashboard/top/product');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Yo‘l parametrlari
| Parametr | Tur | Majburiy | Tavsif |
|---|---|---|---|
key | string | Ha |
So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
organization_id | string | Yo‘q | Organization ObjectId. |
from_date | string (date-time) | Yo‘q | Start of the reporting window. |
to_date | string (date-time) | Yo‘q | End of the reporting window. |
responsible_ids | string[] | Yo‘q | |
state | string | Yo‘q | Mumkin qiymatlar: new, draft, in_progress, canceled, done, accepted |
limit | integer | Ha | Maximum number of rows to return. |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"responsible_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"state": "new",
"limit": 0
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/summary/debt/paging.
POST /reports/summary/debt/get-summary
Aggregate customer-debt summary for the dashboard card.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/debt/get-summary' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0,
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/debt/get-summary', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"limit": 0,
"page": 0
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/debt/get-summary",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0,
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/debt/get-summary');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
limit | number | Ha | Maximum number of rows to return. |
page | number | Ha | Page number, starting from 1. |
organization_id | string | Yo‘q | Organization ObjectId. |
supplier_id | string | Yo‘q | |
customer_id | string | Yo‘q | |
sort | object | Yo‘q | |
sort.name | integer | Yo‘q | Mumkin qiymatlar: 1, -1 |
search | string | Yo‘q | Free-text search. |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"search": "string"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/customers/health-score/summary.
POST /reports/summary/credit/get-summary
Aggregate customer-credit summary for the dashboard card.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/credit/get-summary' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0,
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/credit/get-summary', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"limit": 0,
"page": 0
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/credit/get-summary",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0,
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/credit/get-summary');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
limit | number | Ha | Maximum number of rows to return. |
page | number | Ha | Page number, starting from 1. |
organization_id | string | Yo‘q | Organization ObjectId. |
supplier_id | string | Yo‘q | |
customer_id | string | Yo‘q | |
sort | object | Yo‘q | |
sort.name | integer | Yo‘q | Mumkin qiymatlar: 1, -1 |
search | string | Yo‘q | Free-text search. |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"search": "string"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/customers/health-score/summary.
POST /reports/summary/goods/by-price/total
Total goods valuation grouped by price (dashboard card).
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/goods/by-price/total' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"price_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/goods/by-price/total', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"price_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/goods/by-price/total",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"price_id": "64b7f4d9e2b3b6a0b7c5d7ff",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"price_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/goods/by-price/total');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
organization_id | string | Ha | Organization ObjectId. |
price_id | string | Ha | |
is_product | boolean | Yo‘q | |
is_material | boolean | Yo‘q | |
is_semi_product | boolean | Yo‘q |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"price_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"is_product": false,
"is_material": false,
"is_semi_product": false
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/customers/health-score/summary.
POST /reports/summary/product/chart-paging
Paginated product chart rows for the dashboard.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/product/chart-paging' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0,
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/product/chart-paging', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"limit": 0,
"page": 0
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/product/chart-paging",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0,
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/product/chart-paging');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
limit | number | Ha | Maximum number of rows to return. |
page | number | Ha | Page number, starting from 1. |
organization_id | string | Yo‘q | Organization ObjectId. |
warehouse_id | string | Yo‘q | |
product_id | string | Yo‘q | |
sort | object | Yo‘q | |
sort.name | integer | Yo‘q | Mumkin qiymatlar: 1, -1 |
is_product | boolean | Yo‘q | |
is_material | boolean | Yo‘q | |
is_semi_product | boolean | Yo‘q | |
search | string | Yo‘q | Free-text search. |
state | string | Yo‘q | Mumkin qiymatlar: canceled, done |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort": {
"name": 1
},
"is_product": false,
"is_material": false,
"is_semi_product": false,
"search": "string",
"state": "canceled"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/summary/debt/paging.
POST /reports/summary/product/get-summary
Aggregate product summary for the dashboard card.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/product/get-summary' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/product/get-summary', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/product/get-summary",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/product/get-summary');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
organization_id | string | Ha | Organization ObjectId. |
is_product | boolean | Yo‘q | |
is_material | boolean | Yo‘q | |
is_semi_product | boolean | Yo‘q |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"is_product": false,
"is_material": false,
"is_semi_product": false
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/customers/health-score/summary.
POST /reports/summary/sale/chart
Sale chart time series for the dashboard.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/summary/sale/chart' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/sale/chart', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/summary/sale/chart",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/summary/sale/chart');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
sale_type | string | Yo‘q | Mumkin qiymatlar: receipt, sale_contract, trade |
from_date | string (date-time) | Yo‘q | Start of the reporting window. |
to_date | string (date-time) | Yo‘q | End of the reporting window. |
field | string | Yo‘q | Metric the chart plots.. Mumkin qiymatlar: gross_sales, refund, discount, gift, net_sales, profit. Standart: "gross_sales" |
organization_id | string | Yo‘q | Organization ObjectId. |
type | string | Yo‘q | Mumkin qiymatlar: product, customer, employee, payment, category |
{
"sale_type": "receipt",
"from_date": "2025-05-01T12:00:00Z",
"to_date": "2025-05-01T12:00:00Z",
"field": "gross_sales",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"type": "product"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/customers/health-score/charts.
POST /reports/trade/customer/chart
Trade-by-customer chart time series for the dashboard.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/chart' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/chart', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/chart",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/chart');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
organization_id | string | Yo‘q | Organization ObjectId. |
customer_id | string | Ha | |
date_from | string (date-time) | Yo‘q | Start of the date range. |
date_to | string (date-time) | Yo‘q | End of the date range. |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/customers/health-score/charts.
POST /reports/trade/customer/health-score
Customer health-score rollup based on trade history.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/health-score' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/health-score', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/health-score",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/customer/health-score');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
organization_id | string | Yo‘q | Organization ObjectId. |
customer_id | string | Ha |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/customers/health-score/summary.
POST /reports/trade/price-deviation/paging
Paginated rows of trades where the sold price deviates from the configured price list.
Kerakli ruxsat: yo‘q — ruxsat e’lon qilgan ilova uchun yopiq · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/reports/trade/price-deviation/paging' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"limit": 0,
"page": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/price-deviation/paging', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"limit": 0,
"page": 0
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/reports/trade/price-deviation/paging",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"limit": 0,
"page": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"limit": 0,
"page": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/trade/price-deviation/paging');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY'), 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => $body,
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
limit | number | Ha | Maximum number of rows to return. |
page | number | Ha | Page number, starting from 1. |
organization_id | string | Yo‘q | Organization ObjectId. |
warehouse_id | string | Yo‘q | |
category_id | string | Yo‘q | |
product_id | string | Yo‘q | |
product_ids | string[] | Yo‘q | |
customer_id | string | Yo‘q | |
date_from | string (date-time) | Yo‘q | Start of the date range. |
date_to | string (date-time) | Yo‘q | End of the date range. |
sort | object | Yo‘q | |
sort.name | integer | Yo‘q | Mumkin qiymatlar: 1, -1 |
trade_state | string | Yo‘q | Mumkin qiymatlar: new, in_progress, canceled, done |
trade_states | string[] | Yo‘q | |
state | string | Yo‘q | Mumkin qiymatlar: canceled, done |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"customer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"sort": {
"name": 1
},
"trade_state": "new",
"trade_states": [
"new"
],
"state": "canceled"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/summary/debt/paging.
Bu sahifa OpenAPI spetsifikatsiyasidan yaratilgan.