Skip to content

Kassa smenalari ​

Savdo kassasidagi kassir smenasi: maydalash puli bilan ochish, smena davomida kassadan xarajatlar va har bir to‘lov turi hamda valyuta bo‘yicha pulni sanab yopish. Kassir o‘z smenalarini va o‘zi biriktirilgan kassalarning smenalarini ko‘radi (biriktirilgan kassirlar istalgan qurilmadan kassaning umumiy smenasida ishlaydi), direktor esa kompaniyaning barcha smenalarini ko‘radi.

MetodManzilVazifasi
GET/company/trade/cashbox-shift/currentKassirning joriy smenasi
GET/company/trade/cashbox-shift/stats«Kassa smenalari» kartochkalari
GET/company/trade/cashbox-shift/expense-reasonsSmena xarajat turlari
POST/company/trade/cashbox-shift/expense-reasonsXarajat turini qo‘shish
PATCH/company/trade/cashbox-shift/{model}/closeSmenani yopish
POST/company/trade/cashbox-shift/{model}/expenseKassadan xarajat
PATCH/company/trade/cashbox-shift/{model}/collection-return/{collectionReturn}/acknowledgeInkassatsiya qaytarilishini tasdiqlash
GET/company/trade/cashbox-shiftSmenalar ro‘yxati
GET/company/trade/cashbox-shift/{model}Smena tafsilotlari
POST/company/trade/cashbox-shiftSmenani ochish

Kassirning joriy smenasi ​

Joriy foydalanuvchining ochiq smenasi datada — o‘ziniki, u bo‘lmasa o‘zi biriktirilgan kassada ochilgani (smena bo‘lmasa null) va kompaniyaning smena qoidalari settingsda. Smenada closes_in keladi — ish vaqti tugashiga necha soniya qolgani (tugagandan keyin manfiy, cheklov bo‘lmasa null). collection_returns — smena kassasiga qaytgan, kassir hali «OK» tugmasi bilan tasdiqlamagan rad etilgan inkassatsiyalar (har bir inkassatsiyaga bittadan: collection_id, kim rad etgan, to‘lov turi va valyuta bo‘yicha qatorlar); smena bo‘lmasa bo‘sh massiv.

GET/company/trade/cashbox-shift/current

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

Javob · 200 ​

Javob maydonlari
MaydonTuriTavsif
datanullMa'lumotlar
settingsobjectSozlamalar
settings.is_enabledbooleanYoqilgan
settings.is_working_hours_enabledbooleanSmenaning ish vaqti
settings.working_hours_fromstringIsh vaqti boshlanishi
settings.working_hours_tostringIsh vaqti tugashi
settings.is_round_the_clockboolean24 soatlik smena
settings.overdue_actionstringVaqt tugaganda
pos_layoutobject
pos_layout.is_catalog_enabledbooleanKatalog
pos_layout.is_quick_panel_enabledbooleanTezkor panel
manual_discountsobject
manual_discounts.quick_discountsarray
manual_discounts.is_limitedboolean
manual_discounts.max_percentnull
collection_returnsarray
json
{
    "data": null,
    "settings": {
        "is_enabled": true,
        "is_working_hours_enabled": false,
        "working_hours_from": "09:00",
        "working_hours_to": "21:00",
        "is_round_the_clock": false,
        "overdue_action": "remind"
    },
    "pos_layout": {
        "is_catalog_enabled": true,
        "is_quick_panel_enabled": true
    },
    "manual_discounts": {
        "quick_discounts": [
            15,
            30
        ],
        "is_limited": false,
        "max_percent": null
    },
    "collection_returns": []
}

«Kassa smenalari» kartochkalari ​

«Kassaga tushdi», «Kassadan chiqdi», «Ochilish summasi» va «Joriy smena» valyutalar bo‘yicha, naqd (cash) va naqdsiz (non_cash, qolgan barcha to‘lov turlari) alohida. Davr berilmasa hozir ochiq smenalar hisoblanadi; filter[opened_at] bilan «Tushdi» / «Chiqdi» shu davrda yopilgan smenalarni ham qo‘shadi.

GET/company/trade/cashbox-shift/stats

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

So‘rov parametrlari ​

MaydonTuriMajburiyTavsif
filterarrayYo‘q
filter.company_idstringYo‘qKompaniya
filter.cashbox_idintegerYo‘qKassa
filter.opened_atstringYo‘q

Javob · 200 ​

Javob maydonlari
MaydonTuriTavsif
incomeobjectDaromad
income.cashobject
income.cash.uzsinteger
income.cash.usdinteger
income.non_cashobject
income.non_cash.uzsinteger
income.non_cash.usdinteger
outcomeobject
outcome.cashobject
outcome.cash.uzsinteger
outcome.cash.usdinteger
outcome.non_cashobject
outcome.non_cash.uzsinteger
outcome.non_cash.usdinteger
openingobject
opening.cashobject
opening.cash.uzsinteger
opening.cash.usdinteger
currentobject
current.cashobject
current.cash.uzsinteger
current.cash.usdinteger
current.non_cashobject
current.non_cash.uzsinteger
current.non_cash.usdinteger
json
{
    "income": {
        "cash": {
            "uzs": 700,
            "usd": 0
        },
        "non_cash": {
            "uzs": 300,
            "usd": 0
        }
    },
    "outcome": {
        "cash": {
            "uzs": 200,
            "usd": 0
        },
        "non_cash": {
            "uzs": 0,
            "usd": 0
        }
    },
    "opening": {
        "cash": {
            "uzs": 1500,
            "usd": 0
        }
    },
    "current": {
        "cash": {
            "uzs": 2000,
            "usd": 0
        },
        "non_cash": {
            "uzs": 3300,
            "usd": 0
        }
    }
}

Smena xarajat turlari ​

Kassadan xarajat o‘tkazish mumkin bo‘lgan kompaniyaning «Xarajat» moddalari: daraxtning oxirgi moddalari va ichki moddasi yo‘q yuqori darajadagi moddalar. Har biri parent ota guruhi bilan.

GET/company/trade/cashbox-shift/expense-reasons

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

Javob · 200 ​

Javob maydonlari
MaydonTuriTavsif
dataobject[]Ma'lumotlar
data[].idintegerID
data[].namestringNomlanish
data[].parentobjectOta yozuv
data[].parent.idintegerID
data[].parent.namestringNomlanish
json
{
    "data": [
        {
            "id": 838,
            "name": "Обед",
            "parent": {
                "id": 3,
                "name": "Transaction reason 2"
            }
        },
        {
            "id": 839,
            "name": "Транспорт",
            "parent": null
        }
    ]
}

Xarajat turini qo‘shish ​

«Kassadan xarajatlar» guruhida ko‘rsatilgan nomdagi «Xarajat» moddasini yaratadi (guruh kerak bo‘lsa yaratiladi). Shu nomdagi modda allaqachon bo‘lsa, o‘sha qaytariladi — takror yaratilmaydi.

POST/company/trade/cashbox-shift/expense-reasons

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

So‘rov tanasi ​

MaydonTuriMajburiyTavsif
namestringHaNomlanish. Maks. 255 belgi
json
{
    "name": "Такси"
}
bash
curl -X POST "https://api.wasyt.uz/company/trade/cashbox-shift/expense-reasons" \
  -H "Accept: application/json" \
  -H "Accept-Language: ru" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"name":"Такси"}'

Javob · 200 ​

Javob maydonlari
MaydonTuriTavsif
idintegerID
namestringNomlanish
parentobjectOta yozuv
parent.idintegerID
parent.namestringNomlanish
json
{
    "id": 841,
    "name": "Такси",
    "parent": {
        "id": 840,
        "name": "Расходы из кассы"
    }
}

Smenani yopish ​

Ochiq smenani actuals sanalgan summalari bo‘yicha yopadi (ko‘rsatilmagan qator kutilganiga teng deb olinadi). Istalgan qatordagi farq closing_commentni talab qiladi va kassada kirim yoki chiqim sifatida o‘tkaziladi. closing_action: keep — hammasi kassada qoladi, transfer_all — hammasi inkassatsiya bilan asosiy kassaga o‘tadi, transfer_part — kassada leave_amountsdagi naqd pul qoladi (sanalganidan ko‘p emas). Smenaning yakuniy raqamlari muzlatiladi.

PATCH/company/trade/cashbox-shift/{model}/close

Formadan (multipart/form-data) PATCH metodi POST + ?_method=PATCH parametri bilan yuboriladi.

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

Yo‘l parametrlari ​

ParametrTavsif
modelYozuv ID si

So‘rov tanasi ​

MaydonTuriMajburiyTavsif
actualsobject[]Yo‘qHaqiqiy summalar. Maks. 50 ta element
actuals[].payment_typestringHaTo'lov turi. Mumkin qiymatlar: cash, card, bank
actuals[].payment_type_idintegerYo‘qTo‘lov usuli
actuals[].currencystringHaValyuta. Mumkin qiymatlar: uzs, usd, eur, rub
actuals[].amountnumberHaHaqiqatda. Verguldan keyin 2 tagacha raqam. Kamida -999999999999.99. 999999999999.99 dan oshmasin
closing_actionstringHaYopishdagi amal. Mumkin qiymatlar: keep, transfer_all, transfer_part
leave_amountsobject[]Yo‘qQoldiq summasi. Maks. 20 ta element
leave_amounts[].currencystringHaValyuta. Takrorlanmasin. Mumkin qiymatlar: uzs, usd, eur, rub
leave_amounts[].amountnumberHaQoldiq summasi. Verguldan keyin 2 tagacha raqam. Kamida 0. 999999999999.99 dan oshmasin
closing_commentstringYo‘qKassa smenasiga izoh. Maks. 1000 belgi
json
{
    "actuals": [
        {
            "payment_type": "cash",
            "currency": "uzs",
            "amount": 1000
        },
        {
            "payment_type": "card",
            "currency": "uzs",
            "amount": 3000
        },
        {
            "payment_type": "bank",
            "currency": "uzs",
            "amount": 0
        }
    ],
    "closing_action": "keep"
}
bash
curl -X PATCH "https://api.wasyt.uz/company/trade/cashbox-shift/15/close" \
  -H "Accept: application/json" \
  -H "Accept-Language: ru" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"actuals":[{"payment_type":"cash","currency":"uzs","amount":1000},{"payment_type":"card","currency":"uzs","amount":3000},{"payment_type":"bank","currency":"uzs","amount":0}],"closing_action":"keep"}'

Javob · 200 ​

Javob maydonlari
MaydonTuriTavsif
idintegerID
creator_idintegerYaratuvchi
company_idintegerKompaniya
cashbox_idintegerKassa
stock_idintegerOmbor
closed_by_idinteger
collection_idnull
statusstringStatus
opening_balancesobject[]
opening_balances[].amountintegerSumma
opening_balances[].currencystringValyuta
opening_balances[].payment_typestringTo'lov turi
opening_amountintegerOchilish summasi
opening_currencynullOchilish valyutasi
opening_commentnullIzoh
opening_transaction_idinteger
closing_transaction_idinteger
closing_actionstringYopishdagi amal
closing_commentnullKassa smenasiga izoh
summaryobject
summary.currencystringValyuta
summary.rowsobject[]
summary.rows[].payment_typestringTo'lov turi
summary.rows[].payment_type_idnullTo‘lov usuli
summary.rows[].payment_type_namenull
summary.rows[].currencystringValyuta
summary.rows[].opening_balanceinteger
summary.rows[].closed_incomeinteger
summary.rows[].closed_outcomeinteger
summary.rows[].opening_amountintegerOchilish summasi
summary.rows[].openinginteger
summary.rows[].incomeintegerDaromad
summary.rows[].outcomeinteger
summary.rows[].expectedinteger
summary.rows[].by_sourcearray
summary.rows[].actualinteger
summary.rows[].differenceinteger
summary.rows[].transferredinteger
summary.rows[].leftinteger
summary.totalsobject[]
summary.totals[].currencystringValyuta
summary.totals[].closed_incomeinteger
summary.totals[].closed_outcomeinteger
summary.totals[].openinginteger
summary.totals[].incomeintegerDaromad
summary.totals[].outcomeinteger
summary.totals[].expectedinteger
summary.totals[].actualinteger
summary.totals[].differenceinteger
summary.totals[].transferredinteger
summary.totals[].leftinteger
summary.totals[].opening_cashinteger
summary.totals[].cashinteger
summary.totals[].non_cashinteger
summary.checks_countinteger7 kunda cheklar
summary.returns_countintegerQaytarishlar (dona)
summary.debtsarray
summary.transactionsarrayTranzaksiya
summary.closed_transactionsarray
summary.collection_returnsarray
opened_atstring
closes_atnull
overdue_actionnullVaqt tugaganda
closed_atstring
created_atstringYaratilgan
updated_atstringYangilangan
companyobjectKompaniya
company.idintegerID
company.parent_idnullOta-ona
company.partner_idintegerHamkor
company.district_idintegerTuman
company.industry_idintegerFaoliyat turlari
company.namestringNomlanish
company.company_namestringKompaniya
company.logoobjectLogotip
company.logo.originalobject
company.logo.original.rawstring
company.logo.original.webpstring
company.logo.widen_25object
company.logo.widen_25.rawstring
company.logo.widen_25.webpstring
company.logo.widen_100object
company.logo.widen_100.rawstring
company.logo.widen_100.webpstring
company.logo.widen_500object
company.logo.widen_500.rawstring
company.logo.widen_500.webpstring
company.innstringINN
company.mfostringMFO
company.addressstringManzil
company.latitudenullKenglik
company.longitudenullUzunlik
company.commentstringIzoh
company.telegram_phonestringTelegramdagi telefon
company.director_full_namestringDirektorning FISH
company.bankstringBank
company.payment_accountstringTo'lov hisob raqami
company.agreement_numberstringShartnoma raqami
company.agreement_datenull
company.atmos_terminal_idintegerAtmos Terminalining ID raqami
company.uniaccess_auto_payment_credit_overdue_daysinteger
company.uniaccess_branch_idintegerUniaccess branch ID
company.field_of_activitystringFaoliyat yo‘nalishi
company.vat_percentstringQQS (%)
company.is_using_new_my_uzcard_auto_payment_by_pinflbooleanYangi MyUzcard PINFL bo'yicha avtomatik yechib olish uchun foydalanish
company.bonus_entry_periodintegerBonuslar hisob davri (oylarda)
company.abc_segment_ainteger
company.abc_segment_binteger
company.abc_segment_cinteger
company.is_pos_window_enabledboolean
company.is_multi_currency_saleboolean
company.cashbox_shift_settingsobject
company.cashbox_shift_settings.is_enabledbooleanYoqilgan
company.pos_layout_settingsnull
company.manual_discount_settingsnull
company.is_manual_sale_priceboolean
company.wholesale_settingsnull
company.product_settingsnull
company.has_bank_payment_typeboolean
company.payment_type_namesnull
json
{
    "id": 15,
    "creator_id": 2,
    "company_id": 1,
    "cashbox_id": 2,
    "stock_id": 1,
    "closed_by_id": 2,
    "collection_id": null,
    "status": "closed",
    "opening_balances": [
        {
            "amount": 1000,
            "currency": "uzs",
            "payment_type": "cash"
        },
        {
            "amount": 3000,
            "currency": "uzs",
            "payment_type": "card"
        }
    ],
    "opening_amount": 0,
    "opening_currency": null,
    "opening_comment": null,
    "opening_transaction_id": 0,
    "closing_transaction_id": 0,
    "closing_action": "keep",
    "closing_comment": null,
    "summary": {
        "currency": "uzs",
        "rows": [
            {
                "payment_type": "cash",
                "payment_type_id": null,
                "payment_type_name": null,
                "currency": "uzs",
                "opening_balance": 1000,
                "closed_income": 0,
                "closed_outcome": 0,
                "opening_amount": 0,
                "opening": 1000,
                "income": 0,
                "outcome": 0,
                "expected": 1000,
                "by_source": [],
                "actual": 1000,
                "difference": 0,
                "transferred": 0,
                "left": 1000
            },
            {
                "payment_type": "card",
                "payment_type_id": null,
                "payment_type_name": null,
                "currency": "uzs",
                "opening_balance": 3000,
                "closed_income": 0,
                "closed_outcome": 0,
                "opening_amount": 0,
                "opening": 3000,
                "income": 0,
                "outcome": 0,
                "expected": 3000,
                "by_source": [],
                "actual": 3000,
                "difference": 0,
                "transferred": 0,
                "left": 3000
            }
        ],
        "totals": [
            {
                "currency": "uzs",
                "closed_income": 0,
                "closed_outcome": 0,
                "opening": 4000,
                "income": 0,
                "outcome": 0,
                "expected": 4000,
                "actual": 4000,
                "difference": 0,
                "transferred": 0,
                "left": 4000,
                "opening_cash": 1000,
                "cash": 1000,
                "non_cash": 3000
            },
            {
                "currency": "usd",
                "closed_income": 0,
                "closed_outcome": 0,
                "opening": 0,
                "income": 0,
                "outcome": 0,
                "expected": 0,
                "actual": 0,
                "difference": 0,
                "transferred": 0,
                "left": 0,
                "opening_cash": 0,
                "cash": 0,
                "non_cash": 0
            }
        ],
        "checks_count": 0,
        "returns_count": 0,
        "debts": [],
        "transactions": [],
        "closed_transactions": [],
        "collection_returns": []
    },
    "opened_at": "2026-11-25 16:49:32",
    "closes_at": null,
    "overdue_action": null,
    "closed_at": "2026-11-25 16:49:32",
    "created_at": "2026-11-25 16:49:32",
    "updated_at": "2026-11-25 16:49:32",
    "company": {
        "id": 1,
        "parent_id": null,
        "partner_id": 1,
        "district_id": 1,
        "industry_id": 1,
        "name": "Company 1",
        "company_name": "Company 1",
        "logo": {
            "original": {
                "raw": "https://api.wasyt.uz/test_data/images/1.png",
                "webp": "https://api.wasyt.uz/storage/thumbs/original/cac08f877f130e3c368a053b62984ee51778568717.webp"
            },
            "widen_25": {
                "raw": "https://api.wasyt.uz/storage/thumbs/widen/25/cac08f877f130e3c368a053b62984ee51778568717.png",
                "webp": "https://api.wasyt.uz/storage/thumbs/widen/25/cac08f877f130e3c368a053b62984ee51778568717.webp"
            },
            "widen_100": {
                "raw": "https://api.wasyt.uz/storage/thumbs/widen/100/cac08f877f130e3c368a053b62984ee51778568717.png",
                "webp": "https://api.wasyt.uz/storage/thumbs/widen/100/cac08f877f130e3c368a053b62984ee51778568717.webp"
            },
            "widen_500": {
                "raw": "https://api.wasyt.uz/storage/thumbs/widen/500/cac08f877f130e3c368a053b62984ee51778568717.png",
                "webp": "https://api.wasyt.uz/storage/thumbs/widen/500/cac08f877f130e3c368a053b62984ee51778568717.webp"
            }
        },
        "inn": "000000001",
        "mfo": "00001",
        "address": "Address 1",
        "latitude": null,
        "longitude": null,
        "comment": "Comment 1",
        "telegram_phone": "998000000001",
        "director_full_name": "Director 1",
        "bank": "Bank 1",
        "payment_account": "00000000000000000001",
        "agreement_number": "001/2026",
        "agreement_date": null,
        "atmos_terminal_id": 97007302,
        "uniaccess_auto_payment_credit_overdue_days": 3,
        "uniaccess_branch_id": 1,
        "field_of_activity": "trading",
        "vat_percent": "12.00",
        "is_using_new_my_uzcard_auto_payment_by_pinfl": true,
        "bonus_entry_period": 12,
        "abc_segment_a": 75,
        "abc_segment_b": 15,
        "abc_segment_c": 10,
        "is_pos_window_enabled": true,
        "is_multi_currency_sale": false,
        "cashbox_shift_settings": {
            "is_enabled": true
        },
        "pos_layout_settings": null,
        "manual_discount_settings": null,
        "is_manual_sale_price": false,
        "wholesale_settings": null,
        "product_settings": null,
        "has_bank_payment_type": false,
        "payment_type_names": null,
        "is_ican_turned_on": true,
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:43:30",
        "is_deleted": false,
        "parent": null,
        "director": {
            "id": 2,
            "type": "director",
            "role_id": 2,
            "company_id": 1,
            "partner_id": null,
            "username": "director_1@local.host",
            "pinfl": null,
            "phone": "998020000001",
            "sipuni_sip_number": "210",
            "is_confirmed": true,
            "are_all_companies_available": false,
            "last_login_at": null,
            "created_at": "2026-11-25 16:42:00",
            "updated_at": "2026-11-25 16:42:00",
            "is_deleted": false,
            "profile": {
                "first_name": null,
                "last_name": null,
                "position": null,
                "birth_date": null,
                "gender": null,
                "is_discount_limited": false,
                "max_item_discount_percent": null,
                "max_check_discount_percent": null,
                "is_device_limited": true,
                "max_devices": 2,
                "is_mobile_login_allowed": true,
                "last_device_number": 0,
                "full_name": " "
            }
        }
    },
    "creator": {
        "id": 2,
        "type": "director",
        "role_id": 2,
        "company_id": 1,
        "partner_id": null,
        "username": "director_1@local.host",
        "pinfl": null,
        "phone": "998020000001",
        "sipuni_sip_number": "210",
        "is_confirmed": true,
        "are_all_companies_available": false,
        "last_login_at": null,
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:42:00",
        "is_deleted": false,
        "profile": {
            "first_name": null,
            "last_name": null,
            "position": null,
            "birth_date": null,
            "gender": null,
            "is_discount_limited": false,
            "max_item_discount_percent": null,
            "max_check_discount_percent": null,
            "is_device_limited": true,
            "max_devices": 2,
            "is_mobile_login_allowed": true,
            "last_device_number": 0,
            "full_name": " "
        }
    },
    "closed_by": {
        "id": 2,
        "type": "director",
        "role_id": 2,
        "company_id": 1,
        "partner_id": null,
        "username": "director_1@local.host",
        "pinfl": null,
        "phone": "998020000001",
        "sipuni_sip_number": "210",
        "is_confirmed": true,
        "are_all_companies_available": false,
        "last_login_at": null,
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:42:00",
        "is_deleted": false,
        "profile": {
            "first_name": null,
            "last_name": null,
            "position": null,
            "birth_date": null,
            "gender": null,
            "is_discount_limited": false,
            "max_item_discount_percent": null,
            "max_check_discount_percent": null,
            "is_device_limited": true,
            "max_devices": 2,
            "is_mobile_login_allowed": true,
            "last_device_number": 0,
            "full_name": " "
        }
    },
    "cashbox": {
        "id": 2,
        "creator_id": 2,
        "company_id": 1,
        "name": "Cashbox 2",
        "type": "sale",
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:42:00",
        "is_deleted": false
    },
    "stock": {
        "id": 1,
        "creator_id": 2,
        "company_id": 1,
        "name": "Stock 1",
        "is_available": true,
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:42:00",
        "is_deleted": false
    },
    "collection": null
}

Xato misoli · 422 ​

json
{
    "message": "Есть расхождение — укажите причину в комментарии",
    "errors": {
        "closing_comment": [
            "Есть расхождение — укажите причину в комментарии"
        ]
    }
}

Kassadan xarajat ​

Ochiq smena kassasidan mavjud transaction_reason_id moddasi yoki reason_name nomi bilan berilgan yangi modda bo‘yicha xarajat o‘tkazadi (yangi «Xarajat» moddasi yaratiladi). Yaratilgan kassa operatsiyasini qaytaradi; yopiq smenada — 400 xato.

POST/company/trade/cashbox-shift/{model}/expense

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

Yo‘l parametrlari ​

ParametrTavsif
modelYozuv ID si

So‘rov tanasi ​

MaydonTuriMajburiyTavsif
transaction_reason_idintegerreason_name yuborilmasaXarajat turi. Foydalanuvchiga ochiq mavjud yozuv ID si
reason_namestringtransaction_reason_id yuborilmasaXarajat nomi. Maks. 255 belgi
reason_parent_idintegerYo‘qXarajat guruhi. Foydalanuvchiga ochiq mavjud yozuv ID si
payment_typestringHaTo'lov turi. Mumkin qiymatlar: cash, card, bank
currencystringHaValyuta. Mumkin qiymatlar: uzs, usd, eur, rub
amountnumberHaSumma. Verguldan keyin 2 tagacha raqam. Kamida 0.01. 999999999999.99 dan oshmasin
commentstringYo‘qIzoh. Maks. 1000 belgi
json
{
    "transaction_reason_id": 833,
    "payment_type": "cash",
    "currency": "uzs",
    "amount": 200,
    "comment": "Обед сотрудникам"
}
bash
curl -X POST "https://api.wasyt.uz/company/trade/cashbox-shift/75/expense" \
  -H "Accept: application/json" \
  -H "Accept-Language: ru" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"transaction_reason_id":833,"payment_type":"cash","currency":"uzs","amount":200,"comment":"Обед сотрудникам"}'

Javob · 200 ​

Javob maydonlari
MaydonTuriTavsif
additionalobject
additional.balances_afterobject
additional.balances_after.cardobject
additional.balances_after.card.uzsstring
additional.balances_after.cashobject
additional.balances_after.cash.uzsstring
additional.on_hold_afterarray
source_dataobject
source_data.cashbox_shift_idinteger
cashbox_idintegerKassa
typestringTuri
payment_typestringTo'lov turi
currencystringValyuta
amountintegerSumma
statusstringStatus
source_typestringManba
source_idintegerManba
commentstringIzoh
updated_atstringYangilangan
created_atstringYaratilgan
company_idintegerKompaniya
creator_idintegerYaratuvchi
idintegerID
cashboxobjectKassa
cashbox.idintegerID
cashbox.creator_idintegerYaratuvchi
cashbox.company_idintegerKompaniya
cashbox.namestringNomlanish
cashbox.typestringTuri
cashbox.created_atstringYaratilgan
cashbox.updated_atstringYangilangan
cashbox.is_deletedbooleanO‘chirilgan
sourcenull
contract_numbernullShartnoma raqami
json
{
    "additional": {
        "balances_after": {
            "card": {
                "uzs": "3000.00"
            },
            "cash": {
                "uzs": "800.00"
            }
        },
        "on_hold_after": []
    },
    "source_data": {
        "cashbox_shift_id": 75
    },
    "cashbox_id": 2,
    "type": "outcome",
    "payment_type": "cash",
    "currency": "uzs",
    "amount": 200,
    "status": "completed",
    "source_type": "reason",
    "source_id": 833,
    "comment": "Обед сотрудникам",
    "updated_at": "2026-11-25 16:50:08",
    "created_at": "2026-11-25 16:50:08",
    "company_id": 1,
    "creator_id": 2,
    "id": 604,
    "cashbox": {
        "id": 2,
        "creator_id": 2,
        "company_id": 1,
        "name": "Cashbox 2",
        "type": "sale",
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:42:00",
        "is_deleted": false
    },
    "source": null,
    "contract_number": null
}

Inkassatsiya qaytarilishini tasdiqlash ​

Kassir «Inkassatsiya rad etildi» bildirishnomasida «OK» tugmasini bosdi: belgi (acknowledged_at, kim tasdiqlagan) qaytarishda saqlanadi va bildirishnoma boshqa ko‘rsatilmaydi — qayta yuklangandan keyin ham, boshqa qurilmada ham. Qayta tasdiqlash hech narsani o‘zgartirmaydi. Qaytarish smena kassasiga tegishli bo‘lishi kerak, aks holda 404.

PATCH/company/trade/cashbox-shift/{model}/collection-return/{collectionReturn}/acknowledge

Formadan (multipart/form-data) PATCH metodi POST + ?_method=PATCH parametri bilan yuboriladi.

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

Yo‘l parametrlari ​

ParametrTavsif
modelYozuv ID si
collectionReturnCollection Return

Javob · 200 ​

Javob maydonlari
MaydonTuriTavsif
dataobjectMa'lumotlar
data.idintegerID
data.collection_idinteger
data.is_while_closedboolean
data.commentstringIzoh
data.creatorobject
data.creator.idintegerID
data.creator.usernamestringLogin
data.creator.profileobject
data.creator.profile.first_namenullIsm
data.creator.profile.last_namenullFamiliya
data.itemsobject[]Tarkib
data.items[].payment_typestringTo'lov turi
data.items[].currencystringValyuta
data.items[].amountintegerSumma
data.created_atstringYaratilgan
data.acknowledged_atstring
json
{
    "data": {
        "id": 8,
        "collection_id": 20,
        "is_while_closed": false,
        "comment": "Закрытие кассовой смены №41",
        "creator": {
            "id": 2,
            "username": "director_1@local.host",
            "profile": {
                "first_name": null,
                "last_name": null
            }
        },
        "items": [
            {
                "payment_type": "cash",
                "currency": "uzs",
                "amount": 1000
            },
            {
                "payment_type": "card",
                "currency": "uzs",
                "amount": 3000
            }
        ],
        "created_at": "2026-11-25 16:49:49",
        "acknowledged_at": "2026-11-25 16:49:49"
    }
}

Smenalar ro‘yxati ​

Kassir smenalari, sahifada 15 tadan ko‘p emas, har biri figuresda valyutalar bo‘yicha yakunlar bilan (naqd ochilish summasi, kirimlar, chiqimlar, kutilgan naqd va naqdsiz, yopiqda — haqiqiy va farq). filter[search] raqam, kassa va filial bo‘yicha qidiradi, filter[is_latest]=1 har bir kassaning oxirgi smenasini qoldiradi, filter[discrepancy] — with (farq bilan yopilganlar) yoki without (qolganlari); counts — har bir tabdagi smenalar soni, is_shift_enabled — kompaniyada smenalar yoqilganmi. Kassir faqat o‘z smenalarini, direktor — kompaniyaning barcha smenalarini ko‘radi.

GET/company/trade/cashbox-shift

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

So‘rov parametrlari ​

ParametrTavsif
filter[id]ID — aniq qiymat
filter[creator_id]Yaratuvchi — aniq qiymat
filter[company_id]Kompaniya — bitta qiymat yoki ro‘yxat filter[company_id][]
filter[cashbox_id]Kassa — aniq qiymat
filter[stock_id]Ombor — aniq qiymat
filter[status]Status — bitta qiymat yoki ro‘yxat filter[status][]
filter[opened_at]davr: [0] — dan, [1] — gacha (Y-m-d)
filter[closed_at]davr: [0] — dan, [1] — gacha (Y-m-d)
sort[]Saralash, - — kamayish bo‘yicha: id, -id, opened_at, -opened_at, closed_at, -closed_at
with[]Bog‘liq ma’lumotlarni qo‘shish: creator.profile, closed_by.profile, company, company.director.profile, cashbox, stock, collection
pageSahifa raqami, 1 dan
page-sizeSahifadagi yozuvlar soni, ko‘pi bilan 15
http
GET /company/trade/cashbox-shift?sort[0]=-id

Javob · 200 ​

Sahifalangan javob: yozuvlar data[] ichida, sahifalash links va meta da.

Javob maydonlari
MaydonTuriTavsif
dataobject[]Ma'lumotlar
data[].idintegerID
data[].creator_idintegerYaratuvchi
data[].company_idintegerKompaniya
data[].cashbox_idintegerKassa
data[].stock_idintegerOmbor
data[].closed_by_idnull
data[].collection_idnull
data[].statusstringStatus
data[].opening_balancesobject[]
data[].opening_balances[].amountintegerSumma
data[].opening_balances[].currencystringValyuta
data[].opening_balances[].payment_typestringTo'lov turi
data[].opening_amountintegerOchilish summasi
data[].opening_currencynullOchilish valyutasi
data[].opening_commentnullIzoh
data[].opening_transaction_idinteger
data[].closing_transaction_idnull
data[].closing_actionnullYopishdagi amal
data[].closing_commentnullKassa smenasiga izoh
data[].opened_atstring
data[].closes_atnull
data[].overdue_actionnullVaqt tugaganda
data[].closed_atnull
data[].created_atstringYaratilgan
data[].updated_atstringYangilangan
data[].figuresobject[]
data[].figures[].currencystringValyuta
data[].figures[].closed_incomeinteger
data[].figures[].closed_outcomeinteger
data[].figures[].openinginteger
data[].figures[].incomeintegerDaromad
data[].figures[].outcomeinteger
data[].figures[].expectedinteger
data[].figures[].opening_cashinteger
data[].figures[].cashinteger
data[].figures[].non_cashinteger
data[].figures[].refundsinteger
data[].figures[].expensesinteger
data[].companyobjectKompaniya
data[].company.idintegerID
data[].company.parent_idnullOta-ona
data[].company.partner_idintegerHamkor
data[].company.district_idintegerTuman
data[].company.industry_idintegerFaoliyat turlari
data[].company.namestringNomlanish
data[].company.company_namestringKompaniya
data[].company.logoobjectLogotip
data[].company.logo.originalobject
data[].company.logo.original.rawstring
data[].company.logo.original.webpstring
data[].company.logo.widen_25object
data[].company.logo.widen_25.rawstring
data[].company.logo.widen_25.webpstring
data[].company.logo.widen_100object
data[].company.logo.widen_100.rawstring
data[].company.logo.widen_100.webpstring
data[].company.logo.widen_500object
data[].company.logo.widen_500.rawstring
data[].company.logo.widen_500.webpstring
data[].company.innstringINN
data[].company.mfostringMFO
data[].company.addressstringManzil
data[].company.latitudenullKenglik
data[].company.longitudenullUzunlik
data[].company.commentstringIzoh
data[].company.telegram_phonestringTelegramdagi telefon
data[].company.director_full_namestringDirektorning FISH
data[].company.bankstringBank
data[].company.payment_accountstringTo'lov hisob raqami
data[].company.agreement_numberstringShartnoma raqami
data[].company.agreement_datenull
data[].company.atmos_terminal_idintegerAtmos Terminalining ID raqami
data[].company.uniaccess_auto_payment_credit_overdue_daysinteger
data[].company.uniaccess_branch_idintegerUniaccess branch ID
data[].company.field_of_activitystringFaoliyat yo‘nalishi
data[].company.vat_percentstringQQS (%)
data[].company.is_using_new_my_uzcard_auto_payment_by_pinflbooleanYangi MyUzcard PINFL bo'yicha avtomatik yechib olish uchun foydalanish
data[].company.bonus_entry_periodintegerBonuslar hisob davri (oylarda)
data[].company.abc_segment_ainteger
data[].company.abc_segment_binteger
data[].company.abc_segment_cinteger
data[].company.is_pos_window_enabledboolean
data[].company.is_multi_currency_saleboolean
data[].company.cashbox_shift_settingsobject
data[].company.cashbox_shift_settings.is_enabledbooleanYoqilgan
data[].company.pos_layout_settingsnull
data[].company.manual_discount_settingsnull
data[].company.is_manual_sale_priceboolean
data[].company.wholesale_settingsnull
data[].company.product_settingsnull
data[].company.has_bank_payment_typeboolean
data[].company.payment_type_namesnull
data[].company.is_ican_turned_onbooleanICAN yoqilgan
data[].company.created_atstringYaratilgan
data[].company.updated_atstringYangilangan
data[].company.is_deletedbooleanO‘chirilgan
data[].company.company_currenciesobject[]
data[].company.company_currencies[].idintegerID
data[].company.company_currencies[].company_idintegerKompaniya
data[].company.company_currencies[].currencystringValyuta
data[].company.company_currencies[].rateinteger
data[].company.company_currencies[].is_saleboolean
data[].company.company_currencies[].created_atstringYaratilgan
data[].company.company_currencies[].updated_atstringYangilangan
json
{
    "data": [
        {
            "id": 80,
            "creator_id": 2,
            "company_id": 1,
            "cashbox_id": 2,
            "stock_id": 1,
            "closed_by_id": null,
            "collection_id": null,
            "status": "open",
            "opening_balances": [
                {
                    "amount": 3000,
                    "currency": "uzs",
                    "payment_type": "card"
                },
                {
                    "amount": 2100,
                    "currency": "uzs",
                    "payment_type": "cash"
                }
            ],
            "opening_amount": 0,
            "opening_currency": null,
            "opening_comment": null,
            "opening_transaction_id": 609,
            "closing_transaction_id": null,
            "closing_action": null,
            "closing_comment": null,
            "opened_at": "2026-11-25 16:51:10",
            "closes_at": null,
            "overdue_action": null,
            "closed_at": null,
            "created_at": "2026-11-25 16:51:10",
            "updated_at": "2026-11-25 16:51:10",
            "figures": [
                {
                    "currency": "uzs",
                    "closed_income": 0,
                    "closed_outcome": 0,
                    "opening": 5100,
                    "income": 300,
                    "outcome": 0,
                    "expected": 5400,
                    "opening_cash": 2100,
                    "cash": 2100,
                    "non_cash": 3300,
                    "refunds": 0,
                    "expenses": 0
                },
                {
                    "currency": "usd",
                    "closed_income": 0,
                    "closed_outcome": 0,
                    "opening": 0,
                    "income": 0,
                    "outcome": 0,
                    "expected": 0,
                    "opening_cash": 0,
                    "cash": 0,
                    "non_cash": 0,
                    "refunds": 0,
                    "expenses": 0
                }
            ],
            "company": {
                "id": 1,
                "parent_id": null,
                "partner_id": 1,
                "district_id": 1,
                "industry_id": 1,
                "name": "Company 1",
                "company_name": "Company 1",
                "logo": {
                    "original": {
                        "raw": "https://api.wasyt.uz/test_data/images/1.png",
                        "webp": "https://api.wasyt.uz/storage/thumbs/original/cac08f877f130e3c368a053b62984ee51778568717.webp"
                    },
                    "widen_25": {
                        "raw": "https://api.wasyt.uz/storage/thumbs/widen/25/cac08f877f130e3c368a053b62984ee51778568717.png",
                        "webp": "https://api.wasyt.uz/storage/thumbs/widen/25/cac08f877f130e3c368a053b62984ee51778568717.webp"
                    },
                    "widen_100": {
                        "raw": "https://api.wasyt.uz/storage/thumbs/widen/100/cac08f877f130e3c368a053b62984ee51778568717.png",
                        "webp": "https://api.wasyt.uz/storage/thumbs/widen/100/cac08f877f130e3c368a053b62984ee51778568717.webp"
                    },
                    "widen_500": {
                        "raw": "https://api.wasyt.uz/storage/thumbs/widen/500/cac08f877f130e3c368a053b62984ee51778568717.png",
                        "webp": "https://api.wasyt.uz/storage/thumbs/widen/500/cac08f877f130e3c368a053b62984ee51778568717.webp"
                    }
                },
                "inn": "000000001",
                "mfo": "00001",
                "address": "Address 1",
                "latitude": null,
                "longitude": null,
                "comment": "Comment 1",
                "telegram_phone": "998000000001",
                "director_full_name": "Director 1",
                "bank": "Bank 1",
                "payment_account": "00000000000000000001",
                "agreement_number": "001/2026",
                "agreement_date": null,
                "atmos_terminal_id": 97007302,
                "uniaccess_auto_payment_credit_overdue_days": 3,
                "uniaccess_branch_id": 1,
                "field_of_activity": "trading",
                "vat_percent": "12.00",
                "is_using_new_my_uzcard_auto_payment_by_pinfl": true,
                "bonus_entry_period": 12,
                "abc_segment_a": 75,
                "abc_segment_b": 15,
                "abc_segment_c": 10,
                "is_pos_window_enabled": true,
                "is_multi_currency_sale": false,
                "cashbox_shift_settings": {
                    "is_enabled": true
                },
                "pos_layout_settings": null,
                "manual_discount_settings": null,
                "is_manual_sale_price": false,
                "wholesale_settings": null,
                "product_settings": null,
                "has_bank_payment_type": false,
                "payment_type_names": null,
                "is_ican_turned_on": true,
                "created_at": "2026-11-25 16:42:00",
                "updated_at": "2026-11-25 16:43:30",
                "is_deleted": false,
                "company_currencies": [
                    {
                        "id": 1,
                        "company_id": 1,
                        "currency": "uzs",
                        "rate": 1,
                        "is_sale": true,
                        "created_at": "2026-11-25 16:42:00",
                        "updated_at": "2026-11-25 16:42:00"
                    },
                    {
                        "id": 2,
                        "company_id": 1,
                        "currency": "usd",
                        "rate": 1000,
                        "is_sale": false,
                        "created_at": "2026-11-25 16:42:00",
                        "updated_at": "2026-11-25 16:42:00"
                    }
                ]
            }
        },
        {
            "id": 79,
            "creator_id": 2,
            "company_id": 1,
            "cashbox_id": 2,
            "stock_id": 1,
            "closed_by_id": 2,
            "collection_id": null,
            "status": "closed",
            "opening_balances": [
                {
                    "amount": 1000,
                    "currency": "uzs",
                    "payment_type": "cash"
                },
                {
                    "amount": 3000,
                    "currency": "uzs",
                    "payment_type": "card"
                }
            ],
            "opening_amount": 500,
            "opening_currency": "uzs",
            "opening_comment": null,
            "opening_transaction_id": 0,
            "closing_transaction_id": 609,
            "closing_action": "keep",
            "closing_comment": "Недостача",
            "opened_at": "2026-11-25 16:50:10",
            "closes_at": null,
            "overdue_action": null,
            "closed_at": "2026-11-25 16:50:10",
            "created_at": "2026-11-25 16:50:10",
            "updated_at": "2026-11-25 16:50:10",
            "figures": [
                {
                    "currency": "uzs",
                    "closed_income": 0,
                    "closed_outcome": 0,
                    "opening": 4500,
                    "income": 700,
                    "outcome": 0,
                    "expected": 5200,
                    "actual": 5100,
                    "difference": -100,
                    "transferred": 0,
                    "left": 5100,
                    "opening_cash": 1500,
                    "cash": 2200,
                    "non_cash": 3000,
                    "refunds": 0,
                    "expenses": 0
                },
                {
                    "currency": "usd",
                    "closed_income": 0,
                    "closed_outcome": 0,
                    "opening": 0,
                    "income": 0,
                    "outcome": 0,
                    "expected": 0,
                    "actual": 0,
                    "difference": 0,
                    "transferred": 0,
                    "left": 0,
                    "opening_cash": 0,
                    "cash": 0,
                    "non_cash": 0,
                    "refunds": 0,
                    "expenses": 0
                }
            ]
        }
    ],
    "links": {
        "first": "https://api.wasyt.uz/company/trade/cashbox-shift?page=1",
        "last": "https://api.wasyt.uz/company/trade/cashbox-shift?page=1",
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 1,
        "links": [],
        "path": "https://api.wasyt.uz/company/trade/cashbox-shift",
        "per_page": 15,
        "to": 2,
        "total": 2
    },
    "counts": {
        "all": 2,
        "without": 1,
        "with": 1
    },
    "is_shift_enabled": true
}

Smena tafsilotlari ​

summarydagi yakunlar bilan smena: har bir to‘lov turi va valyuta bo‘yicha harakatlar, cheklar va qaytarishlar soni, berilgan va to‘langan qarzlar, yopilishdagi inkassatsiya collectionda (holati completed — pul asosiy kassa tomonidan qabul qilingan). Smena bo‘lmagan paytda kassaga tushgan pul (masalan, oldingi smena yopilgandan keyin ICAN shartnomalari bo‘yicha to‘lovlar) kiruvchi qoldiq opening_balancega allaqachon kiradi: qatorlarda u alohida closed_income / closed_outcome sifatida, operatsiyalarning o‘zi esa closed_transactionsda ko‘rsatiladi va smena harakatlariga (income, transactions) qayta tushmaydi. Rad etilgan (bekor qilingan) inkassatsiya rad etilgan paytda ochiq bo‘lgan smenaga qaytadi: uning har bir qatori o‘z valyutasi va to‘lov turida source_type collection_return (by_source.collection_return) bilan kirim sifatida, so‘mga o‘girilmasdan; smena bo‘lmasa — qaytarish keyingi ochilgan smenaga closed_income qismi sifatida tushadi. Qaytarishlarning o‘zi (har bir inkassatsiyaga bittadan: collection_id, kim rad etgan, qatorlar) — collection_returnsda. Smena ochilgandan keyin yozilgan operatsiyalarni hisoblaydi — to‘lov oldingi sana bilan kelgan bo‘lsa ham. Ochiq smenada raqamlar har so‘rovda qayta hisoblanadi, yopiqda — yopilgan paytdagi holatda qotirilgan. ?format=excel — smena bo‘yicha chop etiladigan hisobot.

GET/company/trade/cashbox-shift/{model}

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

Yo‘l parametrlari ​

ParametrTavsif
modelYozuv ID si

Javob · 200 ​

Javob maydonlari
MaydonTuriTavsif
idintegerID
creator_idintegerYaratuvchi
company_idintegerKompaniya
cashbox_idintegerKassa
stock_idintegerOmbor
closed_by_idnull
collection_idnull
statusstringStatus
opening_balancesobject[]
opening_balances[].amountintegerSumma
opening_balances[].currencystringValyuta
opening_balances[].payment_typestringTo'lov turi
opening_amountintegerOchilish summasi
opening_currencystringOchilish valyutasi
opening_commentnullIzoh
opening_transaction_idinteger
closing_transaction_idnull
closing_actionnullYopishdagi amal
closing_commentnullKassa smenasiga izoh
summaryobject
summary.currencystringValyuta
summary.rowsobject[]
summary.rows[].payment_typestringTo'lov turi
summary.rows[].payment_type_idnullTo‘lov usuli
summary.rows[].payment_type_namenull
summary.rows[].currencystringValyuta
summary.rows[].opening_balanceinteger
summary.rows[].closed_incomeinteger
summary.rows[].closed_outcomeinteger
summary.rows[].opening_amountintegerOchilish summasi
summary.rows[].openinginteger
summary.rows[].incomeintegerDaromad
summary.rows[].outcomeinteger
summary.rows[].expectedinteger
summary.rows[].by_sourceobject
summary.rows[].by_source.saleobject
summary.rows[].by_source.sale.incomeintegerDaromad
summary.rows[].by_source.sale.outcomeinteger
summary.rows[].by_source.client_debtobject
summary.rows[].by_source.client_debt.incomeintegerDaromad
summary.rows[].by_source.client_debt.outcomeinteger
summary.rows[].by_source.reasonobjectSabab
summary.rows[].by_source.reason.incomeintegerDaromad
summary.rows[].by_source.reason.outcomeinteger
summary.totalsobject[]
summary.totals[].currencystringValyuta
summary.totals[].closed_incomeinteger
summary.totals[].closed_outcomeinteger
summary.totals[].openinginteger
summary.totals[].incomeintegerDaromad
summary.totals[].outcomeinteger
summary.totals[].expectedinteger
summary.totals[].opening_cashinteger
summary.totals[].cashinteger
summary.totals[].non_cashinteger
summary.checks_countinteger7 kunda cheklar
summary.returns_countintegerQaytarishlar (dona)
summary.debtsarray
summary.transactionsobject[]Tranzaksiya
summary.transactions[].idintegerID
summary.transactions[].typestringTuri
summary.transactions[].payment_typestringTo'lov turi
summary.transactions[].payment_type_idnullTo‘lov usuli
summary.transactions[].currencystringValyuta
summary.transactions[].amountintegerSumma
summary.transactions[].statusstringStatus
summary.transactions[].source_typestringManba
summary.transactions[].source_idintegerManba
summary.transactions[].sale_idnullSotish
summary.transactions[].reasonnullSabab
summary.transactions[].commentnullIzoh
summary.transactions[].created_atstringYaratilgan
summary.closed_transactionsarray
summary.collection_returnsarray
opened_atstring
closes_atnull
overdue_actionnullVaqt tugaganda
closed_atnull
created_atstringYaratilgan
updated_atstringYangilangan
closes_innull
companyobjectKompaniya
company.idintegerID
company.parent_idnullOta-ona
company.partner_idintegerHamkor
company.district_idintegerTuman
company.industry_idintegerFaoliyat turlari
company.namestringNomlanish
company.company_namestringKompaniya
company.logoobjectLogotip
company.logo.originalobject
company.logo.original.rawstring
company.logo.original.webpstring
company.logo.widen_25object
company.logo.widen_25.rawstring
company.logo.widen_25.webpstring
company.logo.widen_100object
company.logo.widen_100.rawstring
company.logo.widen_100.webpstring
company.logo.widen_500object
company.logo.widen_500.rawstring
company.logo.widen_500.webpstring
company.innstringINN
company.mfostringMFO
company.addressstringManzil
company.latitudenullKenglik
company.longitudenullUzunlik
company.commentstringIzoh
company.telegram_phonestringTelegramdagi telefon
company.director_full_namestringDirektorning FISH
company.bankstringBank
company.payment_accountstringTo'lov hisob raqami
company.agreement_numberstringShartnoma raqami
company.agreement_datenull
company.atmos_terminal_idintegerAtmos Terminalining ID raqami
company.uniaccess_auto_payment_credit_overdue_daysinteger
company.uniaccess_branch_idintegerUniaccess branch ID
company.field_of_activitystringFaoliyat yo‘nalishi
company.vat_percentstringQQS (%)
company.is_using_new_my_uzcard_auto_payment_by_pinflbooleanYangi MyUzcard PINFL bo'yicha avtomatik yechib olish uchun foydalanish
json
{
    "id": 95,
    "creator_id": 2,
    "company_id": 1,
    "cashbox_id": 2,
    "stock_id": 1,
    "closed_by_id": null,
    "collection_id": null,
    "status": "open",
    "opening_balances": [
        {
            "amount": 1000,
            "currency": "uzs",
            "payment_type": "cash"
        },
        {
            "amount": 3000,
            "currency": "uzs",
            "payment_type": "card"
        }
    ],
    "opening_amount": 500,
    "opening_currency": "uzs",
    "opening_comment": null,
    "opening_transaction_id": 0,
    "closing_transaction_id": null,
    "closing_action": null,
    "closing_comment": null,
    "summary": {
        "currency": "uzs",
        "rows": [
            {
                "payment_type": "cash",
                "payment_type_id": null,
                "payment_type_name": null,
                "currency": "uzs",
                "opening_balance": 1000,
                "closed_income": 0,
                "closed_outcome": 0,
                "opening_amount": 500,
                "opening": 1500,
                "income": 950,
                "outcome": 150,
                "expected": 2300,
                "by_source": {
                    "sale": {
                        "income": 700,
                        "outcome": 100
                    },
                    "client_debt": {
                        "income": 250,
                        "outcome": 0
                    },
                    "reason": {
                        "income": 0,
                        "outcome": 50
                    }
                }
            },
            {
                "payment_type": "card",
                "payment_type_id": null,
                "payment_type_name": null,
                "currency": "uzs",
                "opening_balance": 3000,
                "closed_income": 0,
                "closed_outcome": 0,
                "opening_amount": 0,
                "opening": 3000,
                "income": 300,
                "outcome": 0,
                "expected": 3300,
                "by_source": {
                    "sale": {
                        "income": 300,
                        "outcome": 0
                    }
                }
            }
        ],
        "totals": [
            {
                "currency": "uzs",
                "closed_income": 0,
                "closed_outcome": 0,
                "opening": 4500,
                "income": 1250,
                "outcome": 150,
                "expected": 5600,
                "opening_cash": 1500,
                "cash": 2300,
                "non_cash": 3300
            },
            {
                "currency": "usd",
                "closed_income": 0,
                "closed_outcome": 0,
                "opening": 0,
                "income": 0,
                "outcome": 0,
                "expected": 0,
                "opening_cash": 0,
                "cash": 0,
                "non_cash": 0
            }
        ],
        "checks_count": 0,
        "returns_count": 0,
        "debts": [],
        "transactions": [
            {
                "id": 621,
                "type": "income",
                "payment_type": "cash",
                "payment_type_id": null,
                "currency": "uzs",
                "amount": 700,
                "status": "completed",
                "source_type": "sale",
                "source_id": 1,
                "sale_id": null,
                "reason": null,
                "comment": null,
                "created_at": "2026-11-25 16:50:18"
            },
            {
                "id": 622,
                "type": "income",
                "payment_type": "card",
                "payment_type_id": null,
                "currency": "uzs",
                "amount": 300,
                "status": "completed",
                "source_type": "sale",
                "source_id": 1,
                "sale_id": null,
                "reason": null,
                "comment": null,
                "created_at": "2026-11-25 16:50:18"
            }
        ],
        "closed_transactions": [],
        "collection_returns": []
    },
    "opened_at": "2026-11-25 16:50:18",
    "closes_at": null,
    "overdue_action": null,
    "closed_at": null,
    "created_at": "2026-11-25 16:50:18",
    "updated_at": "2026-11-25 16:50:18",
    "closes_in": null,
    "company": {
        "id": 1,
        "parent_id": null,
        "partner_id": 1,
        "district_id": 1,
        "industry_id": 1,
        "name": "Company 1",
        "company_name": "Company 1",
        "logo": {
            "original": {
                "raw": "https://api.wasyt.uz/test_data/images/1.png",
                "webp": "https://api.wasyt.uz/storage/thumbs/original/cac08f877f130e3c368a053b62984ee51778568717.webp"
            },
            "widen_25": {
                "raw": "https://api.wasyt.uz/storage/thumbs/widen/25/cac08f877f130e3c368a053b62984ee51778568717.png",
                "webp": "https://api.wasyt.uz/storage/thumbs/widen/25/cac08f877f130e3c368a053b62984ee51778568717.webp"
            },
            "widen_100": {
                "raw": "https://api.wasyt.uz/storage/thumbs/widen/100/cac08f877f130e3c368a053b62984ee51778568717.png",
                "webp": "https://api.wasyt.uz/storage/thumbs/widen/100/cac08f877f130e3c368a053b62984ee51778568717.webp"
            },
            "widen_500": {
                "raw": "https://api.wasyt.uz/storage/thumbs/widen/500/cac08f877f130e3c368a053b62984ee51778568717.png",
                "webp": "https://api.wasyt.uz/storage/thumbs/widen/500/cac08f877f130e3c368a053b62984ee51778568717.webp"
            }
        },
        "inn": "000000001",
        "mfo": "00001",
        "address": "Address 1",
        "latitude": null,
        "longitude": null,
        "comment": "Comment 1",
        "telegram_phone": "998000000001",
        "director_full_name": "Director 1",
        "bank": "Bank 1",
        "payment_account": "00000000000000000001",
        "agreement_number": "001/2026",
        "agreement_date": null,
        "atmos_terminal_id": 97007302,
        "uniaccess_auto_payment_credit_overdue_days": 3,
        "uniaccess_branch_id": 1,
        "field_of_activity": "trading",
        "vat_percent": "12.00",
        "is_using_new_my_uzcard_auto_payment_by_pinfl": true,
        "bonus_entry_period": 12,
        "abc_segment_a": 75,
        "abc_segment_b": 15,
        "abc_segment_c": 10,
        "is_pos_window_enabled": true,
        "is_multi_currency_sale": false,
        "cashbox_shift_settings": {
            "is_enabled": true
        },
        "pos_layout_settings": null,
        "manual_discount_settings": null,
        "is_manual_sale_price": false,
        "wholesale_settings": null,
        "product_settings": null,
        "has_bank_payment_type": false,
        "payment_type_names": null,
        "is_ican_turned_on": true,
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:43:30",
        "is_deleted": false,
        "parent": null,
        "director": {
            "id": 2,
            "type": "director",
            "role_id": 2,
            "company_id": 1,
            "partner_id": null,
            "username": "director_1@local.host",
            "pinfl": null,
            "phone": "998020000001",
            "sipuni_sip_number": "210",
            "is_confirmed": true,
            "are_all_companies_available": false,
            "last_login_at": null,
            "created_at": "2026-11-25 16:42:00",
            "updated_at": "2026-11-25 16:42:00",
            "is_deleted": false,
            "profile": {
                "first_name": null,
                "last_name": null,
                "position": null,
                "birth_date": null,
                "gender": null,
                "is_discount_limited": false,
                "max_item_discount_percent": null,
                "max_check_discount_percent": null,
                "is_device_limited": true,
                "max_devices": 2,
                "is_mobile_login_allowed": true,
                "last_device_number": 0,
                "full_name": " "
            }
        }
    },
    "creator": {
        "id": 2,
        "type": "director",
        "role_id": 2,
        "company_id": 1,
        "partner_id": null,
        "username": "director_1@local.host",
        "pinfl": null,
        "phone": "998020000001",
        "sipuni_sip_number": "210",
        "is_confirmed": true,
        "are_all_companies_available": false,
        "last_login_at": null,
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:42:00",
        "is_deleted": false,
        "profile": {
            "first_name": null,
            "last_name": null,
            "position": null,
            "birth_date": null,
            "gender": null,
            "is_discount_limited": false,
            "max_item_discount_percent": null,
            "max_check_discount_percent": null,
            "is_device_limited": true,
            "max_devices": 2,
            "is_mobile_login_allowed": true,
            "last_device_number": 0,
            "full_name": " "
        }
    },
    "closed_by": null,
    "cashbox": {
        "id": 2,
        "creator_id": 2,
        "company_id": 1,
        "name": "Cashbox 2",
        "type": "sale",
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:42:00",
        "is_deleted": false
    },
    "stock": {
        "id": 1,
        "creator_id": 2,
        "company_id": 1,
        "name": "Stock 1",
        "is_available": true,
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:42:00",
        "is_deleted": false
    },
    "collection": null
}

Smenani ochish ​

Joriy kassirning savdo kassasi va omborda smenasini ochadi. Kassaning joriy balansi kiruvchi sifatida qayd etiladi — smena yopiq paytda tushgan pul bilan birga, — opening_amount maydalash puli esa kassaga naqd kirim qilinadi. Kassada smena allaqachon ochiq bo‘lsa va kassir shu kassaga biriktirilgan bo‘lsa (yoki bu uning smenasi bo‘lsa), u shu smenaga kiradi: o‘sha smena qaytariladi, maydalash puli kirim qilinmaydi. Sozlamalarda smenalar o‘chirilgan bo‘lsa, kassirda boshqa kassada ochiq smena bo‘lsa yoki kassada umumiy bo‘lmagan boshqa kassir ishlayotgan bo‘lsa — 400 xato.

POST/company/trade/cashbox-shift

Sarlavhalar (headers) ​

SarlavhaQiymatTavsif
AuthorizationBearer {token}POST /common/auth/login dan olingan token
Acceptapplication/jsonJavob JSON da
Accept-LanguageruXabarlar va nomlar tili: ru, uz, oz

So‘rov tanasi ​

MaydonTuriMajburiyTavsif
cashbox_idintegerHaKassa. Foydalanuvchiga ochiq mavjud yozuv ID si
stock_idintegerHaOmbor. Foydalanuvchiga ochiq mavjud yozuv ID si
opening_amountnumberYo‘qOchilish summasi. Verguldan keyin 2 tagacha raqam. Kamida 0. 999999999999.99 dan oshmasin
opening_currencystringHaOchilish valyutasi. Mumkin qiymatlar: uzs, usd, eur, rub
opening_commentstringYo‘qIzoh. Maks. 1000 belgi
json
{
    "cashbox_id": 2,
    "stock_id": 1,
    "opening_amount": 500,
    "opening_currency": "uzs",
    "opening_comment": "Размен"
}
bash
curl -X POST "https://api.wasyt.uz/company/trade/cashbox-shift" \
  -H "Accept: application/json" \
  -H "Accept-Language: ru" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{"cashbox_id":2,"stock_id":1,"opening_amount":500,"opening_currency":"uzs","opening_comment":"Размен"}'

Javob · 200 ​

Javob maydonlari
MaydonTuriTavsif
opening_balancesobject[]
opening_balances[].payment_typestringTo'lov turi
opening_balances[].currencystringValyuta
opening_balances[].amountintegerSumma
company_idintegerKompaniya
cashbox_idintegerKassa
stock_idintegerOmbor
statusstringStatus
opening_transaction_idinteger
opening_amountintegerOchilish summasi
opening_currencystringOchilish valyutasi
opening_commentstringIzoh
opened_atstring
closes_atnull
overdue_actionnullVaqt tugaganda
updated_atstringYangilangan
created_atstringYaratilgan
creator_idintegerYaratuvchi
idintegerID
summaryobject
summary.currencystringValyuta
summary.rowsobject[]
summary.rows[].payment_typestringTo'lov turi
summary.rows[].payment_type_idnullTo‘lov usuli
summary.rows[].payment_type_namenull
summary.rows[].currencystringValyuta
summary.rows[].opening_balanceinteger
summary.rows[].closed_incomeinteger
summary.rows[].closed_outcomeinteger
summary.rows[].opening_amountintegerOchilish summasi
summary.rows[].openinginteger
summary.rows[].incomeintegerDaromad
summary.rows[].outcomeinteger
summary.rows[].expectedinteger
summary.rows[].by_sourcearray
summary.totalsobject[]
summary.totals[].currencystringValyuta
summary.totals[].closed_incomeinteger
summary.totals[].closed_outcomeinteger
summary.totals[].openinginteger
summary.totals[].incomeintegerDaromad
summary.totals[].outcomeinteger
summary.totals[].expectedinteger
summary.totals[].opening_cashinteger
summary.totals[].cashinteger
summary.totals[].non_cashinteger
summary.checks_countinteger7 kunda cheklar
summary.returns_countintegerQaytarishlar (dona)
summary.debtsarray
summary.transactionsarrayTranzaksiya
summary.closed_transactionsarray
summary.collection_returnsarray
closes_innull
companyobjectKompaniya
company.idintegerID
company.parent_idnullOta-ona
company.partner_idintegerHamkor
company.district_idintegerTuman
company.industry_idintegerFaoliyat turlari
company.namestringNomlanish
company.company_namestringKompaniya
company.logoobjectLogotip
company.logo.originalobject
company.logo.original.rawstring
company.logo.original.webpstring
company.logo.widen_25object
company.logo.widen_25.rawstring
company.logo.widen_25.webpstring
company.logo.widen_100object
company.logo.widen_100.rawstring
company.logo.widen_100.webpstring
company.logo.widen_500object
company.logo.widen_500.rawstring
company.logo.widen_500.webpstring
company.innstringINN
company.mfostringMFO
company.addressstringManzil
company.latitudenullKenglik
company.longitudenullUzunlik
company.commentstringIzoh
company.telegram_phonestringTelegramdagi telefon
company.director_full_namestringDirektorning FISH
company.bankstringBank
company.payment_accountstringTo'lov hisob raqami
company.agreement_numberstringShartnoma raqami
company.agreement_datenull
company.atmos_terminal_idintegerAtmos Terminalining ID raqami
company.uniaccess_auto_payment_credit_overdue_daysinteger
company.uniaccess_branch_idintegerUniaccess branch ID
company.field_of_activitystringFaoliyat yo‘nalishi
company.vat_percentstringQQS (%)
company.is_using_new_my_uzcard_auto_payment_by_pinflbooleanYangi MyUzcard PINFL bo'yicha avtomatik yechib olish uchun foydalanish
company.bonus_entry_periodintegerBonuslar hisob davri (oylarda)
company.abc_segment_ainteger
company.abc_segment_binteger
company.abc_segment_cinteger
company.is_pos_window_enabledboolean
company.is_multi_currency_saleboolean
company.cashbox_shift_settingsobject
company.cashbox_shift_settings.is_enabledbooleanYoqilgan
company.pos_layout_settingsnull
company.manual_discount_settingsnull
company.is_manual_sale_priceboolean
company.wholesale_settingsnull
company.product_settingsnull
company.has_bank_payment_typeboolean
company.payment_type_namesnull
company.is_ican_turned_onbooleanICAN yoqilgan
company.created_atstringYaratilgan
company.updated_atstringYangilangan
company.is_deletedbooleanO‘chirilgan
company.parentnullOta yozuv
company.directorobject
company.director.idintegerID
company.director.typestringTuri
company.director.role_idintegerRoli
company.director.company_idintegerKompaniya
company.director.partner_idnullHamkor
company.director.usernamestringLogin
company.director.pinflnullPINFL
json
{
    "opening_balances": [
        {
            "payment_type": "cash",
            "currency": "uzs",
            "amount": 1000
        },
        {
            "payment_type": "card",
            "currency": "uzs",
            "amount": 3000
        }
    ],
    "company_id": 1,
    "cashbox_id": 2,
    "stock_id": 1,
    "status": "open",
    "opening_transaction_id": 0,
    "opening_amount": 500,
    "opening_currency": "uzs",
    "opening_comment": "Размен",
    "opened_at": "2026-11-25 16:50:00",
    "closes_at": null,
    "overdue_action": null,
    "updated_at": "2026-11-25 16:50:00",
    "created_at": "2026-11-25 16:50:00",
    "creator_id": 2,
    "id": 60,
    "summary": {
        "currency": "uzs",
        "rows": [
            {
                "payment_type": "cash",
                "payment_type_id": null,
                "payment_type_name": null,
                "currency": "uzs",
                "opening_balance": 1000,
                "closed_income": 0,
                "closed_outcome": 0,
                "opening_amount": 500,
                "opening": 1500,
                "income": 0,
                "outcome": 0,
                "expected": 1500,
                "by_source": []
            },
            {
                "payment_type": "card",
                "payment_type_id": null,
                "payment_type_name": null,
                "currency": "uzs",
                "opening_balance": 3000,
                "closed_income": 0,
                "closed_outcome": 0,
                "opening_amount": 0,
                "opening": 3000,
                "income": 0,
                "outcome": 0,
                "expected": 3000,
                "by_source": []
            }
        ],
        "totals": [
            {
                "currency": "uzs",
                "closed_income": 0,
                "closed_outcome": 0,
                "opening": 4500,
                "income": 0,
                "outcome": 0,
                "expected": 4500,
                "opening_cash": 1500,
                "cash": 1500,
                "non_cash": 3000
            },
            {
                "currency": "usd",
                "closed_income": 0,
                "closed_outcome": 0,
                "opening": 0,
                "income": 0,
                "outcome": 0,
                "expected": 0,
                "opening_cash": 0,
                "cash": 0,
                "non_cash": 0
            }
        ],
        "checks_count": 0,
        "returns_count": 0,
        "debts": [],
        "transactions": [],
        "closed_transactions": [],
        "collection_returns": []
    },
    "closes_in": null,
    "company": {
        "id": 1,
        "parent_id": null,
        "partner_id": 1,
        "district_id": 1,
        "industry_id": 1,
        "name": "Company 1",
        "company_name": "Company 1",
        "logo": {
            "original": {
                "raw": "https://api.wasyt.uz/test_data/images/1.png",
                "webp": "https://api.wasyt.uz/storage/thumbs/original/cac08f877f130e3c368a053b62984ee51778568717.webp"
            },
            "widen_25": {
                "raw": "https://api.wasyt.uz/storage/thumbs/widen/25/cac08f877f130e3c368a053b62984ee51778568717.png",
                "webp": "https://api.wasyt.uz/storage/thumbs/widen/25/cac08f877f130e3c368a053b62984ee51778568717.webp"
            },
            "widen_100": {
                "raw": "https://api.wasyt.uz/storage/thumbs/widen/100/cac08f877f130e3c368a053b62984ee51778568717.png",
                "webp": "https://api.wasyt.uz/storage/thumbs/widen/100/cac08f877f130e3c368a053b62984ee51778568717.webp"
            },
            "widen_500": {
                "raw": "https://api.wasyt.uz/storage/thumbs/widen/500/cac08f877f130e3c368a053b62984ee51778568717.png",
                "webp": "https://api.wasyt.uz/storage/thumbs/widen/500/cac08f877f130e3c368a053b62984ee51778568717.webp"
            }
        },
        "inn": "000000001",
        "mfo": "00001",
        "address": "Address 1",
        "latitude": null,
        "longitude": null,
        "comment": "Comment 1",
        "telegram_phone": "998000000001",
        "director_full_name": "Director 1",
        "bank": "Bank 1",
        "payment_account": "00000000000000000001",
        "agreement_number": "001/2026",
        "agreement_date": null,
        "atmos_terminal_id": 97007302,
        "uniaccess_auto_payment_credit_overdue_days": 3,
        "uniaccess_branch_id": 1,
        "field_of_activity": "trading",
        "vat_percent": "12.00",
        "is_using_new_my_uzcard_auto_payment_by_pinfl": true,
        "bonus_entry_period": 12,
        "abc_segment_a": 75,
        "abc_segment_b": 15,
        "abc_segment_c": 10,
        "is_pos_window_enabled": true,
        "is_multi_currency_sale": false,
        "cashbox_shift_settings": {
            "is_enabled": true
        },
        "pos_layout_settings": null,
        "manual_discount_settings": null,
        "is_manual_sale_price": false,
        "wholesale_settings": null,
        "product_settings": null,
        "has_bank_payment_type": false,
        "payment_type_names": null,
        "is_ican_turned_on": true,
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:43:30",
        "is_deleted": false,
        "parent": null,
        "director": {
            "id": 2,
            "type": "director",
            "role_id": 2,
            "company_id": 1,
            "partner_id": null,
            "username": "director_1@local.host",
            "pinfl": null,
            "phone": "998020000001",
            "sipuni_sip_number": "210",
            "is_confirmed": true,
            "are_all_companies_available": false,
            "last_login_at": null,
            "created_at": "2026-11-25 16:42:00",
            "updated_at": "2026-11-25 16:42:00",
            "is_deleted": false,
            "profile": {
                "first_name": null,
                "last_name": null,
                "position": null,
                "birth_date": null,
                "gender": null,
                "is_discount_limited": false,
                "max_item_discount_percent": null,
                "max_check_discount_percent": null,
                "is_device_limited": true,
                "max_devices": 2,
                "is_mobile_login_allowed": true,
                "last_device_number": 0,
                "full_name": " "
            }
        }
    },
    "creator": {
        "id": 2,
        "type": "director",
        "role_id": 2,
        "company_id": 1,
        "partner_id": null,
        "username": "director_1@local.host",
        "pinfl": null,
        "phone": "998020000001",
        "sipuni_sip_number": "210",
        "is_confirmed": true,
        "are_all_companies_available": false,
        "last_login_at": null,
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:42:00",
        "is_deleted": false,
        "profile": {
            "first_name": null,
            "last_name": null,
            "position": null,
            "birth_date": null,
            "gender": null,
            "is_discount_limited": false,
            "max_item_discount_percent": null,
            "max_check_discount_percent": null,
            "is_device_limited": true,
            "max_devices": 2,
            "is_mobile_login_allowed": true,
            "last_device_number": 0,
            "full_name": " "
        }
    },
    "closed_by": null,
    "cashbox": {
        "id": 2,
        "creator_id": 2,
        "company_id": 1,
        "name": "Cashbox 2",
        "type": "sale",
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:42:00",
        "is_deleted": false
    },
    "stock": {
        "id": 1,
        "creator_id": 2,
        "company_id": 1,
        "name": "Stock 1",
        "is_available": true,
        "created_at": "2026-11-25 16:42:00",
        "updated_at": "2026-11-25 16:42:00",
        "is_deleted": false
    },
    "collection": null
}

Xato misoli · 422 ​

json
{
    "message": "Выбранная запись не существует или была удалена (и ещё 1 ошибка)",
    "errors": {
        "cashbox_id": [
            "Выбранная запись не существует или была удалена"
        ],
        "stock_id": [
            "Выбранная запись не существует или была удалена"
        ]
    }
}