Mahsulotlar ro'yxati
const url = 'https://api-admin.billz.ai/v2/supplier-order-products/example?page=1&limit=10&status=added';const options = { method: 'GET', headers: { 'platform-id': '7d4a4c38-dd84-4902-b744-0488b80a4c01', Authorization: 'Bearer <token>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api-admin.billz.ai/v2/supplier-order-products/example?page=1&limit=10&status=added' \ --header 'Authorization: Bearer <token>' \ --header 'platform-id: 7d4a4c38-dd84-4902-b744-0488b80a4c01'Xato kodlari: 400 — kiruvchi ma’lumotlar validatsiya xatosi; 404 — obyekt topilmadi; 401, 403, 429, 500 — barcha metodlar uchun umumiy. Tana formatlari va semantikasi: Javob kodlari va xatolar.
Authorizations
“Authorizations” bo'limiParameters
“Parameters” bo'limiPath Parameters
“Path Parameters” bo'limiYetkazib beruvchiga buyurtma ID si
Query Parameters
“Query Parameters” bo'limiKo’pi bilan 1000, aks holda 400
Example
1Ko’pi bilan 1000
Example
10Parametrsiz — barcha pozitsiyalar. Ruxsat etilgan qiymatlar: added, small_left, zero_left, ordered_before; qolganlari — 400 «invalid status»
Example
addedQidiruv; ko’pi bilan 100 belgi
Qaytarish buyurtmasi identifikatori; uzatilganda qaytarishlar tanlanadi
Saralash maydoni
asc yoki desc; faqat sort_field bilan birga qo’llaniladi
Header Parameters
“Header Parameters” bo'limiPlatforma identifikatori. Integratsiyalar uchun statik qiymat ishlatiladi.
Responses
“Responses” bo'limiMuvaffaqiyatli javob
object
object
Kompaniya identifikatori
Mahsulot
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
object
Ulgurji narx
Qiymat bo’sh bo’lsa, javobda bo’lmaydi
object
Examplegenerated
{ "items": [ { "id": "example", "supplier_order_id": "example", "company_id": "example", "product_id": "example", "old_retail_price": 1, "old_supply_price": 1, "retail_price": 1, "supply_price": 1, "ordered_measurement_value": 1, "small_left_measurement_value": 1, "product": { "id": "example", "company_id": "example", "name": "example", "sku": "example", "barcode": "example", "additional_barcodes": [ {} ], "measurement_values": { "total_measurement_value": 1, "total_active_measurement_value": 1, "total_inactive_measurement_value": 1 }, "measurement_unit": { "id": "example", "name": "example", "company_id": "example", "short_name": "example", "precision": "example", "is_editable": true, "is_default": true }, "shop_measurement_values": [ { "small_left_measurement_value": 1, "has_trigger": true, "shop_id": "example", "total_measurement_value": 1, "total_min_supply_price": 1, "total_max_supply_price": 1, "total_supply_sum": 1, "total_active_measurement_value": 1, "total_active_min_supply_price": 1, "total_active_max_supply_price": 1, "total_active_supply_sum": 1, "total_inactive_measurement_value": 1, "total_inactive_min_supply_price": 1, "total_inactive_max_supply_price": 1, "total_inactive_supply_sum": 1, "total_sold_measurement_value": 1, "total_imported_measurement_value": 1, "total_transfer_arrived_measurement_value": 1, "total_transfered_measurement_value": 1, "total_in_transfer_measurement_value": 1, "total_in_transfer_min_supply_price": 1, "total_in_transfer_max_supply_price": 1, "total_in_transfer_supply_sum": 1, "total_written_off_measurement_value": 1, "import_started_measurement_value": 1, "is_small_left": true, "total_retail_sum": 1, "total_active_retail_sum": 1, "total_inactive_retail_sum": 1 } ], "shop_prices": [ { "shop_id": "example", "retail_price": 1, "retail_currency": "example", "supply_currency": "example", "min_supply_price": 1, "max_supply_price": 1, "supply_price": 1, "wholesale_price": 1, "min_price": 1, "max_price": 1, "prices_list": [ 1 ], "from_supply_price": 1, "currency_prices": [ { "currency": "example", "retail_price": 1, "min_supply_price": 1, "max_supply_price": 1, "supply_price": 1, "wholesale_price": 1, "min_price": 1, "max_price": 1, "prices_list": [ 1 ] } ], "promo_price": 1, "promos": [ {} ], "retail_price_created_at": "example", "supply_price_created_at": "example" } ], "prices": { "total_supply_price": 1, "total_retail_price": 1, "total_active_supply_price": 1, "total_active_retail_price": 1, "total_inactive_supply_price": 1, "total_inactive_retail_price": 1 }, "product_type_id": "example", "created_at": "example", "updated_at": "example", "base_name": "example", "archived_at": "example", "archived_by": { "id": "example", "name": "example" }, "product_supplier_stock": [ { "supplier_id": "example", "supplier_name": "example", "shop_id": "example", "measurement_value": 1, "min_supply_price": 1, "max_supply_price": 1, "retail_price": 1, "wholesale_price": 1 } ], "product_supply_stock": [ { "shop_id": "example", "shop_name": "example", "measurement_value": 1, "active_measurement_value": 1, "inactive_measurement_value": 1, "supply_price": 1, "supplier_ids": [ "example" ] } ], "status": 1, "scale_plu": 1, "scale_code": 1, "is_scalable": true, "shop_free_prices": [ { "shop_id": "example", "sell_with_free_price": true } ], "sort": [ "example" ], "cash_sale": 1, "description": "example", "categories": [ { "id": "example", "name": "example", "parent_id": "example", "all_parent_ids": [ "example" ], "subRows": [ { "id": "example", "name": "example", "parent_id": "example", "all_parent_ids": [ "example" ], "subRows": [], "product_count": 1, "company_id": "example", "is_open": true, "level_number": 1, "from_parent": true, "deleted_at": 1, "super_parent_id": "example" } ], "product_count": 1, "company_id": "example", "is_open": true, "level_number": 1, "from_parent": true, "super_parent_id": "example", "deleted_at": 1 } ], "custom_fields": [ { "custom_field_name": "example", "custom_field_system_name": "example", "custom_field_id": "example", "custom_field_value": "example", "from_parent": true } ], "brand_id": "example", "brand_name": "example" }, "updated_at": "example", "updated_at_int": 1, "selected_measurement_value": 1, "total_ordered_measurement_value": 1, "free_price": true, "returned_measurement_value": 1, "left_measurement_value": 1, "ordered": 1, "total_measurement_value_to_return": 1, "to_return_amount": 1, "product_info": "example", "wholesale_price": 1 } ], "count": 1, "product_ids": [ "example" ], "statistics_by_status": { "total_measurement_value": 1, "small_left_count": 1, "zero_left_count": 1, "ordered_before_count": 1 }}