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.
GET /warehouse/get-by-id/{id}
Get warehouse using its _id
Kerakli ruxsat: warehouse · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-by-id/6712f0a9c4d1e87b3a0f9911' \
-H "api-key: $BITO_API_KEY"const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-by-id/6712f0a9c4d1e87b3a0f9911', {
method: 'GET',
headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"GET",
"https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-by-id/6712f0a9c4d1e87b3a0f9911",
headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-by-id/6712f0a9c4d1e87b3a0f9911');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);Yo‘l parametrlari
| Parametr | Tur | Majburiy | Tavsif |
|---|---|---|---|
id | string | Ha |
So‘rov tanasi
So‘rov tanasi talab qilinmaydi.
Javob
| Maydon | Tur | Tavsif |
|---|---|---|
name | string | |
code | string | |
is-main | boolean | |
status | string | Mumkin qiymatlar: active, inactive |
order_number | number | |
note | string | |
shape | string | Mumkin qiymatlar: rectangle, circular, other |
height | number | |
width | number | |
length | number | |
diameter | number | |
volume | number | |
address | string | |
recommended_temperature | number | |
recommended_humidity | number | |
coordinates | object | |
coordinates.lat | number | |
coordinates.long | number | |
updated_by | string | |
is_default | boolean | |
updated_by_user | object | |
updated_by_user._id | string | |
updated_by_user.full_name | string | |
created_by_user | object | |
created_by_user._id | string | |
created_by_user.full_name | string | |
responsible_employee | object | |
responsible_employee._id | string | |
responsible_employee.full_name | string | |
created_at | string (date-time) | |
updated_at | string (date-time) | |
organization | object | |
organization._id | string | |
organization.name | string | |
warehouse_type | object | |
warehouse_type._id | string | |
warehouse_type.name | string | |
warehouse_type.order_number | number | |
warehouse_type.status | string | Mumkin qiymatlar: active, inactive |
warehouse_type.is_default | boolean |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"name": "string",
"code": "string",
"is-main": false,
"status": "active",
"order_number": 0,
"note": "string",
"shape": "rectangle",
"height": 0,
"width": 0,
"length": 0,
"diameter": 0,
"volume": 0,
"address": "string",
"recommended_temperature": 0,
"recommended_humidity": 0,
"coordinates": {
"lat": 0,
"long": 0
},
"updated_by": "string",
"is_default": false,
"updated_by_user": {
"_id": "string",
"full_name": "string"
},
"created_by_user": {
"_id": "string",
"full_name": "string"
},
"responsible_employee": {
"_id": "string",
"full_name": "string"
},
"created_at": "2025-05-01T12:00:00Z",
"updated_at": "2025-05-01T12:00:00Z",
"organization": {
"_id": "string",
"name": "string"
},
"warehouse_type": {
"_id": "string",
"name": "string",
"order_number": 0,
"status": "active",
"is_default": false
}
},
"time": "2025-05-01T12:00:00Z"
}POST /warehouse/get-paging
Get warehouse by paging
Kerakli ruxsat: warehouse · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-paging' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"page": 1,
"limit": 20
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-paging', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"page": 1,
"limit": 20
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-paging",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"page": 1,
"limit": 20,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"page": 1,
"limit": 20
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/warehouse/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 |
|---|---|---|---|
page | number | Ha | Standart: 1 |
limit | number | Ha | Standart: 20 |
search | string | Yo‘q | |
organization_id | string | Yo‘q | |
is_main | boolean | Yo‘q | |
status | string | Yo‘q | Mumkin qiymatlar: active, inactive |
updated_at | string (date-time) | Yo‘q | Only records updated at or after this time. |
{
"page": 1,
"limit": 20,
"search": "string",
"organization_id": "64b7f4d9e2b3b6a0b7c5d800",
"is_main": false,
"status": "active",
"updated_at": "2025-05-01T12:00:00Z"
}Javob
data.total — jami yozuvlar soni, data.data[] — joriy sahifadagi yozuvlar. Quyidagi jadval bitta yozuvni tavsiflaydi.
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"total": 0,
"data": []
},
"time": "2025-05-01T12:00:00Z"
}POST /warehouse/get-all
Get all warehouses
Kerakli ruxsat: warehouse · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-all' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"organization_id": "64b7f4d9e2b3b6a0b7c5d800",
"is_main": false,
"status": "active"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-all', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"organization_id": "64b7f4d9e2b3b6a0b7c5d800",
"is_main": false,
"status": "active"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-all",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"organization_id": "64b7f4d9e2b3b6a0b7c5d800",
"is_main": False,
"status": "active",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d800",
"is_main": false,
"status": "active"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-all');
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 | |
is_main | boolean | Yo‘q | |
status | string | Yo‘q | Mumkin qiymatlar: active, inactive |
{
"organization_id": "64b7f4d9e2b3b6a0b7c5d800",
"is_main": false,
"status": "active"
}Javob
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": [],
"time": "2025-05-01T12:00:00Z"
}GET /warehouse/get-deleted
Get deleted warehouse ids
Kerakli ruxsat: warehouse · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-deleted?deleted_at=DELETED_AT' \
-H "api-key: $BITO_API_KEY"const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-deleted?deleted_at=DELETED_AT', {
method: 'GET',
headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"GET",
"https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-deleted?deleted_at=DELETED_AT",
headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/warehouse/get-deleted?deleted_at=DELETED_AT');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);So‘rov parametrlari
| Parametr | Tur | Majburiy | Tavsif |
|---|---|---|---|
deleted_at | string | Ha |
So‘rov tanasi
So‘rov tanasi talab qilinmaydi.
Javob
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": [
"string"
],
"time": "2025-05-01T12:00:00Z"
}Bu sahifa OpenAPI spetsifikatsiyasidan yaratilgan.