MCP Control
Заказы · Чтение

Текущие · Заказы · Просмотр

active_orders_get
Упакованный заказ на стойке

Попробуйте три запроса

Получить данные
  1. Вы указываетеЗаказ
  2. ПомощникЧтение
  3. Вы получаетеПоля ответа
Запрос в чат
Для задачи «Текущие / Заказы / Просмотр» выполни чтение по выбранной записи (заказ). Выведи кратко: заказ, number.
Что искать в ответе
orderId
Заказ
number
Поле ответа
type
Тип
Задать параметры
  1. Вы указываетеЗаказ
  2. ПомощникСверка выбора
  3. Вы получаетеТочный объект
Запрос в чат
Покажи, как получить «Текущие / Заказы / Просмотр» на учебном примере с orderId = DEMO-101. Объясни, какие ещё данные нужны и как будет выглядеть ответ.
Фрагмент учебных параметров
orderId
DEMO-101
Разобрать ответ
  1. Вы указываетеПолученный ответ
  2. ПомощникРазбор значений
  3. Вы получаетеКраткое пояснение
Запрос в чат
На основании уже полученного ответа «Текущие / Заказы / Просмотр» объясни заказ, number. Отметь отсутствующие значения.
Поля для проверки
orderId
Заказ
number
Поле ответа
type
Тип
Как работает действие

Это чтение. Выберите запись или задайте фильтры в доступной компании.

Описание разработчика

Read an existing native Firestore order summary and up to 100 line items. Use orderId from active_orders_search, not a display number. Continue truncated lines with active_order_items_list at offset 100 and expectedRevision=itemsRevision. Returns current stored totals/version and status text; this is not a quote, availability check, provider reconciliation or order mutation. Customer contact and provider payloads are omitted.

Параметры запроса
orderId
Идентификатор выбранного заказа. обязательно по схеме · string · до символов 128
Что вернёт команда
orderId
Canonical Companies/{company}/Orders document identifier. Use for documents and payment links; never substitute the display number. обязательно по схеме · string
number
Stored order display number, when assigned. обязательно по схеме · number / null
type
Exact stored order Type; no lifecycle enum is inferred. обязательно по схеме · string
locationId
Canonical stored Establishment identifier. Missing location is visible only to all-location staff. обязательно по схеме · string / null
customerId
Stored order.Client.ID, when present. Customer details require separate CRM access. обязательно по схеме · string / null
amount
Stored native Amount in the recorded currency; this is not a new quote. обязательно по схеме · number / null
paid
Stored native Paid value. It is not a newly reconciled provider settlement. обязательно по схеме · number / null
currency
Exact stored Currency marker; it may be a symbol rather than an ISO currency code. обязательно по схеме · string
version
Stored native order version, when available. обязательно по схеме · number / null
createdAt
Recorded DateCreate as UTC, or null when no unambiguous absolute timestamp exists. обязательно по схеме · null
mustFinishAt
Recorded DateMustFinish as UTC, when available. обязательно по схеме · null
updatedAt
Recorded LastUpdate as UTC, when available. обязательно по схеме · null
status
Native Status entry selected by latest Date, then highest Number, matching OrdersRealtimeSync. Exact ties retain the first entry; no transition is inferred. обязательно по схеме · string / null
canceled
Whether the native canceled field is explicitly true. обязательно по схеме · boolean
itemCount
Number of stored line items; this is not a sum of quantities. обязательно по схеме · integer · минимум -9007199254740991 · максимум 9007199254740991
items
Записи, которые вернул этот запрос. обязательно по схеме · array · до элементов 100
itemsTruncated
Whether the order contains additional line items beyond this compact response. Continue with active_order_items_list at offset 100 using itemsRevision. обязательно по схеме · boolean
itemsRevision
Fingerprint of the exact stored item array and native order version. Pass unchanged as expectedRevision when continuing active_order_items_list; a changed order rejects continuation. обязательно по схеме · string
Поля и технические схемы
Входные поля и поля ответа active_orders_get
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "orderId": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128,
      "pattern": "^[A-Za-z0-9_~:@+.-]+$",
      "description": "Canonical native order document ID returned by active_orders_search."
    }
  },
  "required": [
    "orderId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "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."
    },
    "items": {
      "maxItems": 100,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "itemId": {
            "type": "string",
            "description": "Stored order item id; an empty value means no native item id was stored."
          },
          "productId": {
            "description": "Stored ProductID; use separate catalog permissions to inspect the product.",
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string",
            "description": "Stored native item name."
          },
          "quantity": {
            "description": "Stored Quantity in the product unit.",
            "type": [
              "number",
              "null"
            ]
          },
          "price": {
            "description": "Stored unit Price in the order currency.",
            "type": [
              "number",
              "null"
            ]
          },
          "amount": {
            "description": "Stored line Amount in the order currency.",
            "type": [
              "number",
              "null"
            ]
          },
          "canceled": {
            "type": "boolean",
            "description": "Whether this line explicitly has Cancel=true."
          }
        },
        "required": [
          "itemId",
          "productId",
          "name",
          "quantity",
          "price",
          "amount",
          "canceled"
        ],
        "additionalProperties": false
      },
      "description": "First 100 stored line items, with embedded provider, identity and payment data excluded."
    },
    "itemsTruncated": {
      "type": "boolean",
      "description": "Whether the order contains additional line items beyond this compact response. Continue with active_order_items_list at offset 100 using itemsRevision."
    },
    "itemsRevision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Fingerprint of the exact stored item array and native order version. Pass unchanged as expectedRevision when continuing active_order_items_list; a changed order rejects continuation."
    }
  },
  "required": [
    "orderId",
    "number",
    "type",
    "locationId",
    "customerId",
    "amount",
    "paid",
    "currency",
    "version",
    "createdAt",
    "mustFinishAt",
    "updatedAt",
    "status",
    "canceled",
    "itemCount",
    "items",
    "itemsTruncated",
    "itemsRevision"
  ],
  "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))$"
    }
  }
}