Кассовые смены
Смена кассира на кассе продаж: открытие с разменной суммой, расходы из кассы во время смены и закрытие с пересчётом денег по каждому типу оплаты и валюте. Кассир видит свои смены и смены касс, за которыми он закреплён (закреплённые кассиры работают в общей смене кассы с любого устройства), директор — все смены компании.
| Метод | Адрес | Назначение |
|---|---|---|
| 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, кто отклонил, строки по типу оплаты и валюте); пустой массив без смены.
/company/trade/cashbox-shift/currentЗаголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
data | null | Данные |
settings | object | Настройки |
settings.is_enabled | boolean | Включено |
settings.is_working_hours_enabled | boolean | Рабочее время смены |
settings.working_hours_from | string | Начало рабочего времени |
settings.working_hours_to | string | Конец рабочего времени |
settings.is_round_the_clock | boolean | 24-часовая смена |
settings.overdue_action | string | Когда время вышло |
pos_layout | object | |
pos_layout.is_catalog_enabled | boolean | Каталог |
pos_layout.is_quick_panel_enabled | boolean | Быстрая панель |
manual_discounts | object | |
manual_discounts.quick_discounts | array | |
manual_discounts.is_limited | boolean | |
manual_discounts.max_percent | null | |
collection_returns | array |
{
"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] «Попало» / «Ушло» добавляют и смены, закрытые в этом периоде.
/company/trade/cashbox-shift/statsЗаголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
filter | array | Нет | |
filter.company_id | string | Нет | Компания |
filter.cashbox_id | integer | Нет | Касса |
filter.opened_at | string | Нет |
Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
income | object | Доход |
income.cash | object | |
income.cash.uzs | integer | |
income.cash.usd | integer | |
income.non_cash | object | |
income.non_cash.uzs | integer | |
income.non_cash.usd | integer | |
outcome | object | |
outcome.cash | object | |
outcome.cash.uzs | integer | |
outcome.cash.usd | integer | |
outcome.non_cash | object | |
outcome.non_cash.uzs | integer | |
outcome.non_cash.usd | integer | |
opening | object | |
opening.cash | object | |
opening.cash.uzs | integer | |
opening.cash.usd | integer | |
current | object | |
current.cash | object | |
current.cash.uzs | integer | |
current.cash.usd | integer | |
current.non_cash | object | |
current.non_cash.uzs | integer | |
current.non_cash.usd | integer |
{
"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.
/company/trade/cashbox-shift/expense-reasonsЗаголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
data | object[] | Данные |
data[].id | integer | ID |
data[].name | string | Название |
data[].parent | object | Родитель |
data[].parent.id | integer | ID |
data[].parent.name | string | Название |
{
"data": [
{
"id": 838,
"name": "Обед",
"parent": {
"id": 3,
"name": "Transaction reason 2"
}
},
{
"id": 839,
"name": "Транспорт",
"parent": null
}
]
}Добавить тип расхода
Создаёт статью «Расход» с указанным названием в группе «Расходы из кассы» (группа создаётся при необходимости). Если статья с таким названием уже есть, возвращается она — дубль не создаётся.
/company/trade/cashbox-shift/expense-reasonsЗаголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
name | string | Да | Название. Макс. 255 символов |
{
"name": "Такси"
}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
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
id | integer | ID |
name | string | Название |
parent | object | Родитель |
parent.id | integer | ID |
parent.name | string | Название |
{
"id": 841,
"name": "Такси",
"parent": {
"id": 840,
"name": "Расходы из кассы"
}
}Закрыть смену
Закрывает открытую смену по пересчитанным суммам actuals (не указанная строка считается равной ожидаемой). Расхождение по любой строке требует closing_comment и проводится по кассе приходом или расходом. closing_action: keep — всё остаётся в кассе, transfer_all — всё уходит инкассацией в основную кассу, transfer_part — в кассе остаются наличные из leave_amounts (не больше пересчитанных). Итоговые цифры смены замораживаются.
/company/trade/cashbox-shift/{model}/closeИз формы (
multipart/form-data) методPATCHотправляется какPOSTс параметром?_method=PATCH.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры пути
| Параметр | Описание |
|---|---|
model | ID записи |
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
actuals | object[] | Нет | Фактические суммы. Макс. 50 элементов |
actuals[].payment_type | string | Да | Тип оплаты. Допустимые значения: cash, card, bank |
actuals[].payment_type_id | integer | Нет | Способ оплаты |
actuals[].currency | string | Да | Валюта. Допустимые значения: uzs, usd, eur, rub |
actuals[].amount | number | Да | Фактически. До 2 знаков после запятой. Не меньше -999999999999.99. Не больше 999999999999.99 |
closing_action | string | Да | Действие при закрытии. Допустимые значения: keep, transfer_all, transfer_part |
leave_amounts | object[] | Нет | Сумма остатка. Макс. 20 элементов |
leave_amounts[].currency | string | Да | Валюта. Без повторов. Допустимые значения: uzs, usd, eur, rub |
leave_amounts[].amount | number | Да | Сумма остатка. До 2 знаков после запятой. Не меньше 0. Не больше 999999999999.99 |
closing_comment | string | Нет | Комментарий к кассовой смене. Макс. 1000 символов |
{
"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"
}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
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
id | integer | ID |
creator_id | integer | Создатель |
company_id | integer | Компания |
cashbox_id | integer | Касса |
stock_id | integer | Склад |
closed_by_id | integer | |
collection_id | null | |
status | string | Статус |
opening_balances | object[] | |
opening_balances[].amount | integer | Сумма |
opening_balances[].currency | string | Валюта |
opening_balances[].payment_type | string | Тип оплаты |
opening_amount | integer | Сумма открытия |
opening_currency | null | Валюта открытия |
opening_comment | null | Примечание |
opening_transaction_id | integer | |
closing_transaction_id | integer | |
closing_action | string | Действие при закрытии |
closing_comment | null | Комментарий к кассовой смене |
summary | object | |
summary.currency | string | Валюта |
summary.rows | object[] | |
summary.rows[].payment_type | string | Тип оплаты |
summary.rows[].payment_type_id | null | Способ оплаты |
summary.rows[].payment_type_name | null | |
summary.rows[].currency | string | Валюта |
summary.rows[].opening_balance | integer | |
summary.rows[].closed_income | integer | |
summary.rows[].closed_outcome | integer | |
summary.rows[].opening_amount | integer | Сумма открытия |
summary.rows[].opening | integer | |
summary.rows[].income | integer | Доход |
summary.rows[].outcome | integer | |
summary.rows[].expected | integer | |
summary.rows[].by_source | array | |
summary.rows[].actual | integer | |
summary.rows[].difference | integer | |
summary.rows[].transferred | integer | |
summary.rows[].left | integer | |
summary.totals | object[] | |
summary.totals[].currency | string | Валюта |
summary.totals[].closed_income | integer | |
summary.totals[].closed_outcome | integer | |
summary.totals[].opening | integer | |
summary.totals[].income | integer | Доход |
summary.totals[].outcome | integer | |
summary.totals[].expected | integer | |
summary.totals[].actual | integer | |
summary.totals[].difference | integer | |
summary.totals[].transferred | integer | |
summary.totals[].left | integer | |
summary.totals[].opening_cash | integer | |
summary.totals[].cash | integer | |
summary.totals[].non_cash | integer | |
summary.checks_count | integer | Чеков за 7 дн. |
summary.returns_count | integer | Возвраты (шт.) |
summary.debts | array | |
summary.transactions | array | Транзакции |
summary.closed_transactions | array | |
summary.collection_returns | array | |
opened_at | string | |
closes_at | null | |
overdue_action | null | Когда время вышло |
closed_at | string | |
created_at | string | Создано |
updated_at | string | Обновлено |
company | object | Компания |
company.id | integer | ID |
company.parent_id | null | Родитель |
company.partner_id | integer | Партнёр |
company.district_id | integer | Район |
company.industry_id | integer | Сфера деятельности |
company.name | string | Название |
company.company_name | string | Компания |
company.logo | object | Логотип |
company.logo.original | object | |
company.logo.original.raw | string | |
company.logo.original.webp | string | |
company.logo.widen_25 | object | |
company.logo.widen_25.raw | string | |
company.logo.widen_25.webp | string | |
company.logo.widen_100 | object | |
company.logo.widen_100.raw | string | |
company.logo.widen_100.webp | string | |
company.logo.widen_500 | object | |
company.logo.widen_500.raw | string | |
company.logo.widen_500.webp | string | |
company.inn | string | ИНН |
company.mfo | string | МФО |
company.address | string | Адрес |
company.latitude | null | Широта |
company.longitude | null | Долгота |
company.comment | string | Комментарий |
company.telegram_phone | string | Телефон в Telegram |
company.director_full_name | string | ФИО директора |
company.bank | string | Банк |
company.payment_account | string | Расчётный счёт |
company.agreement_number | string | Номер договора |
company.agreement_date | null | |
company.atmos_terminal_id | integer | ID терминала в Atmos |
company.uniaccess_auto_payment_credit_overdue_days | integer | |
company.uniaccess_branch_id | integer | Branch ID в Uniaccess |
company.field_of_activity | string | Направление |
company.vat_percent | string | НДС (%) |
company.is_using_new_my_uzcard_auto_payment_by_pinfl | boolean | Использует новый метод MyUzcard для автосписания по ПИНФЛ |
company.bonus_entry_period | integer | Период учёта бонусов (в месяцах) |
company.abc_segment_a | integer | |
company.abc_segment_b | integer | |
company.abc_segment_c | integer | |
company.is_pos_window_enabled | boolean | |
company.is_multi_currency_sale | boolean | |
company.cashbox_shift_settings | object | |
company.cashbox_shift_settings.is_enabled | boolean | Включено |
company.pos_layout_settings | null | |
company.manual_discount_settings | null | |
company.is_manual_sale_price | boolean | |
company.wholesale_settings | null | |
company.product_settings | null | |
company.has_bank_payment_type | boolean | |
company.payment_type_names | null |
{
"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
{
"message": "Есть расхождение — укажите причину в комментарии",
"errors": {
"closing_comment": [
"Есть расхождение — укажите причину в комментарии"
]
}
}Расход из кассы
Проводит расход из кассы открытой смены по существующей статье transaction_reason_id или по новой, заданной названием reason_name (создаётся статья «Расход»). Возвращает созданную кассовую операцию; по закрытой смене — ошибка 400.
/company/trade/cashbox-shift/{model}/expenseЗаголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры пути
| Параметр | Описание |
|---|---|
model | ID записи |
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
transaction_reason_id | integer | Если не передано reason_name | Тип расхода. ID существующей записи, доступной пользователю |
reason_name | string | Если не передано transaction_reason_id | Название расхода. Макс. 255 символов |
reason_parent_id | integer | Нет | Группа расхода. ID существующей записи, доступной пользователю |
payment_type | string | Да | Тип оплаты. Допустимые значения: cash, card, bank |
currency | string | Да | Валюта. Допустимые значения: uzs, usd, eur, rub |
amount | number | Да | Сумма. До 2 знаков после запятой. Не меньше 0.01. Не больше 999999999999.99 |
comment | string | Нет | Комментарий. Макс. 1000 символов |
{
"transaction_reason_id": 833,
"payment_type": "cash",
"currency": "uzs",
"amount": 200,
"comment": "Обед сотрудникам"
}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
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
additional | object | |
additional.balances_after | object | |
additional.balances_after.card | object | |
additional.balances_after.card.uzs | string | |
additional.balances_after.cash | object | |
additional.balances_after.cash.uzs | string | |
additional.on_hold_after | array | |
source_data | object | |
source_data.cashbox_shift_id | integer | |
cashbox_id | integer | Касса |
type | string | Тип |
payment_type | string | Тип оплаты |
currency | string | Валюта |
amount | integer | Сумма |
status | string | Статус |
source_type | string | Источник |
source_id | integer | Источник |
comment | string | Комментарий |
updated_at | string | Обновлено |
created_at | string | Создано |
company_id | integer | Компания |
creator_id | integer | Создатель |
id | integer | ID |
cashbox | object | Касса |
cashbox.id | integer | ID |
cashbox.creator_id | integer | Создатель |
cashbox.company_id | integer | Компания |
cashbox.name | string | Название |
cashbox.type | string | Тип |
cashbox.created_at | string | Создано |
cashbox.updated_at | string | Обновлено |
cashbox.is_deleted | boolean | Удалена |
source | null | |
contract_number | null | Номер контракта |
{
"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.
/company/trade/cashbox-shift/{model}/collection-return/{collectionReturn}/acknowledgeИз формы (
multipart/form-data) методPATCHотправляется какPOSTс параметром?_method=PATCH.
Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры пути
| Параметр | Описание |
|---|---|
model | ID записи |
collectionReturn | Collection Return |
Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
data | object | Данные |
data.id | integer | ID |
data.collection_id | integer | |
data.is_while_closed | boolean | |
data.comment | string | Комментарий |
data.creator | object | |
data.creator.id | integer | ID |
data.creator.username | string | Логин |
data.creator.profile | object | |
data.creator.profile.first_name | null | Имя |
data.creator.profile.last_name | null | Фамилия |
data.items | object[] | Состав |
data.items[].payment_type | string | Тип оплаты |
data.items[].currency | string | Валюта |
data.items[].amount | integer | Сумма |
data.created_at | string | Создано |
data.acknowledged_at | string |
{
"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 — включены ли смены в компании. Кассир видит только свои смены, директор — все смены компании.
/company/trade/cashbox-shiftЗаголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: 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 |
GET /company/trade/cashbox-shift?sort[0]=-idОтвет · 200
Постраничный ответ: записи в data[], пагинация в links и meta.
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
data | object[] | Данные |
data[].id | integer | ID |
data[].creator_id | integer | Создатель |
data[].company_id | integer | Компания |
data[].cashbox_id | integer | Касса |
data[].stock_id | integer | Склад |
data[].closed_by_id | null | |
data[].collection_id | null | |
data[].status | string | Статус |
data[].opening_balances | object[] | |
data[].opening_balances[].amount | integer | Сумма |
data[].opening_balances[].currency | string | Валюта |
data[].opening_balances[].payment_type | string | Тип оплаты |
data[].opening_amount | integer | Сумма открытия |
data[].opening_currency | null | Валюта открытия |
data[].opening_comment | null | Примечание |
data[].opening_transaction_id | integer | |
data[].closing_transaction_id | null | |
data[].closing_action | null | Действие при закрытии |
data[].closing_comment | null | Комментарий к кассовой смене |
data[].opened_at | string | |
data[].closes_at | null | |
data[].overdue_action | null | Когда время вышло |
data[].closed_at | null | |
data[].created_at | string | Создано |
data[].updated_at | string | Обновлено |
data[].figures | object[] | |
data[].figures[].currency | string | Валюта |
data[].figures[].closed_income | integer | |
data[].figures[].closed_outcome | integer | |
data[].figures[].opening | integer | |
data[].figures[].income | integer | Доход |
data[].figures[].outcome | integer | |
data[].figures[].expected | integer | |
data[].figures[].opening_cash | integer | |
data[].figures[].cash | integer | |
data[].figures[].non_cash | integer | |
data[].figures[].refunds | integer | |
data[].figures[].expenses | integer | |
data[].company | object | Компания |
data[].company.id | integer | ID |
data[].company.parent_id | null | Родитель |
data[].company.partner_id | integer | Партнёр |
data[].company.district_id | integer | Район |
data[].company.industry_id | integer | Сфера деятельности |
data[].company.name | string | Название |
data[].company.company_name | string | Компания |
data[].company.logo | object | Логотип |
data[].company.logo.original | object | |
data[].company.logo.original.raw | string | |
data[].company.logo.original.webp | string | |
data[].company.logo.widen_25 | object | |
data[].company.logo.widen_25.raw | string | |
data[].company.logo.widen_25.webp | string | |
data[].company.logo.widen_100 | object | |
data[].company.logo.widen_100.raw | string | |
data[].company.logo.widen_100.webp | string | |
data[].company.logo.widen_500 | object | |
data[].company.logo.widen_500.raw | string | |
data[].company.logo.widen_500.webp | string | |
data[].company.inn | string | ИНН |
data[].company.mfo | string | МФО |
data[].company.address | string | Адрес |
data[].company.latitude | null | Широта |
data[].company.longitude | null | Долгота |
data[].company.comment | string | Комментарий |
data[].company.telegram_phone | string | Телефон в Telegram |
data[].company.director_full_name | string | ФИО директора |
data[].company.bank | string | Банк |
data[].company.payment_account | string | Расчётный счёт |
data[].company.agreement_number | string | Номер договора |
data[].company.agreement_date | null | |
data[].company.atmos_terminal_id | integer | ID терминала в Atmos |
data[].company.uniaccess_auto_payment_credit_overdue_days | integer | |
data[].company.uniaccess_branch_id | integer | Branch ID в Uniaccess |
data[].company.field_of_activity | string | Направление |
data[].company.vat_percent | string | НДС (%) |
data[].company.is_using_new_my_uzcard_auto_payment_by_pinfl | boolean | Использует новый метод MyUzcard для автосписания по ПИНФЛ |
data[].company.bonus_entry_period | integer | Период учёта бонусов (в месяцах) |
data[].company.abc_segment_a | integer | |
data[].company.abc_segment_b | integer | |
data[].company.abc_segment_c | integer | |
data[].company.is_pos_window_enabled | boolean | |
data[].company.is_multi_currency_sale | boolean | |
data[].company.cashbox_shift_settings | object | |
data[].company.cashbox_shift_settings.is_enabled | boolean | Включено |
data[].company.pos_layout_settings | null | |
data[].company.manual_discount_settings | null | |
data[].company.is_manual_sale_price | boolean | |
data[].company.wholesale_settings | null | |
data[].company.product_settings | null | |
data[].company.has_bank_payment_type | boolean | |
data[].company.payment_type_names | null | |
data[].company.is_ican_turned_on | boolean | ICAN включён |
data[].company.created_at | string | Создано |
data[].company.updated_at | string | Обновлено |
data[].company.is_deleted | boolean | Удалена |
data[].company.company_currencies | object[] | |
data[].company.company_currencies[].id | integer | ID |
data[].company.company_currencies[].company_id | integer | Компания |
data[].company.company_currencies[].currency | string | Валюта |
data[].company.company_currencies[].rate | integer | |
data[].company.company_currencies[].is_sale | boolean | |
data[].company.company_currencies[].created_at | string | Создано |
data[].company.company_currencies[].updated_at | string | Обновлено |
{
"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 — печатный отчёт по смене.
/company/trade/cashbox-shift/{model}Заголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Параметры пути
| Параметр | Описание |
|---|---|
model | ID записи |
Ответ · 200
Поля ответа
| Поле | Тип | Описание |
|---|---|---|
id | integer | ID |
creator_id | integer | Создатель |
company_id | integer | Компания |
cashbox_id | integer | Касса |
stock_id | integer | Склад |
closed_by_id | null | |
collection_id | null | |
status | string | Статус |
opening_balances | object[] | |
opening_balances[].amount | integer | Сумма |
opening_balances[].currency | string | Валюта |
opening_balances[].payment_type | string | Тип оплаты |
opening_amount | integer | Сумма открытия |
opening_currency | string | Валюта открытия |
opening_comment | null | Примечание |
opening_transaction_id | integer | |
closing_transaction_id | null | |
closing_action | null | Действие при закрытии |
closing_comment | null | Комментарий к кассовой смене |
summary | object | |
summary.currency | string | Валюта |
summary.rows | object[] | |
summary.rows[].payment_type | string | Тип оплаты |
summary.rows[].payment_type_id | null | Способ оплаты |
summary.rows[].payment_type_name | null | |
summary.rows[].currency | string | Валюта |
summary.rows[].opening_balance | integer | |
summary.rows[].closed_income | integer | |
summary.rows[].closed_outcome | integer | |
summary.rows[].opening_amount | integer | Сумма открытия |
summary.rows[].opening | integer | |
summary.rows[].income | integer | Доход |
summary.rows[].outcome | integer | |
summary.rows[].expected | integer | |
summary.rows[].by_source | object | |
summary.rows[].by_source.sale | object | |
summary.rows[].by_source.sale.income | integer | Доход |
summary.rows[].by_source.sale.outcome | integer | |
summary.rows[].by_source.client_debt | object | |
summary.rows[].by_source.client_debt.income | integer | Доход |
summary.rows[].by_source.client_debt.outcome | integer | |
summary.rows[].by_source.reason | object | Причина |
summary.rows[].by_source.reason.income | integer | Доход |
summary.rows[].by_source.reason.outcome | integer | |
summary.totals | object[] | |
summary.totals[].currency | string | Валюта |
summary.totals[].closed_income | integer | |
summary.totals[].closed_outcome | integer | |
summary.totals[].opening | integer | |
summary.totals[].income | integer | Доход |
summary.totals[].outcome | integer | |
summary.totals[].expected | integer | |
summary.totals[].opening_cash | integer | |
summary.totals[].cash | integer | |
summary.totals[].non_cash | integer | |
summary.checks_count | integer | Чеков за 7 дн. |
summary.returns_count | integer | Возвраты (шт.) |
summary.debts | array | |
summary.transactions | object[] | Транзакции |
summary.transactions[].id | integer | ID |
summary.transactions[].type | string | Тип |
summary.transactions[].payment_type | string | Тип оплаты |
summary.transactions[].payment_type_id | null | Способ оплаты |
summary.transactions[].currency | string | Валюта |
summary.transactions[].amount | integer | Сумма |
summary.transactions[].status | string | Статус |
summary.transactions[].source_type | string | Источник |
summary.transactions[].source_id | integer | Источник |
summary.transactions[].sale_id | null | Продажа |
summary.transactions[].reason | null | Причина |
summary.transactions[].comment | null | Комментарий |
summary.transactions[].created_at | string | Создано |
summary.closed_transactions | array | |
summary.collection_returns | array | |
opened_at | string | |
closes_at | null | |
overdue_action | null | Когда время вышло |
closed_at | null | |
created_at | string | Создано |
updated_at | string | Обновлено |
closes_in | null | |
company | object | Компания |
company.id | integer | ID |
company.parent_id | null | Родитель |
company.partner_id | integer | Партнёр |
company.district_id | integer | Район |
company.industry_id | integer | Сфера деятельности |
company.name | string | Название |
company.company_name | string | Компания |
company.logo | object | Логотип |
company.logo.original | object | |
company.logo.original.raw | string | |
company.logo.original.webp | string | |
company.logo.widen_25 | object | |
company.logo.widen_25.raw | string | |
company.logo.widen_25.webp | string | |
company.logo.widen_100 | object | |
company.logo.widen_100.raw | string | |
company.logo.widen_100.webp | string | |
company.logo.widen_500 | object | |
company.logo.widen_500.raw | string | |
company.logo.widen_500.webp | string | |
company.inn | string | ИНН |
company.mfo | string | МФО |
company.address | string | Адрес |
company.latitude | null | Широта |
company.longitude | null | Долгота |
company.comment | string | Комментарий |
company.telegram_phone | string | Телефон в Telegram |
company.director_full_name | string | ФИО директора |
company.bank | string | Банк |
company.payment_account | string | Расчётный счёт |
company.agreement_number | string | Номер договора |
company.agreement_date | null | |
company.atmos_terminal_id | integer | ID терминала в Atmos |
company.uniaccess_auto_payment_credit_overdue_days | integer | |
company.uniaccess_branch_id | integer | Branch ID в Uniaccess |
company.field_of_activity | string | Направление |
company.vat_percent | string | НДС (%) |
company.is_using_new_my_uzcard_auto_payment_by_pinfl | boolean | Использует новый метод MyUzcard для автосписания по ПИНФЛ |
{
"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, если смены отключены в настройках, у кассира уже есть открытая смена на другой кассе или на кассе работает кассир, с которым она не общая.
/company/trade/cashbox-shiftЗаголовки
| Заголовок | Значение | Описание |
|---|---|---|
Authorization | Bearer {token} | Токен из POST /common/auth/login |
Accept | application/json | Ответ в JSON |
Accept-Language | ru | Язык сообщений и названий: ru, uz, oz |
Тело запроса
| Поле | Тип | Обязательно | Описание |
|---|---|---|---|
cashbox_id | integer | Да | Касса. ID существующей записи, доступной пользователю |
stock_id | integer | Да | Склад. ID существующей записи, доступной пользователю |
opening_amount | number | Нет | Сумма открытия. До 2 знаков после запятой. Не меньше 0. Не больше 999999999999.99 |
opening_currency | string | Да | Валюта открытия. Допустимые значения: uzs, usd, eur, rub |
opening_comment | string | Нет | Примечание. Макс. 1000 символов |
{
"cashbox_id": 2,
"stock_id": 1,
"opening_amount": 500,
"opening_currency": "uzs",
"opening_comment": "Размен"
}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_balances | object[] | |
opening_balances[].payment_type | string | Тип оплаты |
opening_balances[].currency | string | Валюта |
opening_balances[].amount | integer | Сумма |
company_id | integer | Компания |
cashbox_id | integer | Касса |
stock_id | integer | Склад |
status | string | Статус |
opening_transaction_id | integer | |
opening_amount | integer | Сумма открытия |
opening_currency | string | Валюта открытия |
opening_comment | string | Примечание |
opened_at | string | |
closes_at | null | |
overdue_action | null | Когда время вышло |
updated_at | string | Обновлено |
created_at | string | Создано |
creator_id | integer | Создатель |
id | integer | ID |
summary | object | |
summary.currency | string | Валюта |
summary.rows | object[] | |
summary.rows[].payment_type | string | Тип оплаты |
summary.rows[].payment_type_id | null | Способ оплаты |
summary.rows[].payment_type_name | null | |
summary.rows[].currency | string | Валюта |
summary.rows[].opening_balance | integer | |
summary.rows[].closed_income | integer | |
summary.rows[].closed_outcome | integer | |
summary.rows[].opening_amount | integer | Сумма открытия |
summary.rows[].opening | integer | |
summary.rows[].income | integer | Доход |
summary.rows[].outcome | integer | |
summary.rows[].expected | integer | |
summary.rows[].by_source | array | |
summary.totals | object[] | |
summary.totals[].currency | string | Валюта |
summary.totals[].closed_income | integer | |
summary.totals[].closed_outcome | integer | |
summary.totals[].opening | integer | |
summary.totals[].income | integer | Доход |
summary.totals[].outcome | integer | |
summary.totals[].expected | integer | |
summary.totals[].opening_cash | integer | |
summary.totals[].cash | integer | |
summary.totals[].non_cash | integer | |
summary.checks_count | integer | Чеков за 7 дн. |
summary.returns_count | integer | Возвраты (шт.) |
summary.debts | array | |
summary.transactions | array | Транзакции |
summary.closed_transactions | array | |
summary.collection_returns | array | |
closes_in | null | |
company | object | Компания |
company.id | integer | ID |
company.parent_id | null | Родитель |
company.partner_id | integer | Партнёр |
company.district_id | integer | Район |
company.industry_id | integer | Сфера деятельности |
company.name | string | Название |
company.company_name | string | Компания |
company.logo | object | Логотип |
company.logo.original | object | |
company.logo.original.raw | string | |
company.logo.original.webp | string | |
company.logo.widen_25 | object | |
company.logo.widen_25.raw | string | |
company.logo.widen_25.webp | string | |
company.logo.widen_100 | object | |
company.logo.widen_100.raw | string | |
company.logo.widen_100.webp | string | |
company.logo.widen_500 | object | |
company.logo.widen_500.raw | string | |
company.logo.widen_500.webp | string | |
company.inn | string | ИНН |
company.mfo | string | МФО |
company.address | string | Адрес |
company.latitude | null | Широта |
company.longitude | null | Долгота |
company.comment | string | Комментарий |
company.telegram_phone | string | Телефон в Telegram |
company.director_full_name | string | ФИО директора |
company.bank | string | Банк |
company.payment_account | string | Расчётный счёт |
company.agreement_number | string | Номер договора |
company.agreement_date | null | |
company.atmos_terminal_id | integer | ID терминала в Atmos |
company.uniaccess_auto_payment_credit_overdue_days | integer | |
company.uniaccess_branch_id | integer | Branch ID в Uniaccess |
company.field_of_activity | string | Направление |
company.vat_percent | string | НДС (%) |
company.is_using_new_my_uzcard_auto_payment_by_pinfl | boolean | Использует новый метод MyUzcard для автосписания по ПИНФЛ |
company.bonus_entry_period | integer | Период учёта бонусов (в месяцах) |
company.abc_segment_a | integer | |
company.abc_segment_b | integer | |
company.abc_segment_c | integer | |
company.is_pos_window_enabled | boolean | |
company.is_multi_currency_sale | boolean | |
company.cashbox_shift_settings | object | |
company.cashbox_shift_settings.is_enabled | boolean | Включено |
company.pos_layout_settings | null | |
company.manual_discount_settings | null | |
company.is_manual_sale_price | boolean | |
company.wholesale_settings | null | |
company.product_settings | null | |
company.has_bank_payment_type | boolean | |
company.payment_type_names | null | |
company.is_ican_turned_on | boolean | ICAN включён |
company.created_at | string | Создано |
company.updated_at | string | Обновлено |
company.is_deleted | boolean | Удалена |
company.parent | null | Родитель |
company.director | object | |
company.director.id | integer | ID |
company.director.type | string | Тип |
company.director.role_id | integer | Роль |
company.director.company_id | integer | Компания |
company.director.partner_id | null | Партнёр |
company.director.username | string | Логин |
company.director.pinfl | null | ПИНФЛ |
{
"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
{
"message": "Выбранная запись не существует или была удалена (и ещё 1 ошибка)",
"errors": {
"cashbox_id": [
"Выбранная запись не существует или была удалена"
],
"stock_id": [
"Выбранная запись не существует или была удалена"
]
}
}
