Report warehouse
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/in-stock/get
Current in-stock summary across selected warehouses.
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/in-stock/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/in-stock/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/in-stock/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/in-stock/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);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
date_from | string (date-time) | Yo‘q | Start of the date range. |
date_to | string (date-time) | Yo‘q | End of the date range. |
is_product | boolean | Yo‘q | |
is_material | boolean | Yo‘q | |
is_semi_product | boolean | Yo‘q | |
organization_ids | string[] | Yo‘q | Organization ObjectIds. |
organization_id | string | Yo‘q | Organization ObjectId. |
category_id | string | Yo‘q | |
warehouse_ids | string[] | Yo‘q | |
product_ids | string[] | Yo‘q | |
page | number | Ha | Page number, starting from 1. |
limit | number | Ha | Maximum number of rows to return. |
search | string | Yo‘q | Free-text search. |
{
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"is_product": false,
"is_material": false,
"is_semi_product": false,
"organization_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"warehouse_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"page": 0,
"limit": 0,
"search": "string"
}Javob
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {},
"time": "2025-05-01T12:00:00Z"
}POST /reports/items/warehouse
Per-item stock levels by warehouse.
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/items/warehouse' \
-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/items/warehouse', {
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/items/warehouse",
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/items/warehouse');
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. |
{
"limit": 0,
"page": 0,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}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/transfer/get-items
Items moved via warehouse transfers in the reporting window.
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/transfer/get-items' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"transfer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"page": 0,
"limit": 0
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/reports/transfer/get-items', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"transfer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"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/transfer/get-items",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"transfer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"page": 0,
"limit": 0,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"transfer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"page": 0,
"limit": 0
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/reports/transfer/get-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);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
transfer_id | string | Ha | |
product_id | string | Yo‘q | |
product_ids | string[] | Yo‘q | |
page | number | Ha | Page number, starting from 1. |
limit | number | Ha | Maximum number of rows to return. |
search | string | Yo‘q | Free-text search. |
organization_id | string | Yo‘q | Organization ObjectId. |
{
"transfer_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"page": 0,
"limit": 0,
"search": "string",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/items/warehouse.
POST /reports/transfer/get-paging
Paginated list of warehouse transfers.
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/transfer/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/transfer/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/transfer/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/transfer/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);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
type | string | Yo‘q | Mumkin qiymatlar: w2w, w2p, p2w, p2p, o2o |
source_organization_id | string | Yo‘q | |
destination_organization_id | string | Yo‘q | |
sender_warehouse_id | string | Yo‘q | |
receiver_warehouse_id | string | Yo‘q | |
states | string[] | Yo‘q | |
reason_id | string | Yo‘q | |
responsible_id | string | Yo‘q | |
page | number | Ha | Page number, starting from 1. |
limit | number | Ha | Maximum number of rows to return. |
search | string | Yo‘q | Free-text search. |
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 | string | Yo‘q | Organization ObjectId. |
sort_by | string | Yo‘q | Field name to sort by. |
asc | integer | Yo‘q | Sort direction: 1 ascending, -1 descending.. Mumkin qiymatlar: -1, 1 |
{
"type": "w2w",
"source_organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"destination_organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sender_warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"receiver_warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"states": [
"new"
],
"reason_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"responsible_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"page": 0,
"limit": 0,
"search": "string",
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"sort_by": "string",
"asc": -1
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/items/warehouse.
POST /reports/write-off/by-reason/get-paging
Write-offs grouped by reason (damaged, expired, lost, etc.).
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/write-off/by-reason/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/write-off/by-reason/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/write-off/by-reason/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/write-off/by-reason/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);So‘rov tanasi
| Maydon | Tur | Majburiy | Tavsif |
|---|---|---|---|
warehouse_id | string | Yo‘q | |
reason_id | string | Yo‘q | |
product_id | string | Yo‘q | |
product_ids | string[] | Yo‘q | |
page | number | Ha | Page number, starting from 1. |
limit | number | Ha | Maximum number of rows to return. |
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 | string | Yo‘q | Organization ObjectId. |
{
"warehouse_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"reason_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"product_ids": [
"64b7f4d9e2b3b6a0b7c5d7ff"
],
"page": 0,
"limit": 0,
"date_from": "2025-05-01T12:00:00Z",
"date_to": "2025-05-01T12:00:00Z",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /reports/items/warehouse.
Bu sahifa OpenAPI spetsifikatsiyasidan yaratilgan.