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

Заказы · Штатные · Просмотр

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

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

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

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

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

Read a bounded active order with exact line IDs, quantities, native version and booking/status metadata. Use before exact amendments and after commits; archived orders use archived-order actions.

Параметры запроса
orderId
Идентификатор выбранного заказа. обязательно по схеме · string
locationId
Идентификатор точки из текущего подключения. обязательно по схеме · string
Что вернёт команда
order
Native order value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа orders_native_get
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "orderId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native orderId value; use the value and type returned by the corresponding service."
    },
    "locationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native locationId value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "orderId",
    "locationId"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "order": {
      "type": "object",
      "properties": {
        "orderId": {
          "$ref": "#/$defs/_mcp0"
        },
        "locationId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
          "description": "Native locationId value; use the value and type returned by the corresponding service."
        },
        "version": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991,
          "description": "Native version value; use the value and type returned by the corresponding service."
        },
        "currency": {
          "type": "string",
          "maxLength": 12,
          "description": "Native currency value; use the value and type returned by the corresponding service."
        },
        "total": {
          "type": "number",
          "description": "Native total value; use the value and type returned by the corresponding service."
        },
        "tax": {
          "type": "number",
          "description": "Native tax value; use the value and type returned by the corresponding service."
        },
        "discount": {
          "type": "number",
          "description": "Native discount value; use the value and type returned by the corresponding service."
        },
        "paid": {
          "type": "number",
          "description": "Native paid value; use the value and type returned by the corresponding service."
        },
        "delivery": {
          "type": "number",
          "description": "Native delivery value; use the value and type returned by the corresponding service."
        },
        "lines": {
          "maxItems": 200,
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "lineId": {
                "$ref": "#/$defs/_mcp0"
              },
              "productId": {
                "$ref": "#/$defs/_mcp0"
              },
              "quantity": {
                "type": "number",
                "description": "Native quantity value; use the value and type returned by the corresponding service."
              },
              "unitPrice": {
                "type": "number",
                "description": "Native unitPrice value; use the value and type returned by the corresponding service."
              },
              "amount": {
                "type": "number",
                "description": "Native amount value; use the value and type returned by the corresponding service."
              },
              "optionId": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 160
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Native optionId value; use the value and type returned by the corresponding service."
              }
            },
            "required": [
              "lineId",
              "productId",
              "quantity",
              "unitPrice",
              "amount",
              "optionId"
            ],
            "additionalProperties": false
          },
          "description": "Native lines value; use the value and type returned by the corresponding service."
        },
        "metadata": {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          },
          "description": "Native metadata value; use the value and type returned by the corresponding service."
        }
      },
      "required": [
        "orderId",
        "locationId",
        "version",
        "currency",
        "total",
        "tax",
        "discount",
        "paid",
        "delivery",
        "lines",
        "metadata"
      ],
      "additionalProperties": false,
      "description": "Native order value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "order"
  ],
  "additionalProperties": false,
  "$defs": {
    "__schema0": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "boolean"
        },
        {
          "type": "null"
        },
        {
          "type": "array",
          "items": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        }
      ]
    },
    "_mcp0": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native orderId value; use the value and type returned by the corresponding service."
    }
  }
}