Kechiktirilgan sotuvlar ro'yxati / Qoralamalar ro'yxati
const url = 'https://api-admin.billz.ai/v2/order-notes?page=1&limit=5&shop_id=803b542d-51e5-41ea-9124-51f248536286&start_total_price=0&end_total_price=0&order_park_status=active%2Cexpired&shift_id=0&future_time_is_null=false';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/order-notes?page=1&limit=5&shop_id=803b542d-51e5-41ea-9124-51f248536286&start_total_price=0&end_total_price=0&order_park_status=active%2Cexpired&shift_id=0&future_time_is_null=false' \ --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'limiQuery Parameters
“Query Parameters” bo'limiSahifa raqami; raqam bo’lmagan qiymat -> 400
Example
1Sahifa hajmi
Example
5Do’kon; bo’sh bo’lmagan qiymat UUID bo’lishi shart
Example
803b542d-51e5-41ea-9124-51f248536286Kassir
Sotuvchi
To’lov turi (birlik son)
Chek summasi (dan)
Chek summasi (gacha)
Active, expired, completed; bo’sh bo’lsa va future_time_is_null=false — uchala holat ham qo’yiladi
Example
[ "active", "expired"]Kassa
Smena; shift_id>0 va cashbox_id berilgan bo’lsa, smenaning ochilish/yopilish sanalari bo’yicha filtr qo’llaniladi
Sotuv id si, mijoz yoki foydalanuvchi bo’yicha qidiruv
Yaratilgan sana (dan boshlab)
Yaratilgan sana (gacha)
SALE, RETURN, EXCHANGE
Satr, bool emas: “false” qiymati barcha park-holatlarning qo’yilishini yoqadi
Example
falseInventarizatsiya do’koni
Oxirgi yangilanish sanasi bo’yicha filtrlash
Header Parameters
“Header Parameters” bo'limiPlatforma identifikatori. Integratsiyalar uchun statik qiymat ishlatiladi.
Responses
“Responses” bo'limiMuvaffaqiyatli javob
object
Yozuvlarning umumiy soni
Sotuvlar ro’yxati
object
Sotuv id si
Asosiy sotuv (qaytarishda)
Kompaniya id si
Sotuv raqami
Sotuv holati
Tafsilotlar: customer, user, cashbox_name, cashbox_id, cashbox_history_id, shift_id, shop_id, shop, total_price, discount_value, discount_unit, has_discount, total_measurement_value, version_number, comment, created_at, created_at_utc, order_items, order_payments, with_cashback, returned_cashback, loyalty, gift_card_payment, is_authorized, has_certificate, has_voucher, promo_codes, without_cashback, user_has_auth_role, offline_order_validation_status, applied_on_cart, auth_client_cashback_withdrawal, has_payment_token, payment_token, rounding_operations
object
object
object
object
object
SALE / RETURN / EXCHANGE
Yaratilgan sana
O’chirilgan sana (epoch)
Yaratilgan sana UTC
Kechiktirilgan sotuv vaqti
Qarz
Mijoz
Ota sotuv qarzi
O’chirilganlik belgisi
Kim o’chirgan
O’chirgan shaxsning ismi
Webkassa loglari soni
EPOS loglari soni
Fiskal loglar
Haqiqiy yakunlanish
Ko’rsatiladigan tugash
Sotuv sanasi
Ko’rsatiladigan sotuv sanasi
Ko’rsatiladigan o’chirish sanasi
Qarz bo’yicha to’lovlar
Kechiktirilgan sotuv holati
Almashtirish taqiqlangan
Zanjir bo’yicha qarz qoldig’i
SoftPOS orqali to’lov qoldig’i
Yangilanish sanasi
Sug’urta bor
Sug’urta
Examplegenerated
{ "count": 1, "orders": [ { "id": "example", "parent_id": "example", "company_id": "example", "order_number": "example", "order_status": "example", "order_detail": { "customer": {}, "user": { "id": "example", "name": "example", "first_name": "example", "last_name": "example" }, "cashbox_name": "example", "cashbox_id": "example", "cashbox_history_id": "example", "shift_id": 1, "shop_id": "example", "shop": { "id": "example", "name": "example" }, "total_price": 1, "has_discount": true, "total_products_measurement_value": 1, "total_sets_measurement_value": 1, "total_services_measurement_value": 1, "total_returned_measurement_value": 1, "comment": "example", "created_at": "example", "created_at_utc": "example", "with_cashback": 1, "returned_cashback": 1, "loyalty_balance_income": 1, "loyalty_balance_outcome": 1, "loyalty_payment": 1, "not_loyalty_payment": 1, "gift_card_payment": 1, "is_authorized": true, "has_certificate": true, "has_voucher": true, "promo_codes": [ "example" ], "without_cashback": true, "user_has_auth_role": true, "offline_order_validation_status": 1, "applied_on_cart": true, "auth_client_cashback_withdrawal": true, "has_payment_token": true, "payment_token": "example", "rounding_operations": [ {} ] }, "order_type": "example", "created_at": "example", "deleted_at": 1, "created_at_utc": "example", "future_time": "example", "debt": "example", "customer_id": "example", "parent_order_debt": "example", "deleted": true, "deleted_by_user_id": "example", "deleted_by_user_name": "example", "webkassa_log_qty": 1, "epos_log_qty": 1, "epos_logs": [ "example" ], "finished_at": "example", "display_finished_at": "example", "sold_at": "example", "display_sold_at": "example", "display_deleted_at": "example", "order_debt_payments": [ "example" ], "park_status": "example", "exchange_disabled": true, "total_remaining_debt_in_chain": 1, "total_remaining_softpos_payment": 1, "updated_at": "example", "has_insurance": true, "insurance": "example", "is_calculated": true } ]}