Финансы · Чтение
Касса · Касса · Сессии · Просмотр · Открытие · Операция
pos_cash_session_get_open_operation
Попробуйте три запроса
Получить данные
- Вы указываетеФилиал
- ПомощникЧтение
- Вы получаетеПоля ответа
Запрос в чат
Для задачи «Касса / Касса / Сессии / Просмотр / Открытие / Операция» выполни чтение по выбранной записи (филиал). Выведи кратко: состояние, результат.
- state
- Состояние
- result
- Результат
Задать параметры
- Вы указываетеФилиал
- ПомощникСверка выбора
- Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Касса / Касса / Сессии / Просмотр / Открытие / Операция» на учебном примере с locationId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
- locationId
- DEMO-101
- comment
- Проверено на учебной записи
Разобрать ответ
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Касса / Касса / Сессии / Просмотр / Открытие / Операция» объясни состояние, результат. Отметь отсутствующие значения.
- state
- Состояние
- result
- Результат
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании.
Описание разработчика
Recover the exact atomic native POS opening receipt under current company authority, including after the shift was closed. This read never opens or recreates a shift.
Параметры запроса
- locationId
- Идентификатор точки из текущего подключения. обязательно по схеме · string
- openingCount
- Operator-declared cash count at opening. No ledger posting or provider payment occurs. обязательно по схеме · number · минимум 0 · максимум 1000000000000
- number
- Optional native display number; 0 is the current POS default. It is not a unique identifier. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 9007199254740991
- comment
- Opening note without credentials. обязательно по схеме · string · по умолчанию "" · до символов 1000
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
Что вернёт команда
- state
- Whether the opening and immutable receipt committed together. обязательно по схеме · string · варианты committed, not_started
- result
- Original committed opening result or null. обязательно по схеме · object / null
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"locationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Company establishment for this native POS shift. Must have a company cash account and currency."
},
"openingCount": {
"type": "number",
"minimum": 0,
"maximum": 1000000000000,
"description": "Operator-declared cash count at opening. No ledger posting or provider payment occurs."
},
"number": {
"default": 0,
"description": "Optional native display number; 0 is the current POS default. It is not a unique identifier.",
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"comment": {
"default": "",
"description": "Opening note without credentials.",
"type": "string",
"maxLength": 1000
},
"requestId": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{8,128}$",
"description": "Stable ID for these exact opening arguments; retain it for recovery and retries."
}
},
"required": [
"locationId",
"openingCount",
"number",
"comment",
"requestId"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"state": {
"type": "string",
"enum": [
"committed",
"not_started"
],
"description": "Whether the opening and immutable receipt committed together."
},
"result": {
"anyOf": [
{
"type": "object",
"properties": {
"shiftId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Created active Firestore POS shift ID, usable by native Orders and pos_cash_session_context/close."
},
"locationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Verified company establishment."
},
"openedAt": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
"description": "Immutable server-assigned opening timestamp."
},
"openingCount": {
"type": "number",
"minimum": 0,
"maximum": 1000000000000,
"description": "Opening cash observation."
},
"number": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Native display number; use shiftId for identity."
},
"openWorker": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,128}$",
"description": "Current grant-bound native employee; never supplied by the caller."
}
},
"required": [
"shiftId",
"locationId",
"openedAt",
"openingCount",
"number",
"openWorker"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Original committed opening result or null."
}
},
"required": [
"state",
"result"
],
"additionalProperties": false
}