Skip to content

Кассовые смены ​

Смена кассира на кассе продаж: открытие с разменной суммой, расходы из кассы во время смены и закрытие с пересчётом денег по каждому типу оплаты и валюте. Кассир видит свои смены и смены касс, за которыми он закреплён (закреплённые кассиры работают в общей смене кассы с любого устройства), директор — все смены компании.

МетодАдресНазначение
GET/company/trade/cashbox-shift/currentТекущая смена кассира
GET/company/trade/cashbox-shift/statsКарточки «Кассовые смены»
GET/company/trade/cashbox-shift/expense-reasonsТипы расходов смены
POST/company/trade/cashbox-shift/expense-reasonsДобавить тип расхода
PATCH/company/trade/cashbox-shift/{model}/closeЗакрыть смену
POST/company/trade/cashbox-shift/{model}/expenseРасход из кассы
PATCH/company/trade/cashbox-shift/{model}/collection-return/{collectionReturn}/acknowledgeПодтвердить возврат инкассации
GET/company/trade/cashbox-shiftСписок смен
GET/company/trade/cashbox-shift/{model}Детали смены
POST/company/trade/cashbox-shiftОткрыть смену

Текущая смена кассира ​

Открытая смена текущего пользователя в data — своя, а если её нет, то открытая на кассе, за которой он закреплён (или null, если смены нет) и правила смен компании в settings. В смене приходит closes_in — сколько секунд осталось до конца рабочего времени (отрицательное после его окончания, null без ограничения). collection_returns — отклонённые инкассации, вернувшиеся на кассу смены, которые кассир ещё не подтвердил кнопкой «OK» (по одной на инкассацию: collection_id, кто отклонил, строки по типу оплаты и валюте); пустой массив без смены.

GET/company/trade/cashbox-shift/current

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Ответ · 200 ​

Поля ответа
ПолеТипОписание
datanullДанные
settingsobjectНастройки
settings.is_enabledbooleanВключено
settings.is_working_hours_enabledbooleanРабочее время смены
settings.working_hours_fromstringНачало рабочего времени
settings.working_hours_tostringКонец рабочего времени
settings.is_round_the_clockboolean24-часовая смена
settings.overdue_actionstringКогда время вышло
pos_layoutobject
pos_layout.is_catalog_enabledbooleanКаталог
pos_layout.is_quick_panel_enabledbooleanБыстрая панель
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": []
}

Карточки «Кассовые смены» ​

«Попало на кассу», «Ушло с кассы», «Сумма открытия» и «Текущая смена» по валютам, наличные (cash) и безналичные (non_cash, все остальные типы оплат) отдельно. Без периода считаются открытые сейчас смены; с filter[opened_at] «Попало» / «Ушло» добавляют и смены, закрытые в этом периоде.

GET/company/trade/cashbox-shift/stats

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Параметры запроса ​

ПолеТипОбязательноОписание
filterarrayНет
filter.company_idstringНетКомпания
filter.cashbox_idintegerНетКасса
filter.opened_atstringНет

Ответ · 200 ​

Поля ответа
ПолеТипОписание
incomeobjectДоход
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
        }
    }
}

Типы расходов смены ​

Статьи «Расход» компании, на которые можно провести расход из кассы: конечные статьи дерева и статьи верхнего уровня без вложенных. Каждая с родительской группой parent.

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

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Ответ · 200 ​

Поля ответа
ПолеТипОписание
dataobject[]Данные
data[].idintegerID
data[].namestringНазвание
data[].parentobjectРодитель
data[].parent.idintegerID
data[].parent.namestringНазвание
json
{
    "data": [
        {
            "id": 838,
            "name": "Обед",
            "parent": {
                "id": 3,
                "name": "Transaction reason 2"
            }
        },
        {
            "id": 839,
            "name": "Транспорт",
            "parent": null
        }
    ]
}

Добавить тип расхода ​

Создаёт статью «Расход» с указанным названием в группе «Расходы из кассы» (группа создаётся при необходимости). Если статья с таким названием уже есть, возвращается она — дубль не создаётся.

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

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Тело запроса ​

ПолеТипОбязательноОписание
namestringДаНазвание. Макс. 255 символов
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":"Такси"}'

Ответ · 200 ​

Поля ответа
ПолеТипОписание
idintegerID
namestringНазвание
parentobjectРодитель
parent.idintegerID
parent.namestringНазвание
json
{
    "id": 841,
    "name": "Такси",
    "parent": {
        "id": 840,
        "name": "Расходы из кассы"
    }
}

Закрыть смену ​

Закрывает открытую смену по пересчитанным суммам actuals (не указанная строка считается равной ожидаемой). Расхождение по любой строке требует closing_comment и проводится по кассе приходом или расходом. closing_action: keep — всё остаётся в кассе, transfer_all — всё уходит инкассацией в основную кассу, transfer_part — в кассе остаются наличные из leave_amounts (не больше пересчитанных). Итоговые цифры смены замораживаются.

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

Из формы (multipart/form-data) метод PATCH отправляется как POST с параметром ?_method=PATCH.

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Параметры пути ​

ПараметрОписание
modelID записи

Тело запроса ​

ПолеТипОбязательноОписание
actualsobject[]НетФактические суммы. Макс. 50 элементов
actuals[].payment_typestringДаТип оплаты. Допустимые значения: cash, card, bank
actuals[].payment_type_idintegerНетСпособ оплаты
actuals[].currencystringДаВалюта. Допустимые значения: uzs, usd, eur, rub
actuals[].amountnumberДаФактически. До 2 знаков после запятой. Не меньше -999999999999.99. Не больше 999999999999.99
closing_actionstringДаДействие при закрытии. Допустимые значения: keep, transfer_all, transfer_part
leave_amountsobject[]НетСумма остатка. Макс. 20 элементов
leave_amounts[].currencystringДаВалюта. Без повторов. Допустимые значения: uzs, usd, eur, rub
leave_amounts[].amountnumberДаСумма остатка. До 2 знаков после запятой. Не меньше 0. Не больше 999999999999.99
closing_commentstringНетКомментарий к кассовой смене. Макс. 1000 символов
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"}'

Ответ · 200 ​

Поля ответа
ПолеТипОписание
idintegerID
creator_idintegerСоздатель
company_idintegerКомпания
cashbox_idintegerКасса
stock_idintegerСклад
closed_by_idinteger
collection_idnull
statusstringСтатус
opening_balancesobject[]
opening_balances[].amountintegerСумма
opening_balances[].currencystringВалюта
opening_balances[].payment_typestringТип оплаты
opening_amountintegerСумма открытия
opening_currencynullВалюта открытия
opening_commentnullПримечание
opening_transaction_idinteger
closing_transaction_idinteger
closing_actionstringДействие при закрытии
closing_commentnullКомментарий к кассовой смене
summaryobject
summary.currencystringВалюта
summary.rowsobject[]
summary.rows[].payment_typestringТип оплаты
summary.rows[].payment_type_idnullСпособ оплаты
summary.rows[].payment_type_namenull
summary.rows[].currencystringВалюта
summary.rows[].opening_balanceinteger
summary.rows[].closed_incomeinteger
summary.rows[].closed_outcomeinteger
summary.rows[].opening_amountintegerСумма открытия
summary.rows[].openinginteger
summary.rows[].incomeintegerДоход
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[].currencystringВалюта
summary.totals[].closed_incomeinteger
summary.totals[].closed_outcomeinteger
summary.totals[].openinginteger
summary.totals[].incomeintegerДоход
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_countintegerЧеков за 7 дн.
summary.returns_countintegerВозвраты (шт.)
summary.debtsarray
summary.transactionsarrayТранзакции
summary.closed_transactionsarray
summary.collection_returnsarray
opened_atstring
closes_atnull
overdue_actionnullКогда время вышло
closed_atstring
created_atstringСоздано
updated_atstringОбновлено
companyobjectКомпания
company.idintegerID
company.parent_idnullРодитель
company.partner_idintegerПартнёр
company.district_idintegerРайон
company.industry_idintegerСфера деятельности
company.namestringНазвание
company.company_namestringКомпания
company.logoobjectЛоготип
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.innstringИНН
company.mfostringМФО
company.addressstringАдрес
company.latitudenullШирота
company.longitudenullДолгота
company.commentstringКомментарий
company.telegram_phonestringТелефон в Telegram
company.director_full_namestringФИО директора
company.bankstringБанк
company.payment_accountstringРасчётный счёт
company.agreement_numberstringНомер договора
company.agreement_datenull
company.atmos_terminal_idintegerID терминала в Atmos
company.uniaccess_auto_payment_credit_overdue_daysinteger
company.uniaccess_branch_idintegerBranch ID в Uniaccess
company.field_of_activitystringНаправление
company.vat_percentstringНДС (%)
company.is_using_new_my_uzcard_auto_payment_by_pinflbooleanИспользует новый метод MyUzcard для автосписания по ПИНФЛ
company.bonus_entry_periodintegerПериод учёта бонусов (в месяцах)
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_enabledbooleanВключено
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
}

Пример ошибки · 422 ​

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

Расход из кассы ​

Проводит расход из кассы открытой смены по существующей статье transaction_reason_id или по новой, заданной названием reason_name (создаётся статья «Расход»). Возвращает созданную кассовую операцию; по закрытой смене — ошибка 400.

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

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Параметры пути ​

ПараметрОписание
modelID записи

Тело запроса ​

ПолеТипОбязательноОписание
transaction_reason_idintegerЕсли не передано reason_nameТип расхода. ID существующей записи, доступной пользователю
reason_namestringЕсли не передано transaction_reason_idНазвание расхода. Макс. 255 символов
reason_parent_idintegerНетГруппа расхода. ID существующей записи, доступной пользователю
payment_typestringДаТип оплаты. Допустимые значения: cash, card, bank
currencystringДаВалюта. Допустимые значения: uzs, usd, eur, rub
amountnumberДаСумма. До 2 знаков после запятой. Не меньше 0.01. Не больше 999999999999.99
commentstringНетКомментарий. Макс. 1000 символов
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":"Обед сотрудникам"}'

Ответ · 200 ​

Поля ответа
ПолеТипОписание
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_idintegerКасса
typestringТип
payment_typestringТип оплаты
currencystringВалюта
amountintegerСумма
statusstringСтатус
source_typestringИсточник
source_idintegerИсточник
commentstringКомментарий
updated_atstringОбновлено
created_atstringСоздано
company_idintegerКомпания
creator_idintegerСоздатель
idintegerID
cashboxobjectКасса
cashbox.idintegerID
cashbox.creator_idintegerСоздатель
cashbox.company_idintegerКомпания
cashbox.namestringНазвание
cashbox.typestringТип
cashbox.created_atstringСоздано
cashbox.updated_atstringОбновлено
cashbox.is_deletedbooleanУдалена
sourcenull
contract_numbernullНомер контракта
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
}

Подтвердить возврат инкассации ​

Кассир нажал «OK» в уведомлении «Инкассация отклонена»: отметка (acknowledged_at, кто подтвердил) сохраняется на возврате, и уведомление больше не показывается — ни после перезагрузки, ни на другом устройстве. Повторное подтверждение ничего не меняет. Возврат должен относиться к кассе смены, иначе 404.

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

Из формы (multipart/form-data) метод PATCH отправляется как POST с параметром ?_method=PATCH.

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Параметры пути ​

ПараметрОписание
modelID записи
collectionReturnCollection Return

Ответ · 200 ​

Поля ответа
ПолеТипОписание
dataobjectДанные
data.idintegerID
data.collection_idinteger
data.is_while_closedboolean
data.commentstringКомментарий
data.creatorobject
data.creator.idintegerID
data.creator.usernamestringЛогин
data.creator.profileobject
data.creator.profile.first_namenullИмя
data.creator.profile.last_namenullФамилия
data.itemsobject[]Состав
data.items[].payment_typestringТип оплаты
data.items[].currencystringВалюта
data.items[].amountintegerСумма
data.created_atstringСоздано
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"
    }
}

Список смен ​

Смены кассиров, не больше 15 на страницу, каждая с итогами по валютам в figures (сумма открытия наличными, пополнения, расходы, ожидаемое наличными и безналичными, у закрытой — фактически и разница). filter[search] ищет по номеру, кассе и филиалу, filter[is_latest]=1 оставляет последнюю смену каждой кассы, filter[discrepancy] — with (закрытые с расхождением) или without (все остальные); counts — число смен на каждой вкладке, is_shift_enabled — включены ли смены в компании. Кассир видит только свои смены, директор — все смены компании.

GET/company/trade/cashbox-shift

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Параметры запроса ​

ПараметрОписание
filter[id]ID — точное значение
filter[creator_id]Создатель — точное значение
filter[company_id]Компания — одно значение или список filter[company_id][]
filter[cashbox_id]Касса — точное значение
filter[stock_id]Склад — точное значение
filter[status]Статус — одно значение или список filter[status][]
filter[opened_at]период: [0] — с, [1] — по (Y-m-d)
filter[closed_at]период: [0] — с, [1] — по (Y-m-d)
sort[]Сортировка, - — по убыванию: id, -id, opened_at, -opened_at, closed_at, -closed_at
with[]Подгрузить связи: creator.profile, closed_by.profile, company, company.director.profile, cashbox, stock, collection
pageНомер страницы, с 1
page-sizeЗаписей на странице, не больше 15
http
GET /company/trade/cashbox-shift?sort[0]=-id

Ответ · 200 ​

Постраничный ответ: записи в data[], пагинация в links и meta.

Поля ответа
ПолеТипОписание
dataobject[]Данные
data[].idintegerID
data[].creator_idintegerСоздатель
data[].company_idintegerКомпания
data[].cashbox_idintegerКасса
data[].stock_idintegerСклад
data[].closed_by_idnull
data[].collection_idnull
data[].statusstringСтатус
data[].opening_balancesobject[]
data[].opening_balances[].amountintegerСумма
data[].opening_balances[].currencystringВалюта
data[].opening_balances[].payment_typestringТип оплаты
data[].opening_amountintegerСумма открытия
data[].opening_currencynullВалюта открытия
data[].opening_commentnullПримечание
data[].opening_transaction_idinteger
data[].closing_transaction_idnull
data[].closing_actionnullДействие при закрытии
data[].closing_commentnullКомментарий к кассовой смене
data[].opened_atstring
data[].closes_atnull
data[].overdue_actionnullКогда время вышло
data[].closed_atnull
data[].created_atstringСоздано
data[].updated_atstringОбновлено
data[].figuresobject[]
data[].figures[].currencystringВалюта
data[].figures[].closed_incomeinteger
data[].figures[].closed_outcomeinteger
data[].figures[].openinginteger
data[].figures[].incomeintegerДоход
data[].figures[].outcomeinteger
data[].figures[].expectedinteger
data[].figures[].opening_cashinteger
data[].figures[].cashinteger
data[].figures[].non_cashinteger
data[].figures[].refundsinteger
data[].figures[].expensesinteger
data[].companyobjectКомпания
data[].company.idintegerID
data[].company.parent_idnullРодитель
data[].company.partner_idintegerПартнёр
data[].company.district_idintegerРайон
data[].company.industry_idintegerСфера деятельности
data[].company.namestringНазвание
data[].company.company_namestringКомпания
data[].company.logoobjectЛоготип
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.innstringИНН
data[].company.mfostringМФО
data[].company.addressstringАдрес
data[].company.latitudenullШирота
data[].company.longitudenullДолгота
data[].company.commentstringКомментарий
data[].company.telegram_phonestringТелефон в Telegram
data[].company.director_full_namestringФИО директора
data[].company.bankstringБанк
data[].company.payment_accountstringРасчётный счёт
data[].company.agreement_numberstringНомер договора
data[].company.agreement_datenull
data[].company.atmos_terminal_idintegerID терминала в Atmos
data[].company.uniaccess_auto_payment_credit_overdue_daysinteger
data[].company.uniaccess_branch_idintegerBranch ID в Uniaccess
data[].company.field_of_activitystringНаправление
data[].company.vat_percentstringНДС (%)
data[].company.is_using_new_my_uzcard_auto_payment_by_pinflbooleanИспользует новый метод MyUzcard для автосписания по ПИНФЛ
data[].company.bonus_entry_periodintegerПериод учёта бонусов (в месяцах)
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_enabledbooleanВключено
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 включён
data[].company.created_atstringСоздано
data[].company.updated_atstringОбновлено
data[].company.is_deletedbooleanУдалена
data[].company.company_currenciesobject[]
data[].company.company_currencies[].idintegerID
data[].company.company_currencies[].company_idintegerКомпания
data[].company.company_currencies[].currencystringВалюта
data[].company.company_currencies[].rateinteger
data[].company.company_currencies[].is_saleboolean
data[].company.company_currencies[].created_atstringСоздано
data[].company.company_currencies[].updated_atstringОбновлено
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
}

Детали смены ​

Смена с итогами в summary: движения по каждому типу оплаты и валюте, количество чеков и возвратов, выданные и погашенные долги, инкассация закрытия в collection (её статус completed — деньги приняты основной кассой). Поступившее на кассу, пока смены не было (например, оплаты по контрактам ICAN после закрытия прошлой смены), уже входит во входящий остаток opening_balance: в строках оно показано отдельно как closed_income / closed_outcome, а сами операции — в closed_transactions, и в движения смены (income, transactions) повторно не попадает. Отклонённая (отменённая) инкассация этой кассы возвращается в смену, открытую в момент отклонения: каждая её строка — приход с source_type collection_return (by_source.collection_return) в своей валюте и типе оплаты, без пересчёта в сумы; если смены не было — возврат попадает в следующую открытую смену как часть closed_income. Сами возвраты (по одному на инкассацию: collection_id, кто отклонил, строки) — в collection_returns. Смена считает операции, записанные после её открытия, — даже если оплата пришла с более ранней датой. У открытой смены цифры пересчитываются при каждом запросе, у закрытой — зафиксированы на момент закрытия. ?format=excel — печатный отчёт по смене.

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

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Параметры пути ​

ПараметрОписание
modelID записи

Ответ · 200 ​

Поля ответа
ПолеТипОписание
idintegerID
creator_idintegerСоздатель
company_idintegerКомпания
cashbox_idintegerКасса
stock_idintegerСклад
closed_by_idnull
collection_idnull
statusstringСтатус
opening_balancesobject[]
opening_balances[].amountintegerСумма
opening_balances[].currencystringВалюта
opening_balances[].payment_typestringТип оплаты
opening_amountintegerСумма открытия
opening_currencystringВалюта открытия
opening_commentnullПримечание
opening_transaction_idinteger
closing_transaction_idnull
closing_actionnullДействие при закрытии
closing_commentnullКомментарий к кассовой смене
summaryobject
summary.currencystringВалюта
summary.rowsobject[]
summary.rows[].payment_typestringТип оплаты
summary.rows[].payment_type_idnullСпособ оплаты
summary.rows[].payment_type_namenull
summary.rows[].currencystringВалюта
summary.rows[].opening_balanceinteger
summary.rows[].closed_incomeinteger
summary.rows[].closed_outcomeinteger
summary.rows[].opening_amountintegerСумма открытия
summary.rows[].openinginteger
summary.rows[].incomeintegerДоход
summary.rows[].outcomeinteger
summary.rows[].expectedinteger
summary.rows[].by_sourceobject
summary.rows[].by_source.saleobject
summary.rows[].by_source.sale.incomeintegerДоход
summary.rows[].by_source.sale.outcomeinteger
summary.rows[].by_source.client_debtobject
summary.rows[].by_source.client_debt.incomeintegerДоход
summary.rows[].by_source.client_debt.outcomeinteger
summary.rows[].by_source.reasonobjectПричина
summary.rows[].by_source.reason.incomeintegerДоход
summary.rows[].by_source.reason.outcomeinteger
summary.totalsobject[]
summary.totals[].currencystringВалюта
summary.totals[].closed_incomeinteger
summary.totals[].closed_outcomeinteger
summary.totals[].openinginteger
summary.totals[].incomeintegerДоход
summary.totals[].outcomeinteger
summary.totals[].expectedinteger
summary.totals[].opening_cashinteger
summary.totals[].cashinteger
summary.totals[].non_cashinteger
summary.checks_countintegerЧеков за 7 дн.
summary.returns_countintegerВозвраты (шт.)
summary.debtsarray
summary.transactionsobject[]Транзакции
summary.transactions[].idintegerID
summary.transactions[].typestringТип
summary.transactions[].payment_typestringТип оплаты
summary.transactions[].payment_type_idnullСпособ оплаты
summary.transactions[].currencystringВалюта
summary.transactions[].amountintegerСумма
summary.transactions[].statusstringСтатус
summary.transactions[].source_typestringИсточник
summary.transactions[].source_idintegerИсточник
summary.transactions[].sale_idnullПродажа
summary.transactions[].reasonnullПричина
summary.transactions[].commentnullКомментарий
summary.transactions[].created_atstringСоздано
summary.closed_transactionsarray
summary.collection_returnsarray
opened_atstring
closes_atnull
overdue_actionnullКогда время вышло
closed_atnull
created_atstringСоздано
updated_atstringОбновлено
closes_innull
companyobjectКомпания
company.idintegerID
company.parent_idnullРодитель
company.partner_idintegerПартнёр
company.district_idintegerРайон
company.industry_idintegerСфера деятельности
company.namestringНазвание
company.company_namestringКомпания
company.logoobjectЛоготип
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.innstringИНН
company.mfostringМФО
company.addressstringАдрес
company.latitudenullШирота
company.longitudenullДолгота
company.commentstringКомментарий
company.telegram_phonestringТелефон в Telegram
company.director_full_namestringФИО директора
company.bankstringБанк
company.payment_accountstringРасчётный счёт
company.agreement_numberstringНомер договора
company.agreement_datenull
company.atmos_terminal_idintegerID терминала в Atmos
company.uniaccess_auto_payment_credit_overdue_daysinteger
company.uniaccess_branch_idintegerBranch ID в Uniaccess
company.field_of_activitystringНаправление
company.vat_percentstringНДС (%)
company.is_using_new_my_uzcard_auto_payment_by_pinflbooleanИспользует новый метод MyUzcard для автосписания по ПИНФЛ
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
}

Открыть смену ​

Открывает смену текущего кассира на кассе продаж и складе. Текущий баланс кассы фиксируется как входящий — вместе с тем, что поступило, пока смена была закрыта, — а разменная сумма opening_amount приходуется в кассу наличными. Если на кассе уже открыта смена, а кассир закреплён за этой кассой (или это его смена), он входит в неё: возвращается эта смена, разменная сумма не приходуется. Ошибка 400, если смены отключены в настройках, у кассира уже есть открытая смена на другой кассе или на кассе работает кассир, с которым она не общая.

POST/company/trade/cashbox-shift

Заголовки ​

ЗаголовокЗначениеОписание
AuthorizationBearer {token}Токен из POST /common/auth/login
Acceptapplication/jsonОтвет в JSON
Accept-LanguageruЯзык сообщений и названий: ru, uz, oz

Тело запроса ​

ПолеТипОбязательноОписание
cashbox_idintegerДаКасса. ID существующей записи, доступной пользователю
stock_idintegerДаСклад. ID существующей записи, доступной пользователю
opening_amountnumberНетСумма открытия. До 2 знаков после запятой. Не меньше 0. Не больше 999999999999.99
opening_currencystringДаВалюта открытия. Допустимые значения: uzs, usd, eur, rub
opening_commentstringНетПримечание. Макс. 1000 символов
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":"Размен"}'

Ответ · 200 ​

Поля ответа
ПолеТипОписание
opening_balancesobject[]
opening_balances[].payment_typestringТип оплаты
opening_balances[].currencystringВалюта
opening_balances[].amountintegerСумма
company_idintegerКомпания
cashbox_idintegerКасса
stock_idintegerСклад
statusstringСтатус
opening_transaction_idinteger
opening_amountintegerСумма открытия
opening_currencystringВалюта открытия
opening_commentstringПримечание
opened_atstring
closes_atnull
overdue_actionnullКогда время вышло
updated_atstringОбновлено
created_atstringСоздано
creator_idintegerСоздатель
idintegerID
summaryobject
summary.currencystringВалюта
summary.rowsobject[]
summary.rows[].payment_typestringТип оплаты
summary.rows[].payment_type_idnullСпособ оплаты
summary.rows[].payment_type_namenull
summary.rows[].currencystringВалюта
summary.rows[].opening_balanceinteger
summary.rows[].closed_incomeinteger
summary.rows[].closed_outcomeinteger
summary.rows[].opening_amountintegerСумма открытия
summary.rows[].openinginteger
summary.rows[].incomeintegerДоход
summary.rows[].outcomeinteger
summary.rows[].expectedinteger
summary.rows[].by_sourcearray
summary.totalsobject[]
summary.totals[].currencystringВалюта
summary.totals[].closed_incomeinteger
summary.totals[].closed_outcomeinteger
summary.totals[].openinginteger
summary.totals[].incomeintegerДоход
summary.totals[].outcomeinteger
summary.totals[].expectedinteger
summary.totals[].opening_cashinteger
summary.totals[].cashinteger
summary.totals[].non_cashinteger
summary.checks_countintegerЧеков за 7 дн.
summary.returns_countintegerВозвраты (шт.)
summary.debtsarray
summary.transactionsarrayТранзакции
summary.closed_transactionsarray
summary.collection_returnsarray
closes_innull
companyobjectКомпания
company.idintegerID
company.parent_idnullРодитель
company.partner_idintegerПартнёр
company.district_idintegerРайон
company.industry_idintegerСфера деятельности
company.namestringНазвание
company.company_namestringКомпания
company.logoobjectЛоготип
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.innstringИНН
company.mfostringМФО
company.addressstringАдрес
company.latitudenullШирота
company.longitudenullДолгота
company.commentstringКомментарий
company.telegram_phonestringТелефон в Telegram
company.director_full_namestringФИО директора
company.bankstringБанк
company.payment_accountstringРасчётный счёт
company.agreement_numberstringНомер договора
company.agreement_datenull
company.atmos_terminal_idintegerID терминала в Atmos
company.uniaccess_auto_payment_credit_overdue_daysinteger
company.uniaccess_branch_idintegerBranch ID в Uniaccess
company.field_of_activitystringНаправление
company.vat_percentstringНДС (%)
company.is_using_new_my_uzcard_auto_payment_by_pinflbooleanИспользует новый метод MyUzcard для автосписания по ПИНФЛ
company.bonus_entry_periodintegerПериод учёта бонусов (в месяцах)
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_enabledbooleanВключено
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 включён
company.created_atstringСоздано
company.updated_atstringОбновлено
company.is_deletedbooleanУдалена
company.parentnullРодитель
company.directorobject
company.director.idintegerID
company.director.typestringТип
company.director.role_idintegerРоль
company.director.company_idintegerКомпания
company.director.partner_idnullПартнёр
company.director.usernamestringЛогин
company.director.pinflnullПИНФЛ
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
}

Пример ошибки · 422 ​

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