Заказы · Изменение
Заказы · Отправления · Предварительный расчёт
orders_workspace_shipping_quote
Попробуйте три запроса
Подготовить
- Вы указываетеЗаказ
- ПомощникПодготовка
- Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Заказы / Отправления / Предварительный расчёт». Для изменения нужны заказ, текущая версия. Покажи объект и ожидаемый эффект до выполнения.
- orderId
- Заказ
- expectedVersion
- Текущая версия
- provider
- Провайдер
Применить
- Вы указываетеСогласованные значения
- ПомощникОдин вызов
- Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Заказы / Отправления / Предварительный расчёт» с параметром provider = own. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
- provider
- own
- ownService
- standard
- orderId
- DEMO-101
Проверить итог
- Вы указываетеИсходный ответ
- ПомощникСверка результата
- Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Заказы / Отправления / Предварительный расчёт» по исходному ответу. Покажи companyId, результат. Объясни, чем подтвердить эффект для выбранного объекта.
- До измененияПрочитать версию
- При записиПередать выбранную версию
- После ответаПеречитать объект
Как работает действие
Этот вызов может изменить рабочие данные. Согласуйте точный объект, новые значения и ожидаемый результат. Присвойте операции стабильный requestId. При повторе той же операции используйте прежний ключ и те же значения.
Описание разработчика
Calculate and persist native delivery rates for the exact order version, addresses, parcel and existing connection. Does not buy a label or dispatch a courier. Server pricing and packaging rules apply.
Параметры запроса
- requestId
- Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
- orderId
- Идентификатор выбранного заказа. обязательно по схеме · string
- expectedVersion
- Native expectedVersion value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
- provider
- Native provider value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · string · варианты own, usps, fedex, ups, shippo, easypost, uber_direct, doordash, uniuni
- to
- Native to value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · object
- from
- Native from value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · object
- parcel
- Native parcel value. Resolve existing identifiers and read the current native state before changes. необязательно · object
- declaredValue
- Native declaredValue value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · number · по умолчанию 0 · минимум 0 · максимум 10000000
- notes
- Native notes value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · string · по умолчанию "" · до символов 1000
- packaging
- Native packaging value. Resolve existing identifiers and read the current native state before changes. необязательно · object
- ownService
- Native ownService value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · string · по умолчанию "standard" · варианты standard, express
- ownAmount
- Native ownAmount value. Resolve existing identifiers and read the current native state before changes. необязательно · number · минимум 0 · максимум 10000000
- ownCurrency
- Native ownCurrency value. Resolve existing identifiers and read the current native state before changes. необязательно · string
Что вернёт команда
- 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."
},
"orderId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native orderId value. Resolve existing identifiers and read the current native state before changes."
},
"expectedVersion": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991,
"description": "Native expectedVersion value. Resolve existing identifiers and read the current native state before changes."
},
"provider": {
"type": "string",
"enum": [
"own",
"usps",
"fedex",
"ups",
"shippo",
"easypost",
"uber_direct",
"doordash",
"uniuni"
],
"description": "Native provider value. Resolve existing identifiers and read the current native state before changes."
},
"to": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/_mcp0"
},
"street1": {
"$ref": "#/$defs/_mcp1"
},
"street2": {
"$ref": "#/$defs/_mcp2"
},
"city": {
"$ref": "#/$defs/_mcp3"
},
"state": {
"$ref": "#/$defs/_mcp4"
},
"zip": {
"$ref": "#/$defs/_mcp5"
},
"country": {
"$ref": "#/$defs/_mcp6"
},
"phone": {
"$ref": "#/$defs/_mcp7"
},
"email": {
"$ref": "#/$defs/_mcp9"
}
},
"required": [
"name",
"street1",
"street2",
"city",
"state",
"zip",
"country",
"phone",
"email"
],
"additionalProperties": false,
"description": "Native to value. Resolve existing identifiers and read the current native state before changes."
},
"from": {
"type": "object",
"properties": {
"name": {
"$ref": "#/$defs/_mcp0"
},
"street1": {
"$ref": "#/$defs/_mcp1"
},
"street2": {
"$ref": "#/$defs/_mcp2"
},
"city": {
"$ref": "#/$defs/_mcp3"
},
"state": {
"$ref": "#/$defs/_mcp4"
},
"zip": {
"$ref": "#/$defs/_mcp5"
},
"country": {
"$ref": "#/$defs/_mcp6"
},
"phone": {
"$ref": "#/$defs/_mcp7"
},
"email": {
"$ref": "#/$defs/_mcp9"
}
},
"required": [
"name",
"street1",
"street2",
"city",
"state",
"zip",
"country",
"phone",
"email"
],
"additionalProperties": false,
"description": "Native from value. Resolve existing identifiers and read the current native state before changes."
},
"parcel": {
"description": "Native parcel value. Resolve existing identifiers and read the current native state before changes.",
"type": "object",
"properties": {
"weight": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000,
"description": "Native weight value. Resolve existing identifiers and read the current native state before changes."
},
"massUnit": {
"type": "string",
"enum": [
"g",
"kg",
"oz",
"lb"
],
"description": "Native massUnit value. Resolve existing identifiers and read the current native state before changes."
},
"length": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000,
"description": "Native length value. Resolve existing identifiers and read the current native state before changes."
},
"width": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000,
"description": "Native width value. Resolve existing identifiers and read the current native state before changes."
},
"height": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 1000000,
"description": "Native height value. Resolve existing identifiers and read the current native state before changes."
},
"distanceUnit": {
"type": "string",
"enum": [
"cm",
"in"
],
"description": "Native distanceUnit value. Resolve existing identifiers and read the current native state before changes."
}
},
"required": [
"weight",
"massUnit",
"length",
"width",
"height",
"distanceUnit"
],
"additionalProperties": false
},
"declaredValue": {
"default": 0,
"description": "Native declaredValue value. Resolve existing identifiers and read the current native state before changes.",
"type": "number",
"minimum": 0,
"maximum": 10000000
},
"notes": {
"default": "",
"description": "Native notes value. Resolve existing identifiers and read the current native state before changes.",
"type": "string",
"maxLength": 1000
},
"packaging": {
"description": "Native packaging value. Resolve existing identifiers and read the current native state before changes.",
"type": "object",
"properties": {
"productId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native productId value. Resolve existing identifiers and read the current native state before changes."
},
"storageId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native storageId value. Resolve existing identifiers and read the current native state before changes."
},
"reasonId": {
"type": "string",
"pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
"description": "Native reasonId value. Resolve existing identifiers and read the current native state before changes."
},
"quantity": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"description": "Native quantity value. Resolve existing identifiers and read the current native state before changes."
},
"dimensionUnit": {
"type": "string",
"enum": [
"cm",
"in"
],
"description": "Native dimensionUnit value. Resolve existing identifiers and read the current native state before changes."
}
},
"required": [
"productId",
"storageId",
"reasonId",
"quantity",
"dimensionUnit"
],
"additionalProperties": false
},
"ownService": {
"default": "standard",
"description": "Native ownService value. Resolve existing identifiers and read the current native state before changes.",
"type": "string",
"enum": [
"standard",
"express"
]
},
"ownAmount": {
"description": "Native ownAmount value. Resolve existing identifiers and read the current native state before changes.",
"type": "number",
"minimum": 0,
"maximum": 10000000
},
"ownCurrency": {
"description": "Native ownCurrency value. Resolve existing identifiers and read the current native state before changes.",
"type": "string",
"pattern": "^[A-Z]{3}$"
}
},
"required": [
"requestId",
"orderId",
"expectedVersion",
"provider",
"to",
"from",
"declaredValue",
"notes",
"ownService"
],
"additionalProperties": false,
"$defs": {
"_mcp0": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Native name value. Resolve existing identifiers and read the current native state before changes."
},
"_mcp1": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Native street1 value. Resolve existing identifiers and read the current native state before changes."
},
"_mcp2": {
"default": "",
"description": "Native street2 value. Resolve existing identifiers and read the current native state before changes.",
"type": "string",
"maxLength": 300
},
"_mcp3": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Native city value. Resolve existing identifiers and read the current native state before changes."
},
"_mcp4": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Native state value. Resolve existing identifiers and read the current native state before changes."
},
"_mcp5": {
"type": "string",
"minLength": 1,
"maxLength": 300,
"description": "Native zip value. Resolve existing identifiers and read the current native state before changes."
},
"_mcp6": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "Native country value. Resolve existing identifiers and read the current native state before changes."
},
"_mcp7": {
"type": "string",
"pattern": "^\\+[1-9]\\d{6,14}$",
"description": "Native phone value. Resolve existing identifiers and read the current native state before changes."
},
"_mcp9": {
"default": "",
"description": "Native email value. Resolve existing identifiers and read the current native state before changes.",
"anyOf": [
{
"type": "string",
"const": ""
},
{
"$ref": "#/$defs/_mcp8"
}
]
},
"_mcp8": {
"type": "string",
"format": "email",
"pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
}
}
}Выход · 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"
}
}
]
}
}
}