Заказы · Чувствительное действие
Заказы · Статусы · Изменение
orders_status_update
Попробуйте три запроса
Подготовить
- Вы указываетеЗаказ
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Заказы / Статусы / Изменение». Для изменения нужны заказ, текущая версия. Покажи объект и ожидаемый эффект до выполнения.
- orderId
- Заказ
- expectedVersion
- Текущая версия
- statusId
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Заказы / Статусы / Изменение» с параметром orderId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- orderId
- DEMO-101
- expectedVersion
- 4
- statusId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Заказы / Статусы / Изменение» по исходному ответу. Покажи статус, заказ. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Change an active order to a configured native status with version, workflow and age-verification checks. May enqueue configured production/delivery/Flow events. Select a native status ID from current company settings; do not fabricate status names.
Параметры запроса
- orderId
- Идентификатор выбранного заказа. обязательно по схеме · string
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- expectedVersion
- Native expectedVersion value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
- statusId
- Native statusId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- comment
- Native comment value; use the value and type returned by the corresponding service. обязательно по схеме · string · по умолчанию "" · до символов 2000
- locationId
- Идентификатор точки из текущего подключения. обязательно по схеме · string
Что вернёт команда
- 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
Поля и технические схемы

Вход · 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."
},
"statusId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native statusId value; use the value and type returned by the corresponding service."
},
"comment": {
"default": "",
"description": "Native comment value; use the value and type returned by the corresponding service.",
"type": "string",
"maxLength": 2000
},
"locationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Exact establishment of this active order, verified against the current MCP grant."
}
},
"required": [
"orderId",
"requestId",
"expectedVersion",
"statusId",
"comment",
"locationId"
],
"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"
}
}
]
}
}
}