MCP Control
Заказы · Чувствительное действие

Заказы · Доставка · Изменение

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

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

Подготовить
  1. Вы указываетеЗаказ
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Заказы / Доставка / Изменение». Для изменения нужны заказ, текущая версия. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
orderId
Заказ
expectedVersion
Текущая версия
locationId
Филиал
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Заказы / Доставка / Изменение» с параметром mode = own. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
mode
own
orderId
DEMO-101
expectedVersion
4
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Заказы / Доставка / Изменение» по исходному ответу. Покажи статус, заказ. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.

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

Update an active order delivery address, courier, delivery windows, tracking or provider details using the canonical Orders writer and revision check. This does not dispatch a carrier shipment or create a route. Linked active routes and terminal orders are protected; price edits require finance authority.

Параметры запроса
orderId
Идентификатор выбранного заказа. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
expectedVersion
Native expectedVersion value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
locationId
Идентификатор точки из текущего подключения. обязательно по схеме · string
placeId
Native placeId value; use the value and type returned by the corresponding service. необязательно · string · до символов 300
sessionToken
Native sessionToken value; use the value and type returned by the corresponding service. необязательно · string · до символов 100
courierId
Native courierId value; use the value and type returned by the corresponding service. необязательно · string / null
deliveryAt
Exact planned delivery time with timezone; null clears it. Omit to preserve the existing time. необязательно · string / null
slots
Native slots value; use the value and type returned by the corresponding service. необязательно · array · до элементов 20
mode
Native mode value; use the value and type returned by the corresponding service. необязательно · string · варианты own, service
deliveryTypeId
Native deliveryTypeId value; use the value and type returned by the corresponding service. необязательно · string
trackingUrl
Native trackingUrl value; use the value and type returned by the corresponding service. необязательно · string · до символов 2048
trackingNumber
Native trackingNumber value; use the value and type returned by the corresponding service. необязательно · string · до символов 200
providerName
Native providerName value; use the value and type returned by the corresponding service. необязательно · string · до символов 200
address
Native address value; use the value and type returned by the corresponding service. необязательно · string · до символов 2000
deliveryComment
Native deliveryComment value; use the value and type returned by the corresponding service. необязательно · string · до символов 2000
apartment
Native apartment value; use the value and type returned by the corresponding service. необязательно · string · до символов 200
deliveryPrice
Native deliveryPrice value; use the value and type returned by the corresponding service. необязательно · number · минимум 0 · максимум 10000000
courier
Native courier value; use the value and type returned by the corresponding service. необязательно · string · до символов 200
window
Native window value; use the value and type returned by the corresponding service. необязательно · string · до символов 200
stage
Native stage value; use the value and type returned by the corresponding service. необязательно · string · до символов 120
comment
Native comment value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 2000
Что вернёт команда
status
Native status value; use the value and type returned by the corresponding service. обязательно по схеме · string · варианты committed, review_required
orderId
Native orderId value; use the value and type returned by the corresponding service. обязательно по схеме · string
version
Native version value; use the value and type returned by the corresponding service. обязательно по схеме · integer / null
details
Native details value; use the value and type returned by the corresponding service. обязательно по схеме · object
review
Native review value; use the value and type returned by the corresponding service. обязательно по схеме · object / null
Поля и технические схемы
Входные поля и поля ответа orders_delivery_update
Вход · 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."
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable request ID for these exact arguments. Keep it if the response is uncertain."
    },
    "expectedVersion": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native expectedVersion value; use the value and type returned by the corresponding service."
    },
    "locationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Exact establishment of this active order, verified against the current MCP grant."
    },
    "placeId": {
      "description": "Native placeId value; use the value and type returned by the corresponding service.",
      "type": "string",
      "minLength": 1,
      "maxLength": 300
    },
    "sessionToken": {
      "description": "Native sessionToken value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 100
    },
    "courierId": {
      "description": "Native courierId value; use the value and type returned by the corresponding service.",
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
        },
        {
          "type": "null"
        }
      ]
    },
    "deliveryAt": {
      "description": "Exact planned delivery time with timezone; null clears it. Omit to preserve the existing time.",
      "anyOf": [
        {
          "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        {
          "type": "null"
        }
      ]
    },
    "slots": {
      "description": "Native slots value; use the value and type returned by the corresponding service.",
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "start": {
            "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "description": "Native start value; use the value and type returned by the corresponding service."
          },
          "end": {
            "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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
            "description": "Native end value; use the value and type returned by the corresponding service."
          }
        },
        "required": [
          "start",
          "end"
        ],
        "additionalProperties": false
      }
    },
    "mode": {
      "description": "Native mode value; use the value and type returned by the corresponding service.",
      "type": "string",
      "enum": [
        "own",
        "service"
      ]
    },
    "deliveryTypeId": {
      "description": "Native deliveryTypeId value; use the value and type returned by the corresponding service.",
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$"
    },
    "trackingUrl": {
      "description": "Native trackingUrl value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 2048
    },
    "trackingNumber": {
      "description": "Native trackingNumber value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 200
    },
    "providerName": {
      "description": "Native providerName value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 200
    },
    "address": {
      "description": "Native address value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 2000
    },
    "deliveryComment": {
      "description": "Native deliveryComment value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 2000
    },
    "apartment": {
      "description": "Native apartment value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 200
    },
    "deliveryPrice": {
      "description": "Native deliveryPrice value; use the value and type returned by the corresponding service.",
      "type": "number",
      "minimum": 0,
      "maximum": 10000000
    },
    "courier": {
      "description": "Native courier value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 200
    },
    "window": {
      "description": "Native window value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 200
    },
    "stage": {
      "description": "Native stage value; use the value and type returned by the corresponding service.",
      "type": "string",
      "minLength": 1,
      "maxLength": 120
    },
    "comment": {
      "default": "",
      "description": "Native comment value; use the value and type returned by the corresponding service.",
      "type": "string",
      "maxLength": 2000
    }
  },
  "required": [
    "orderId",
    "requestId",
    "expectedVersion",
    "locationId",
    "comment"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "committed",
        "review_required"
      ],
      "description": "Native status value; use the value and type returned by the corresponding service."
    },
    "orderId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native orderId value; use the value and type returned by the corresponding service."
    },
    "version": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        {
          "type": "null"
        }
      ],
      "description": "Native version value; use the value and type returned by the corresponding service."
    },
    "details": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native details value; use the value and type returned by the corresponding service."
    },
    "review": {
      "anyOf": [
        {
          "type": "object",
          "propertyNames": {
            "type": "string"
          },
          "additionalProperties": {
            "$ref": "#/$defs/__schema0"
          }
        },
        {
          "type": "null"
        }
      ],
      "description": "Native review value; use the value and type returned by the corresponding service."
    }
  },
  "required": [
    "status",
    "orderId",
    "version",
    "details",
    "review"
  ],
  "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"
          }
        }
      ]
    }
  }
}