Product
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 /product/create
This method allows adding product into the account.
Kerakli ruxsat: product_create · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/product/create' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"measure_id": "67b486d242ed76693cd2cc59",
"is_product": false,
"is_semi_product": false,
"is_material": false
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/product/create', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"name": "string",
"measure_id": "67b486d242ed76693cd2cc59",
"is_product": false,
"is_semi_product": false,
"is_material": false
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/product/create",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"name": "string",
"measure_id": "67b486d242ed76693cd2cc59",
"is_product": False,
"is_semi_product": False,
"is_material": False,
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"name": "string",
"measure_id": "67b486d242ed76693cd2cc59",
"is_product": false,
"is_semi_product": false,
"is_material": false
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/product/create');
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 |
|---|---|---|---|
name | string | Ha | |
note | string | Yo‘q | |
measure_id | string | Ha | id of measure unit |
category_id | string | Yo‘q | id of product categories |
box_type_id | string | Yo‘q | id of Box type |
box_item | number | Yo‘q | number of items that exist in one box Required when box_type_id is set.. Standart: 0 |
box_item_barcode | string | Yo‘q | id of box item's barcode |
sku | string | Yo‘q | local unique id of product |
barcode | string | Yo‘q | barcode of product |
supplier_ids | string[] | Yo‘q | list of supplier ids |
warehouse_number | string | Yo‘q | Product's location in the warehouse (aisle/shelf/bin label). Optional, free-form. |
image | string | Yo‘q | image path of product that uploaded to the server |
is_compound | boolean | Yo‘q | is compound product or not. Standart: false |
materials | object[] | Yo‘q | list of materials of product. required if is_compound is true |
materials[].material_id | string | Ha | |
materials[].amount | number | Ha | |
materials[].box_count | integer | Yo‘q | |
barcodes | object[] | Yo‘q | list of barcodes of product |
barcodes[].is_active | boolean | Ha | |
barcodes[].barcode | string | Ha | |
is_semi_product | boolean | Ha | is semi product or not. Standart: false |
is_product | boolean | Ha | is product or not. Standart: false |
is_material | boolean | Ha | is material or not. Standart: false |
is_marked | boolean | Yo‘q | is marked or not. Standart: false |
dimension | object | Yo‘q | dimension of product |
dimension.shape | string | Ha | Mumkin qiymatlar: circular, rectangular, other |
dimension.netto_weight | number | Ha | |
dimension.gross_weight | number | Ha | |
dimension.height | number | Yo‘q | Required when shape is circular or rectangular. |
dimension.volume | number | Ha | |
dimension.diameter | number | Yo‘q | Required when shape is circular or rectangular. |
dimension.width | number | Yo‘q | Required when shape is rectangular. |
dimension.length | number | Yo‘q | Required when shape is rectangular. |
is_variant | boolean | Yo‘q | is variant or not. Standart: false |
variants | object[] | Yo‘q | Required when is_variant is true. |
variants[].sku | string | Ha | |
variants[].barcode | string | Yo‘q | |
variants[].image | boolean | Yo‘q | |
variants[].organizations | object[] | Ha | |
variants[].organizations[].organization_id | string | Ha | |
variants[].organizations[].is_available | boolean | Ha | |
variants[].organizations[].max_stock | number | Yo‘q | |
variants[].organizations[].yellow_line | number | Yo‘q | |
variants[].organizations[].red_line | number | Yo‘q | |
variants[].organizations[].standard | number | Yo‘q | |
variants[].organizations[].is_available_for_sale | boolean | Yo‘q | |
variants[].organizations[].warehouses | object[] | Yo‘q | |
variants[].organizations[].prices | object[] | Yo‘q | |
variants[].organizations[].service_cost | number | Yo‘q | |
variants[].organizations[].service_cost_currency_id | string | Yo‘q | |
variants[].attributes | object[] | Ha | |
variants[].attributes[].attribute_id | string | Ha | |
variants[].attributes[].attribute_item_id | string | Ha | |
organizations | object[] | Yo‘q | Required unless is_variant is true. |
organizations[].organization_id | string | Ha | |
organizations[].is_available | boolean | Ha | |
organizations[].max_stock | number | Yo‘q | |
organizations[].yellow_line | number | Yo‘q | |
organizations[].red_line | number | Yo‘q | |
organizations[].standard | number | Yo‘q | |
organizations[].is_available_for_sale | boolean | Yo‘q | |
organizations[].prices | object[] | Yo‘q | list of prices with optional UOM prices |
organizations[].prices[].price_id | string | Ha | |
organizations[].prices[].amount | number | Yo‘q | |
organizations[].prices[].uom_prices | object[] | Yo‘q | |
organizations[].warehouses | object[] | Yo‘q | |
organizations[].warehouses[].warehouse_id | string | Ha | |
organizations[].warehouses[].max_stock | number | Yo‘q | |
organizations[].warehouses[].yellow_line | number | Yo‘q | |
organizations[].warehouses[].red_line | number | Yo‘q | |
organizations[].warehouses[].standard | number | Yo‘q | Standart: 10 |
organizations[].service_cost | number | Yo‘q | |
organizations[].service_cost_currency_id | string | Yo‘q | Required when service_cost is set. |
supplier_id | string | Yo‘q | |
max_stock | number | Yo‘q | |
images | string[] | Yo‘q | |
is_service | boolean | Yo‘q | Standart: false |
apply_tax | boolean | Yo‘q | Standart: false |
apply_discount | boolean | Yo‘q | Standart: false |
has_expiration | boolean | Yo‘q | Standart: false |
service_cost_id | string | Yo‘q | |
custom_fields | object | Yo‘q | Custom-field values. |
custom_fields._id | string | Ha | |
custom_fields.value | any | Yo‘q | Field value; its type depends on the custom field. |
is_parent | boolean | Yo‘q | |
measure_ratios | object[] | Yo‘q | |
measure_ratios[].measure_id | string | Ha | |
measure_ratios[].ratio | number | Ha | |
measure_ratios[].barcode | string | Yo‘q |
{
"name": "string",
"note": "string",
"measure_id": "67b486d242ed76693cd2cc59",
"category_id": "67b486d242ed76693cd2cc59",
"box_type_id": "67b486d242ed76693cd2cc59",
"box_item": 0,
"box_item_barcode": "string",
"sku": "string",
"barcode": "string",
"supplier_ids": [
"string"
],
"warehouse_number": "string",
"image": "string",
"is_compound": false,
"materials": [
{
"material_id": "67b486d242ed76693cd2cc59",
"amount": 0,
"box_count": 0
}
],
"barcodes": [
{
"is_active": false,
"barcode": "string"
}
],
"is_semi_product": false,
"is_product": false,
"is_material": false,
"is_marked": false,
"dimension": {
"shape": "circular",
"netto_weight": 0,
"gross_weight": 0,
"height": 0,
"volume": 0,
"diameter": 0,
"width": 0,
"length": 0
},
"is_variant": false,
"variants": [
{
"sku": "string",
"barcode": "string",
"image": false,
"organizations": [],
"attributes": []
}
],
"organizations": [
{
"organization_id": "67b486d242ed76693cd2cc59",
"is_available": false,
"max_stock": 0,
"yellow_line": 0,
"red_line": 0,
"standard": 0,
"is_available_for_sale": false,
"prices": [],
"warehouses": [],
"service_cost": 0,
"service_cost_currency_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
],
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"max_stock": 0,
"images": [
"string"
],
"is_service": false,
"apply_tax": false,
"apply_discount": false,
"has_expiration": false,
"service_cost_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"custom_fields": {
"_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"value": null
},
"is_parent": false,
"measure_ratios": [
{
"measure_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"ratio": 0,
"barcode": "string"
}
]
}Javob
| Maydon | Tur | Tavsif |
|---|---|---|
_id | string | id of product |
created_at | string | |
updated_at | string | |
name | string | |
number | string | |
note | string | |
box_item | number | |
box_item_barcode | string | |
box_type_id | string | |
box_type | object | |
box_type._id | string | |
box_type.code | string | |
box_type.short_name | string | |
box_type.name | string | |
measure | object | |
measure._id | string | |
measure.system_code | string | |
measure.code | string | |
measure.short_name | string | |
measure.name | string | |
measure.decimal_count | number | |
sku | string | |
barcode | string | |
barcodes | object[] | list of barcodes of product |
barcodes[].is_active | boolean | |
barcodes[].barcode | string | |
supplier_ids | string[] | list of supplier ids |
warehouse_number | string | Product's location in the warehouse (aisle/shelf/bin label). Absent when not set. |
image | string | image path of product that uploaded to the server |
materials | object[] | list of materials of product. required if is_compound is true |
materials[].material_id | string | |
materials[].amount | number | |
materials[].box_count | integer | |
materials[].material | object | |
materials[].material._id | string | |
materials[].material.name | string | |
materials[].material.sku | string | |
is_compound | boolean | is compound product or not |
is_marked | boolean | is marked or not |
is_product | boolean | is product or not. Standart: false |
is_material | boolean | is material or not. Standart: false |
is_semi_product | boolean | is semi product or not. Standart: false |
dimension | object | dimension of product |
dimension.shape | string | Mumkin qiymatlar: circular, rectangular, other |
dimension.netto_weight | number | |
dimension.gross_weight | number | |
dimension.height | number | |
dimension.volume | number | |
dimension.diameter | number | |
dimension.width | number | |
dimension.length | number | |
is_variant | boolean | is variant or not |
is_parent | boolean | is parent or not |
attributes | object[] | |
attributes[].attribute_id | string | |
attributes[].attribute_item_id | string | |
parent_id | string | id of parent product. it depends on variant product |
organizations | object[] | |
organizations[].organization_id | string | |
organizations[].is_available | boolean | |
organizations[].max_stock | number | |
organizations[].yellow_line | number | |
organizations[].red_line | number | |
organizations[].standard | number | |
organizations[].is_available_for_sale | boolean | |
organizations[].prices | object[] | list of prices with optional UOM prices |
organizations[].prices[].price_id | string | |
organizations[].prices[].amount | number | |
organizations[].prices[].uom_prices | object[] | |
tax_ids | string[] | list of tax ids |
discount_ids | string[] | list of discount ids |
category | object | |
category._id | string | |
category.name | string | |
custom_fields | object[] | |
custom_fields[]._id | string | |
custom_fields[].value | string |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"_id": "67b486d242ed76693cd2cc59",
"created_at": "2023-10-01T12:00:00Z",
"updated_at": "2023-10-01T12:00:00Z",
"name": "string",
"number": "string",
"note": "string",
"box_item": 0,
"box_item_barcode": "string",
"box_type_id": "67b486d242ed76693cd2cc59",
"box_type": {
"_id": "67b486d242ed76693cd2cc59",
"code": "string",
"short_name": "string",
"name": "string"
},
"measure": {
"_id": "67b486d242ed76693cd2cc59",
"system_code": "string",
"code": "string",
"short_name": "string",
"name": "string",
"decimal_count": 0
},
"sku": "string",
"barcode": "string",
"barcodes": [
{
"is_active": false,
"barcode": "string"
}
],
"supplier_ids": [
"string"
],
"warehouse_number": "string",
"image": "string",
"materials": [
{
"material_id": "67b486d242ed76693cd2cc59",
"amount": 0,
"box_count": 0,
"material": {
"_id": null,
"name": null,
"sku": null
}
}
],
"is_compound": false,
"is_marked": false,
"is_product": false,
"is_material": false,
"is_semi_product": false,
"dimension": {
"shape": "circular",
"netto_weight": 0,
"gross_weight": 0,
"height": 0,
"volume": 0,
"diameter": 0,
"width": 0,
"length": 0
},
"is_variant": false,
"is_parent": false,
"attributes": [
{
"attribute_id": "string",
"attribute_item_id": "string"
}
],
"parent_id": "67b486d242ed76693cd2cc59",
"organizations": [
{
"organization_id": "67b486d242ed76693cd2cc59",
"is_available": false,
"max_stock": 0,
"yellow_line": 0,
"red_line": 0,
"standard": 0,
"is_available_for_sale": false,
"prices": []
}
],
"tax_ids": [
"string"
],
"discount_ids": [
"string"
],
"category": {
"_id": "67b486d242ed76693cd2cc59",
"name": "string"
},
"custom_fields": [
{
"_id": "67b486d242ed76693cd2cc59",
"value": "string"
}
]
},
"time": "2025-05-01T12:00:00Z"
}PUT /product/update
This method allows updating product in the account.
Kerakli ruxsat: product_update · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X PUT 'https://api.bito.uz/integration-api/integration/api/v2/product/update' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"measure_id": "string",
"is_semi_product": false,
"is_product": false,
"is_material": false,
"_id": "string"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/product/update', {
method: 'PUT',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"name": "string",
"measure_id": "string",
"is_semi_product": false,
"is_product": false,
"is_material": false,
"_id": "string"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"PUT",
"https://api.bito.uz/integration-api/integration/api/v2/product/update",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"name": "string",
"measure_id": "string",
"is_semi_product": False,
"is_product": False,
"is_material": False,
"_id": "string",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"name": "string",
"measure_id": "string",
"is_semi_product": false,
"is_product": false,
"is_material": false,
"_id": "string"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/product/update');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'PUT',
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 |
|---|---|---|---|
_id | string | Ha | id of product |
name | string | Ha | |
measure_id | string | Ha | id of measure unit |
category_id | string | Yo‘q | id of product categories |
box_type_id | string | Yo‘q | id of Box type |
box_item | number | Yo‘q | number of items that exist in one box Required when box_type_id is set.. Standart: 0 |
box_item_barcode | string | Yo‘q | id of box item's barcode |
sku | string | Yo‘q | local unique id of product |
barcode | string | Yo‘q | barcode of product |
supplier_ids | string[] | Yo‘q | list of supplier ids |
warehouse_number | string | Yo‘q | Product's location in the warehouse (aisle/shelf/bin label). Optional, free-form. |
image | string | Yo‘q | image path of product that uploaded to the server |
materials | object[] | Yo‘q | list of materials of product. required if is_compound is true |
materials[].material_id | string | Ha | |
materials[].amount | number | Ha | |
materials[].box_count | integer | Yo‘q | |
barcodes | object[] | Yo‘q | list of barcodes of product |
barcodes[].is_active | boolean | Ha | |
barcodes[].barcode | string | Ha | |
is_semi_product | boolean | Ha | is semi product or not. Standart: false |
is_product | boolean | Ha | is product or not. Standart: false |
is_material | boolean | Ha | is material or not. Standart: false |
dimension | object | Yo‘q | dimension of product |
dimension.shape | string | Ha | Mumkin qiymatlar: circular, rectangular, other |
dimension.netto_weight | number | Ha | |
dimension.gross_weight | number | Ha | |
dimension.height | number | Yo‘q | Required when shape is circular or rectangular. |
dimension.volume | number | Ha | |
dimension.diameter | number | Yo‘q | Required when shape is circular or rectangular. |
dimension.width | number | Yo‘q | Required when shape is rectangular. |
dimension.length | number | Yo‘q | Required when shape is rectangular. |
variants | object[] | Yo‘q | list of variants of product. required if is_variant is true |
variants[]._id | string | Yo‘q | |
variants[].sku | string | Ha | |
variants[].barcode | string | Yo‘q | |
variants[].image | boolean | Yo‘q | |
variants[].organizations | object[] | Ha | |
variants[].organizations[].organization_id | string | Ha | |
variants[].organizations[].is_available | boolean | Ha | |
variants[].organizations[].max_stock | number | Yo‘q | |
variants[].organizations[].yellow_line | number | Yo‘q | |
variants[].organizations[].red_line | number | Yo‘q | |
variants[].organizations[].standard | number | Yo‘q | |
variants[].organizations[].is_available_for_sale | boolean | Yo‘q | |
variants[].organizations[].warehouses | object[] | Yo‘q | |
variants[].organizations[].prices | object[] | Yo‘q | |
variants[].organizations[].service_cost | number | Yo‘q | |
variants[].organizations[].service_cost_currency_id | string | Yo‘q | |
variants[].attributes | object[] | Ha | |
variants[].attributes[].attribute_id | string | Ha | |
variants[].attributes[].attribute_item_id | string | Ha | |
organizations | object[] | Yo‘q | Required unless is_variant is true. |
organizations[].organization_id | string | Ha | |
organizations[].is_available | boolean | Ha | |
organizations[].max_stock | number | Yo‘q | |
organizations[].yellow_line | number | Yo‘q | |
organizations[].red_line | number | Yo‘q | |
organizations[].standard | number | Yo‘q | |
organizations[].is_available_for_sale | boolean | Yo‘q | |
organizations[].prices | object[] | Yo‘q | list of prices with optional UOM prices |
organizations[].prices[].price_id | string | Ha | |
organizations[].prices[].amount | number | Yo‘q | |
organizations[].prices[].uom_prices | object[] | Yo‘q | |
organizations[].warehouses | object[] | Yo‘q | |
organizations[].warehouses[].warehouse_id | string | Ha | |
organizations[].warehouses[].max_stock | number | Yo‘q | |
organizations[].warehouses[].yellow_line | number | Yo‘q | |
organizations[].warehouses[].red_line | number | Yo‘q | |
organizations[].warehouses[].standard | number | Yo‘q | Standart: 10 |
organizations[].service_cost | number | Yo‘q | |
organizations[].service_cost_currency_id | string | Yo‘q | Required when service_cost is set. |
note | string | Yo‘q | |
supplier_id | string | Yo‘q | |
max_stock | number | Yo‘q | |
images | string[] | Yo‘q | |
is_service | boolean | Yo‘q | Standart: false |
apply_tax | boolean | Yo‘q | Standart: false |
apply_discount | boolean | Yo‘q | Standart: false |
service_cost_id | string | Yo‘q | |
custom_fields | object | Yo‘q | Custom-field values. |
custom_fields._id | string | Ha | |
custom_fields.value | any | Yo‘q | Field value; its type depends on the custom field. |
measure_ratios | object[] | Yo‘q | |
measure_ratios[].measure_id | string | Ha | |
measure_ratios[].ratio | number | Ha | |
measure_ratios[].barcode | string | Yo‘q |
{
"_id": "string",
"name": "string",
"measure_id": "string",
"category_id": "string",
"box_type_id": "string",
"box_item": 0,
"box_item_barcode": "string",
"sku": "string",
"barcode": "string",
"supplier_ids": [
"string"
],
"warehouse_number": "string",
"image": "string",
"materials": [
{
"material_id": "string",
"amount": 0,
"box_count": 0
}
],
"barcodes": [
{
"is_active": false,
"barcode": "string"
}
],
"is_semi_product": false,
"is_product": false,
"is_material": false,
"dimension": {
"shape": "circular",
"netto_weight": 0,
"gross_weight": 0,
"height": 0,
"volume": 0,
"diameter": 0,
"width": 0,
"length": 0
},
"variants": [
{
"_id": "string",
"sku": "string",
"barcode": "string",
"image": false,
"organizations": [],
"attributes": []
}
],
"organizations": [
{
"organization_id": "string",
"is_available": false,
"max_stock": 0,
"yellow_line": 0,
"red_line": 0,
"standard": 0,
"is_available_for_sale": false,
"prices": [],
"warehouses": [],
"service_cost": 0,
"service_cost_currency_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
],
"note": "string",
"supplier_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"max_stock": 0,
"images": [
"string"
],
"is_service": false,
"apply_tax": false,
"apply_discount": false,
"service_cost_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"custom_fields": {
"_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"value": null
},
"measure_ratios": [
{
"measure_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"ratio": 0,
"barcode": "string"
}
]
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /product/create.
DELETE /product/delete/{id}
Delete a product
Kerakli ruxsat: product_delete · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X DELETE 'https://api.bito.uz/integration-api/integration/api/v2/product/delete/6712f0a9c4d1e87b3a0f9911' \
-H "api-key: $BITO_API_KEY"const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/product/delete/6712f0a9c4d1e87b3a0f9911', {
method: 'DELETE',
headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"DELETE",
"https://api.bito.uz/integration-api/integration/api/v2/product/delete/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/product/delete/6712f0a9c4d1e87b3a0f9911');
curl_setopt_array($ch, [
CURLOPT_CUSTOMREQUEST => 'DELETE',
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
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": "ok",
"time": "2025-05-01T12:00:00Z"
}GET /product/get-by-id/{id}
Get product using its _id
Kerakli ruxsat: product · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/product/get-by-id/6712f0a9c4d1e87b3a0f9911' \
-H "api-key: $BITO_API_KEY"const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/product/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/product/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/product/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
Javob tuzilishi quyidagi bilan bir xil: POST /product/create.
POST /product/get-paging
Get products by paging
Kerakli ruxsat: product · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/product/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/product/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/product/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/product/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 |
organization_id | string | Yo‘q | |
is_main | boolean | Yo‘q | |
category_id | string | Yo‘q | |
is_archived | boolean | Yo‘q | |
is_compound | boolean | Yo‘q | |
is_semi_product | boolean | Yo‘q | |
is_product | boolean | Yo‘q | |
is_material | boolean | Yo‘q | |
updated_at | string | Yo‘q | ISO time format |
price_id | string | Yo‘q | Price list to fill each row's prices from. Prices come back only when organization_id is sent too. |
is_available_for_sale | boolean | Yo‘q | |
is_service | boolean | Yo‘q | |
has_expiration | boolean | Yo‘q | |
has_amount | boolean | Yo‘q | |
search | string | Yo‘q | Free-text search. |
{
"page": 1,
"limit": 20,
"organization_id": "string",
"is_main": false,
"category_id": "string",
"is_archived": false,
"is_compound": false,
"is_semi_product": false,
"is_product": false,
"is_material": false,
"updated_at": "string",
"price_id": "string",
"is_available_for_sale": false,
"is_service": false,
"has_expiration": false,
"has_amount": false,
"search": "string"
}Javob
data.total — jami yozuvlar soni, data.data[] — joriy sahifadagi yozuvlar. Quyidagi jadval bitta yozuvni tavsiflaydi.
| Maydon | Tur | Tavsif |
|---|---|---|
_id | string | id of product |
created_at | string | |
updated_at | string | |
name | string | |
number | string | |
note | string | |
box_item | number | |
box_item_barcode | string | |
box_type_id | string | |
box_type | object | |
box_type._id | string | |
box_type.code | string | |
box_type.short_name | string | |
box_type.name | string | |
measure | object | |
measure._id | string | |
measure.system_code | string | |
measure.code | string | |
measure.short_name | string | |
measure.name | string | |
measure.decimal_count | number | |
sku | string | |
barcode | string | |
barcodes | object[] | list of barcodes of product |
barcodes[].is_active | boolean | |
barcodes[].barcode | string | |
supplier_ids | string[] | list of supplier ids |
warehouse_number | string | Product's location in the warehouse (aisle/shelf/bin label). Absent when not set. |
image | string | image path of product that uploaded to the server |
materials | object[] | list of materials of product. required if is_compound is true |
materials[].material_id | string | |
materials[].amount | number | |
materials[].box_count | integer | |
materials[].material | object | |
materials[].material._id | string | |
materials[].material.name | string | |
materials[].material.sku | string | |
is_compound | boolean | is compound product or not |
is_marked | boolean | is marked or not |
is_product | boolean | is product or not. Standart: false |
is_material | boolean | is material or not. Standart: false |
is_semi_product | boolean | is semi product or not. Standart: false |
dimension | object | dimension of product |
dimension.shape | string | Mumkin qiymatlar: circular, rectangular, other |
dimension.netto_weight | number | |
dimension.gross_weight | number | |
dimension.height | number | |
dimension.volume | number | |
dimension.diameter | number | |
dimension.width | number | |
dimension.length | number | |
is_variant | boolean | is variant or not |
is_parent | boolean | is parent or not |
attributes | object[] | |
attributes[].attribute_id | string | |
attributes[].attribute_item_id | string | |
parent_id | string | id of parent product. it depends on variant product |
organizations | object[] | |
organizations[].organization_id | string | |
organizations[].is_available | boolean | |
organizations[].max_stock | number | |
organizations[].yellow_line | number | |
organizations[].red_line | number | |
organizations[].standard | number | |
organizations[].is_available_for_sale | boolean | |
organizations[].prices | object[] | list of prices with optional UOM prices |
organizations[].prices[].price_id | string | |
organizations[].prices[].amount | number | |
organizations[].prices[].uom_prices | object[] | |
tax_ids | string[] | list of tax ids |
discount_ids | string[] | list of discount ids |
category | object | |
category._id | string | |
category.name | string | |
custom_fields | object[] | |
custom_fields[]._id | string | |
custom_fields[].value | string |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"total": 0,
"data": [
{
"_id": "67b486d242ed76693cd2cc59",
"created_at": "2023-10-01T12:00:00Z",
"updated_at": "2023-10-01T12:00:00Z",
"name": "string",
"number": "string",
"note": "string",
"box_item": 0,
"box_item_barcode": "string",
"box_type_id": "67b486d242ed76693cd2cc59",
"box_type": {
"_id": "67b486d242ed76693cd2cc59",
"code": "string",
"short_name": "string",
"name": "string"
},
"measure": {
"_id": "67b486d242ed76693cd2cc59",
"system_code": "string",
"code": "string",
"short_name": "string",
"name": "string",
"decimal_count": 0
},
"sku": "string",
"barcode": "string",
"barcodes": [
{
"is_active": false,
"barcode": "string"
}
],
"supplier_ids": [
"string"
],
"warehouse_number": "string",
"image": "string",
"materials": [
{
"material_id": "67b486d242ed76693cd2cc59",
"amount": 0,
"box_count": 0,
"material": {
"_id": null,
"name": null,
"sku": null
}
}
],
"is_compound": false,
"is_marked": false,
"is_product": false,
"is_material": false,
"is_semi_product": false,
"dimension": {
"shape": "circular",
"netto_weight": 0,
"gross_weight": 0,
"height": 0,
"volume": 0,
"diameter": 0,
"width": 0,
"length": 0
},
"is_variant": false,
"is_parent": false,
"attributes": [
{
"attribute_id": "string",
"attribute_item_id": "string"
}
],
"parent_id": "67b486d242ed76693cd2cc59",
"organizations": [
{
"organization_id": "67b486d242ed76693cd2cc59",
"is_available": false,
"max_stock": 0,
"yellow_line": 0,
"red_line": 0,
"standard": 0,
"is_available_for_sale": false,
"prices": []
}
],
"tax_ids": [
"string"
],
"discount_ids": [
"string"
],
"category": {
"_id": "67b486d242ed76693cd2cc59",
"name": "string"
},
"custom_fields": [
{
"_id": "67b486d242ed76693cd2cc59",
"value": "string"
}
]
}
]
},
"time": "2025-05-01T12:00:00Z"
}GET /product/get-deleted
Get deleted product ids
Kerakli ruxsat: product · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/product/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/product/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/product/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/product/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"
}POST /product/get-paging/by-price
Paginated list of products with prices for a specific price list.
Kerakli ruxsat: product · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/product/get-paging/by-price' \
-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/product/get-paging/by-price', {
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/product/get-paging/by-price",
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/product/get-paging/by-price');
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 |
price_id | string | Yo‘q | Price list to fetch prices from. |
search | string | Yo‘q | |
is_main | boolean | Yo‘q | |
is_compound | boolean | Yo‘q | |
is_archived | boolean | Yo‘q | |
is_product | boolean | Yo‘q | |
is_semi_product | boolean | Yo‘q | |
is_service | boolean | Yo‘q | |
has_expiration | boolean | Yo‘q | |
is_material | boolean | Yo‘q | |
organization_id | string | Yo‘q | Organization ObjectId. |
category_id | string | Yo‘q | |
is_available_for_sale | boolean | Yo‘q | |
has_amount | boolean | Yo‘q | |
updated_at | string (date-time) | Yo‘q | Only records updated at or after this time. |
{
"page": 1,
"limit": 20,
"price_id": "string",
"search": "string",
"is_main": false,
"is_compound": false,
"is_archived": false,
"is_product": false,
"is_semi_product": false,
"is_service": false,
"has_expiration": false,
"is_material": false,
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"category_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"is_available_for_sale": false,
"has_amount": false,
"updated_at": "2025-05-01T12:00:00Z"
}Javob
| Maydon | Tur | Tavsif |
|---|---|---|
list | object[] | |
list[]._id | string | id of product |
list[].created_at | string | |
list[].updated_at | string | |
list[].name | string | |
list[].number | string | |
list[].note | string | |
list[].box_item | number | |
list[].box_item_barcode | string | |
list[].box_type_id | string | |
list[].box_type | object | |
list[].box_type._id | string | |
list[].box_type.code | string | |
list[].box_type.short_name | string | |
list[].box_type.name | string | |
list[].measure | object | |
list[].measure._id | string | |
list[].measure.system_code | string | |
list[].measure.code | string | |
list[].measure.short_name | string | |
list[].measure.name | string | |
list[].measure.decimal_count | number | |
list[].sku | string | |
list[].barcode | string | |
list[].barcodes | object[] | list of barcodes of product |
list[].barcodes[].is_active | boolean | |
list[].barcodes[].barcode | string | |
list[].supplier_ids | string[] | list of supplier ids |
list[].warehouse_number | string | Product's location in the warehouse (aisle/shelf/bin label). Absent when not set. |
list[].image | string | image path of product that uploaded to the server |
list[].materials | object[] | list of materials of product. required if is_compound is true |
list[].materials[].material_id | string | |
list[].materials[].amount | number | |
list[].materials[].box_count | integer | |
list[].materials[].material | object | |
list[].is_compound | boolean | is compound product or not |
list[].is_marked | boolean | is marked or not |
list[].is_product | boolean | is product or not. Standart: false |
list[].is_material | boolean | is material or not. Standart: false |
list[].is_semi_product | boolean | is semi product or not. Standart: false |
list[].dimension | object | dimension of product |
list[].dimension.shape | string | Mumkin qiymatlar: circular, rectangular, other |
list[].dimension.netto_weight | number | |
list[].dimension.gross_weight | number | |
list[].dimension.height | number | |
list[].dimension.volume | number | |
list[].dimension.diameter | number | |
list[].dimension.width | number | |
list[].dimension.length | number | |
list[].is_variant | boolean | is variant or not |
list[].is_parent | boolean | is parent or not |
list[].attributes | object[] | |
list[].attributes[].attribute_id | string | |
list[].attributes[].attribute_item_id | string | |
list[].parent_id | string | id of parent product. it depends on variant product |
list[].organizations | object[] | |
list[].organizations[].organization_id | string | |
list[].organizations[].is_available | boolean | |
list[].organizations[].max_stock | number | |
list[].organizations[].yellow_line | number | |
list[].organizations[].red_line | number | |
list[].organizations[].standard | number | |
list[].organizations[].is_available_for_sale | boolean | |
list[].organizations[].prices | object[] | list of prices with optional UOM prices |
list[].tax_ids | string[] | list of tax ids |
list[].discount_ids | string[] | list of discount ids |
list[].category | object | |
list[].category._id | string | |
list[].category.name | string | |
list[].custom_fields | object[] | |
list[].custom_fields[]._id | string | |
list[].custom_fields[].value | string | |
total | number |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"list": [
{
"_id": "67b486d242ed76693cd2cc59",
"created_at": "2023-10-01T12:00:00Z",
"updated_at": "2023-10-01T12:00:00Z",
"name": "string",
"number": "string",
"note": "string",
"box_item": 0,
"box_item_barcode": "string",
"box_type_id": "67b486d242ed76693cd2cc59",
"box_type": {
"_id": null,
"code": null,
"short_name": null,
"name": null
},
"measure": {
"_id": null,
"system_code": null,
"code": null,
"short_name": null,
"name": null,
"decimal_count": null
},
"sku": "string",
"barcode": "string",
"barcodes": [],
"supplier_ids": [],
"warehouse_number": "string",
"image": "string",
"materials": [],
"is_compound": false,
"is_marked": false,
"is_product": false,
"is_material": false,
"is_semi_product": false,
"dimension": {
"shape": null,
"netto_weight": null,
"gross_weight": null,
"height": null,
"volume": null,
"diameter": null,
"width": null,
"length": null
},
"is_variant": false,
"is_parent": false,
"attributes": [],
"parent_id": "67b486d242ed76693cd2cc59",
"organizations": [],
"tax_ids": [],
"discount_ids": [],
"category": {
"_id": null,
"name": null
},
"custom_fields": []
}
],
"total": 0
},
"time": "2025-05-01T12:00:00Z"
}POST /product/get-by-name
Find a product by its exact name.
Kerakli ruxsat: product · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/product/get-by-name' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"price_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/product/get-by-name', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"name": "string",
"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/product/get-by-name",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"name": "string",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"price_id": "64b7f4d9e2b3b6a0b7c5d7ff",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"name": "string",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"price_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/product/get-by-name');
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 |
|---|---|---|---|
name | string | Yo‘q | |
organization_id | string | Yo‘q | Organization ObjectId. |
price_id | string | Yo‘q |
{
"name": "string",
"organization_id": "64b7f4d9e2b3b6a0b7c5d7ff",
"price_id": "64b7f4d9e2b3b6a0b7c5d7ff"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /product/create.
POST /product/get-by-barcode
Find a product by its barcode within an organization.
Kerakli ruxsat: product · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/product/get-by-barcode' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"barcode": "string",
"organization_id": "string"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/product/get-by-barcode', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"barcode": "string",
"organization_id": "string"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/product/get-by-barcode",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"barcode": "string",
"organization_id": "string",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"barcode": "string",
"organization_id": "string"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/product/get-by-barcode');
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 |
|---|---|---|---|
barcode | string | Ha | barcode of product to look up |
organization_id | string | Ha | organization ObjectId to scope the lookup |
{
"barcode": "string",
"organization_id": "string"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /product/create.
POST /product/get-by-sku
Find a product by its SKU within an organization.
Kerakli ruxsat: product · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/product/get-by-sku' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"sku": "string",
"organization_id": "string"
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/product/get-by-sku', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"sku": "string",
"organization_id": "string"
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/product/get-by-sku",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"sku": "string",
"organization_id": "string",
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"sku": "string",
"organization_id": "string"
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/product/get-by-sku');
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 |
|---|---|---|---|
sku | string | Ha | local unique id (SKU) of product to look up |
organization_id | string | Ha | organization ObjectId to scope the lookup |
{
"sku": "string",
"organization_id": "string"
}Javob
Javob tuzilishi quyidagi bilan bir xil: POST /product/create.
POST /product/delete-many
Soft-delete multiple products by their ObjectIds. Each product is marked is_deleted=true; no physical deletion occurs. Products that are currently in stock, in transit, on-the-way, or booked cannot be deleted and will return an error.
Kerakli ruxsat: product_delete · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/product/delete-many' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"ids": [
"string"
]
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/product/delete-many', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"ids": [
"string"
]
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/product/delete-many",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"ids": [
"string",
],
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"ids": [
"string"
]
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/product/delete-many');
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 |
|---|---|---|---|
ids | string[] | Ha | List of product ObjectIds to soft-delete |
{
"ids": [
"string"
]
}Javob
Javob tuzilishi quyidagi bilan bir xil: GET /product/get-deleted.
POST /product/update-status-many
Archive or unarchive multiple products by their ObjectIds. Set is_archived=true to archive, false to unarchive. Archived products remain visible but are excluded from active product lookups by default.
Kerakli ruxsat: product_update · ruxsatlar qanday ishlaydi
So‘rov namunasi
curl -X POST 'https://api.bito.uz/integration-api/integration/api/v2/product/update-status-many' \
-H "api-key: $BITO_API_KEY" \
-H 'Content-Type: application/json' \
-d '{
"ids": [
"string"
]
}'const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/product/update-status-many', {
method: 'POST',
headers: { 'api-key': process.env.BITO_API_KEY, 'Content-Type': 'application/json' },
body: JSON.stringify({
"ids": [
"string"
]
}),
})
const { code, data } = await res.json()import os
import requests
res = requests.request(
"POST",
"https://api.bito.uz/integration-api/integration/api/v2/product/update-status-many",
headers={"api-key": os.environ["BITO_API_KEY"]},
json={
"ids": [
"string",
],
},
)
print(res.json())<?php
$body = <<<'JSON'
{
"ids": [
"string"
]
}
JSON;
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/product/update-status-many');
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 |
|---|---|---|---|
ids | string[] | Ha | List of product ObjectIds to archive or unarchive |
is_archived | boolean | Yo‘q | true to archive the products, false to unarchive them. Defaults to true when omitted. |
{
"ids": [
"string"
],
"is_archived": false
}Javob
Javob tuzilishi quyidagi bilan bir xil: GET /product/get-deleted.
Bu sahifa OpenAPI spetsifikatsiyasidan yaratilgan.