Заказы · Чтение
Найти текущий заказ
Ищет в текущем источнике заказов по номеру или идентификатору и доступной точке.
active_orders_search
Попробуйте три запроса
По номеру
- Вы указываетеНомер 1042
- ПомощникПоиск в текущих заказах
- Вы получаетеНайденные записи
Запрос в чат
Найди текущий заказ с видимым номером 1042. Покажи совпадения и их идентификаторы.
- Номер
- 1042
- ID
- DEMO-302
В одной точке
- Вы указываетеНомер и филиал
- ПомощникФильтр точки
- Вы получаетеСовпадение
Запрос в чат
Найди заказ 1042 в выбранном филиале. Покажи, к какой точке относится найденная запись.
- Номер
- 1042
- Филиал
- Учебный центр
Неполная выдача
- Вы указываетеОтвет поиска
- ПомощникПроверка hasMore
- Вы получаетеСледующая страница
Запрос в чат
Проверь, есть ли следующая страница поиска текущих заказов. Если есть, продолжи с теми же фильтрами и верни новые ID.
Страница 1hasMore
Страница 2nextCursor
Пример вызова через sabsus_action_call
{
"name": "active_orders_search",
"arguments": {
"query": "1042",
"limit": 5
}
}Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании. При постраничном чтении используйте продолжение ответа с теми же фильтрами.
Описание разработчика
Find orders currently retained in the native Firestore Orders collection, including canceled records. Use this live-source discovery for documents and payment links; orders_search separately reads the synchronized Supabase archive. Filters stored IDs/display numbers and locations without calculating, creating, reserving or changing an order.
Параметры запроса
- query
- Поисковое выражение для этой операции. необязательно · string · до символов 200
- locationId
- Идентификатор точки из текущего подключения. необязательно · string · до символов 128
- limit
- Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 20 · минимум 1 · максимум 50
- cursor
- Продолжение из предыдущего ответа при тех же фильтрах. необязательно · string · до символов 600
Что вернёт команда
- items
- Записи, которые вернул этот запрос. обязательно по схеме · array · до элементов 50
- nextCursor
- Курсор для получения следующей страницы. обязательно по схеме · string / null
- hasMore
- Есть ли ещё одна страница результата. обязательно по схеме · boolean
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"query": {
"description": "Optional case-insensitive name or stored order-number substring. This filters a bounded scan, not a fuzzy or full-text index; continue with nextCursor even after an empty page.",
"type": "string",
"maxLength": 200
},
"locationId": {
"description": "Optional canonical establishment identifier from company location discovery. It must be available to this connection.",
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[A-Za-z0-9_~:@+.-]+$"
},
"limit": {
"default": 20,
"description": "Maximum matching records to return, from 1 to 50. Each request scans at most 200 stored records.",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"cursor": {
"description": "Opaque nextCursor from the previous page of this exact search, workspace and location permissions. Keep the same filters.",
"type": "string",
"maxLength": 600
}
},
"required": [
"limit"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"items": {
"maxItems": 50,
"type": "array",
"items": {
"type": "object",
"properties": {
"orderId": {
"type": "string",
"description": "Canonical Companies/{company}/Orders document identifier. Use for documents and payment links; never substitute the display number."
},
"number": {
"description": "Stored order display number, when assigned.",
"type": [
"number",
"null"
]
},
"type": {
"type": "string",
"description": "Exact stored order Type; no lifecycle enum is inferred."
},
"locationId": {
"description": "Canonical stored Establishment identifier. Missing location is visible only to all-location staff.",
"type": [
"string",
"null"
]
},
"customerId": {
"description": "Stored order.Client.ID, when present. Customer details require separate CRM access.",
"type": [
"string",
"null"
]
},
"amount": {
"description": "Stored native Amount in the recorded currency; this is not a new quote.",
"type": [
"number",
"null"
]
},
"paid": {
"description": "Stored native Paid value. It is not a newly reconciled provider settlement.",
"type": [
"number",
"null"
]
},
"currency": {
"type": "string",
"description": "Exact stored Currency marker; it may be a symbol rather than an ISO currency code."
},
"version": {
"description": "Stored native order version, when available.",
"type": [
"number",
"null"
]
},
"createdAt": {
"anyOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"type": "null"
}
],
"description": "Recorded DateCreate as UTC, or null when no unambiguous absolute timestamp exists."
},
"mustFinishAt": {
"anyOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"type": "null"
}
],
"description": "Recorded DateMustFinish as UTC, when available."
},
"updatedAt": {
"anyOf": [
{
"$ref": "#/$defs/_mcp0"
},
{
"type": "null"
}
],
"description": "Recorded LastUpdate as UTC, when available."
},
"status": {
"description": "Native Status entry selected by latest Date, then highest Number, matching OrdersRealtimeSync. Exact ties retain the first entry; no transition is inferred.",
"type": [
"string",
"null"
]
},
"canceled": {
"type": "boolean",
"description": "Whether the native canceled field is explicitly true."
},
"itemCount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Number of stored line items; this is not a sum of quantities."
}
},
"required": [
"orderId",
"number",
"type",
"locationId",
"customerId",
"amount",
"paid",
"currency",
"version",
"createdAt",
"mustFinishAt",
"updatedAt",
"status",
"canceled",
"itemCount"
],
"additionalProperties": false
},
"description": "Matching accessible records in stable document-ID order, not chronological or relevance order."
},
"nextCursor": {
"description": "Continue the same search using this cursor, or null when the scanned collection is exhausted.",
"type": [
"string",
"null"
]
},
"hasMore": {
"type": "boolean",
"description": "Whether more stored records remain to scan; later pages may contain no matching records."
}
},
"required": [
"items",
"nextCursor",
"hasMore"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"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))$"
}
}
}