Заказы · Изменение
Настройки отправки · сохранение
orders_workspace_shipping_settings_save
Попробуйте три запроса
Подготовить
- Вы указываетеФилиал
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Настройки отправки / сохранение». Для изменения нужны филиал, текущая версия. Покажи объект и ожидаемый эффект до выполнения.
- locationId
- Филиал
- expectedVersion
- Текущая версия
- template
- Параметр
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Настройки отправки / сохранение» с параметром locationId = DEMO-101. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- locationId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Настройки отправки / сохранение» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Native Order Workspace shipping_settings_save. Uses the same current company handlers and permissions as order-web.web.app. Read every hash-bound chunk and follow any native pagination. Saved configuration, queued work and provider confirmation are distinct. Recover uncertain writes with orders_workspace_get_operation and the original request ID.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- locationId
- Идентификатор точки из текущего подключения. обязательно по схеме · string
- expectedVersion
- Native expectedVersion value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · string / null
- template
- Native template value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · object
- ownTariffs
- Native ownTariffs value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · array · до элементов 2
Что вернёт команда
- companyId
- Verified current native company. обязательно по схеме · string
- result
- Native operation receipt or hash-bound result chunk. Queued, completed and provider-confirmed states have distinct meanings. обязательно по схеме · object
Поля и технические схемы

Вход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"requestId": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
"description": "Stable request ID for this exact operation. Preserve after uncertainty; recover with get_operation."
},
"locationId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native locationId value. Resolve existing identifiers and read the current native state before changes."
},
"expectedVersion": {
"anyOf": [
{
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
},
{
"type": "null"
}
],
"description": "Native expectedVersion value. Resolve existing identifiers and read the current native state before changes."
},
"template": {
"type": "object",
"properties": {
"format": {
"type": "string",
"enum": [
"4x6",
"100x150",
"58x80",
"A6"
],
"description": "Native format value. Resolve existing identifiers and read the current native state before changes."
},
"title": {
"type": "string",
"maxLength": 100,
"description": "Native title value. Resolve existing identifiers and read the current native state before changes."
},
"fields": {
"minItems": 1,
"maxItems": 9,
"type": "array",
"items": {
"type": "string",
"enum": [
"order",
"recipient",
"address",
"phone",
"sender",
"service",
"tracking",
"weight",
"notes"
]
},
"description": "Native fields value. Resolve existing identifiers and read the current native state before changes."
},
"footer": {
"type": "string",
"maxLength": 300,
"description": "Native footer value. Resolve existing identifiers and read the current native state before changes."
}
},
"required": [
"format",
"title",
"fields",
"footer"
],
"additionalProperties": false,
"description": "Native template value. Resolve existing identifiers and read the current native state before changes."
},
"ownTariffs": {
"maxItems": 2,
"type": "array",
"items": {
"type": "object",
"properties": {
"service": {
"type": "string",
"enum": [
"standard",
"express"
],
"description": "Native service value. Resolve existing identifiers and read the current native state before changes."
},
"amount": {
"type": "number",
"minimum": 0,
"maximum": 10000000,
"description": "Native amount value. Resolve existing identifiers and read the current native state before changes."
},
"currency": {
"type": "string",
"pattern": "^[A-Z]{3}$",
"description": "Native currency value. Resolve existing identifiers and read the current native state before changes."
}
},
"required": [
"service",
"amount",
"currency"
],
"additionalProperties": false
},
"description": "Native ownTariffs value. Resolve existing identifiers and read the current native state before changes."
}
},
"required": [
"requestId",
"locationId",
"expectedVersion",
"template",
"ownTariffs"
],
"additionalProperties": false
}Выход · JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"companyId": {
"type": "string",
"description": "Verified current native company."
},
"result": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/__schema0"
},
"description": "Native operation receipt or hash-bound result chunk. Queued, completed and provider-confirmed states have distinct meanings."
}
},
"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"
}
}
]
}
}
}