Проверить архив заказов
Ищет синхронизированные и архивные записи заказов.
orders_search
Попробуйте три запроса
- Вы указываетеФилиал
- ПомощникЧтение
- Вы получаетеПоля ответа
Для задачи «Проверить архив заказов» выполни чтение по выбранной записи (филиал). Выведи кратко: список позиций, следующее смещение.
- items
- Список позиций
- nextOffset
- Следующее смещение
- hasMore
- Продолжение
- Вы указываетеПредыдущий ответ
- ПомощникПродолжение
- Вы получаетеСледующая страница
Продолжи «Проверить архив заказов» с позиции прошлого ответа. Сохрани фильтры и размер страницы 3. Покажи новые строки отдельно.
- Вы указываетеПолученный ответ
- ПомощникРазбор значений
- Вы получаетеКраткое пояснение
На основании уже полученного ответа «Проверить архив заказов» объясни список позиций, следующее смещение. Отметь отсутствующие значения.
- items
- Список позиций
- nextOffset
- Следующее смещение
- hasMore
- Продолжение
Как работает действие
Это чтение. Выберите запись или задайте фильтры в доступной компании. При постраничном чтении используйте продолжение ответа с теми же фильтрами.
Описание разработчика
Find archived and synchronized order records. Use to discover canonical identifiers or inspect existing records. Do not use to create or modify records. Returns a bounded page of safe business summaries. These are Supabase synchronized/archive records; current orders can reside in active_orders_search. This archive is not a complete current-day sales or revenue source. For выручка за сегодня / today revenue use business_get_today_summary or metrics_get with revenue.paid and period=today, then check sourceStatus. Use the returned IDs unchanged in matching actions; no business state changes.
Параметры запроса
- id
- Идентификатор выбранной записи. необязательно · string · до символов 128
- locationId
- Идентификатор точки из текущего подключения. необязательно · string · до символов 128
- limit
- Максимальное число элементов на этой странице. обязательно по схеме · integer · по умолчанию 20 · минимум 1 · максимум 50
- offset
- Смещение из предыдущей страницы или начальное значение из схемы. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 10000
Что вернёт команда
- items
- Записи, которые вернул этот запрос. обязательно по схеме · array · до элементов 50
- nextOffset
- Смещение для получения следующей страницы. обязательно по схеме · integer / null
- hasMore
- Есть ли ещё одна страница результата. обязательно по схеме · boolean
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^\\u0000-\\u001f\\u007f/|]+$",
"description": "Canonical find archived and synchronized order records identifier returned by search. Copy the exact value; never derive it from a name, phone number, or another ID."
},
"locationId": {
"type": "string",
"minLength": 1,
"maxLength": 128,
"pattern": "^[^\\u0000-\\u001f\\u007f/|]+$",
"description": "Canonical establishment identifier returned by search. Copy the exact value; never derive it from a name, phone number, or another ID."
},
"limit": {
"default": 20,
"description": "Maximum returned records, from 1 to 50.",
"type": "integer",
"minimum": 1,
"maximum": 50
},
"offset": {
"default": 0,
"description": "Number of records to skip in the same search. Use nextOffset from the previous result with unchanged filters.",
"type": "integer",
"minimum": 0,
"maximum": 10000
}
},
"required": [
"limit",
"offset"
],
"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": {
"id": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "null"
}
],
"description": "Canonical find archived and synchronized order records record identifier. Use only with actions for this same entity type."
},
"number": {
"description": "Display order number; use id rather than this number for subsequent actions.",
"type": [
"number",
"null"
]
},
"type": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "null"
}
],
"description": "Exact stored order type."
},
"createdAt": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "null"
}
],
"description": "Stored creation timestamp; legacy values may not include a UTC offset."
},
"mustFinishAt": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "null"
}
],
"description": "Stored promised completion timestamp, when present."
},
"customerId": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "null"
}
],
"description": "Canonical customer ID when present; never substitute the order ID."
},
"amount": {
"description": "Recorded order total in the stored currency, not a newly calculated quote.",
"type": [
"number",
"null"
]
},
"paid": {
"description": "Recorded paid amount in the stored currency.",
"type": [
"number",
"null"
]
},
"currency": {
"anyOf": [
{
"type": "string",
"maxLength": 2000
},
{
"type": "null"
}
],
"description": "Currency marker stored on this order; it may be a symbol rather than an ISO code."
},
"version": {
"description": "Existing order version used by the order business service for concurrency.",
"type": [
"number",
"null"
]
},
"locationIds": {
"type": "array",
"items": {
"type": "string",
"description": "Canonical authorized establishment identifier."
},
"description": "Only establishments visible to this connection."
}
},
"required": [
"id",
"number",
"type",
"createdAt",
"mustFinishAt",
"customerId",
"amount",
"paid",
"currency",
"version",
"locationIds"
],
"additionalProperties": false
},
"description": "Matching authorized business records, with internal fields removed."
},
"nextOffset": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
],
"description": "Offset for the next page, or null when there is no next page."
},
"hasMore": {
"type": "boolean",
"description": "Whether the same search has another page."
}
},
"required": [
"items",
"nextOffset",
"hasMore"
],
"additionalProperties": false
}