Доставка · Чувствительное действие
Курьер · Заказы · Действие
courier_order_action
Попробуйте три запроса
Подготовить
- Вы указываетеФилиал
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Курьер / Заказы / Действие». Для изменения нужны филиал, заказ. Покажи объект и ожидаемый эффект до выполнения.
- locationId
- Филиал
- orderId
- Заказ
- expectedVersion
- Текущая версия
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Курьер / Заказы / Действие» с параметром action = accept. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- action
- accept
- locationId
- DEMO-101
- orderId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Курьер / Заказы / Действие» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Accept a delivery order for yourself, or record pickup, departure, arrival, completion or a real document-based age check. Requires your current Courier role, open native shift and exact order version. Physical stages require physicalActivityConfirmed=true only after the courier/user reports that activity; age requires ageCheckConfirmed=true and the actual configured threshold. Native assignment, stage, age and POS closure checks apply.
Параметры запроса
- locationId
- Идентификатор точки из текущего подключения. обязательно по схеме · string
- orderId
- Идентификатор выбранного заказа. обязательно по схеме · string
- expectedVersion
- Native expectedVersion value; use the value and type returned by the corresponding service. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- action
- Вариант действия, разрешённый схемой. обязательно по схеме · string · варианты accept, pickup, delivery, arrived, completed, age
- ageThreshold
- Native ageThreshold value; use the value and type returned by the corresponding service. необязательно · number / number
- physicalActivityConfirmed
- Only when the courier/user has confirmed this physical stage. необязательно · boolean
- ageCheckConfirmed
- Only after the actual requested age check against a document. необязательно · boolean
Что вернёт команда
- companyId
- Native companyId value; use the value and type returned by the corresponding service. обязательно по схеме · string
- result
- Native result value; use the value and type returned by the corresponding service. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"locationId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_.:-]{1,120}$",
"description": "Native locationId value; use the value and type returned by the corresponding service."
},
"orderId": {
"type": "string",
"pattern": "^(?!\\.{1,2}$)[A-Za-z0-9_.:-]{1,120}$",
"description": "Native orderId value; use the value and type returned by the corresponding service."
},
"expectedVersion": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Native expectedVersion 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."
},
"action": {
"type": "string",
"enum": [
"accept",
"pickup",
"delivery",
"arrived",
"completed",
"age"
],
"description": "Native action value; use the value and type returned by the corresponding service."
},
"ageThreshold": {
"description": "Native ageThreshold value; use the value and type returned by the corresponding service.",
"anyOf": [
{
"type": "number",
"const": 18
},
{
"type": "number",
"const": 21
}
]
},
"physicalActivityConfirmed": {
"description": "Only when the courier/user has confirmed this physical stage.",
"type": "boolean",
"const": true
},
"ageCheckConfirmed": {
"description": "Only after the actual requested age check against a document.",
"type": "boolean",
"const": true
}
},
"required": [
"locationId",
"orderId",
"expectedVersion",
"requestId",
"action"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"description": "Native companyId value; use the value and type returned by the corresponding service."
},
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Native result value; use the value and type returned by the corresponding service."
}
},
"required": [
"companyId",
"result"
],
"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"
}
}
]
}
}
}