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

Заказы · Платежи · Устройства · Отправка

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

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

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

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

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

Queue the reviewed principal and tip on an existing opted-in iPhone reader/Tap to Pay receiver. Current order, balance, method, device binding and version are verified. A queued job is not a charge or provider-confirmed payment; inspect payment_job_get. Keep the original request ID after uncertainty.

Параметры запроса
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
orderId
Идентификатор выбранного заказа. обязательно по схеме · string
locationId
Идентификатор точки из текущего подключения. обязательно по схеме · string
expectedVersion
Native expectedVersion value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
paymentMethodId
Native paymentMethodId value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · string
deviceId
Native deviceId value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · string
mode
Native mode value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · string · варианты bluetooth, tapToPay
amountMinor
Native amountMinor value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · integer · минимум 1 · максимум 99999999
tipsMinor
Native tipsMinor value. Resolve existing identifiers and read the current native state before changes. обязательно по схеме · integer · по умолчанию 0 · минимум 0 · максимум 9999999
Что вернёт команда
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
Поля и технические схемы
Входные поля и поля ответа orders_workspace_payment_device_send
Вход · 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."
    },
    "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": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Native expectedVersion value. Resolve existing identifiers and read the current native state before changes."
    },
    "paymentMethodId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_~:@+.-]{1,160}$",
      "description": "Native paymentMethodId value. Resolve existing identifiers and read the current native state before changes."
    },
    "deviceId": {
      "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": "Native deviceId value. Resolve existing identifiers and read the current native state before changes."
    },
    "mode": {
      "type": "string",
      "enum": [
        "bluetooth",
        "tapToPay"
      ],
      "description": "Native mode value. Resolve existing identifiers and read the current native state before changes."
    },
    "amountMinor": {
      "type": "integer",
      "minimum": 1,
      "maximum": 99999999,
      "description": "Native amountMinor value. Resolve existing identifiers and read the current native state before changes."
    },
    "tipsMinor": {
      "default": 0,
      "description": "Native tipsMinor value. Resolve existing identifiers and read the current native state before changes.",
      "type": "integer",
      "minimum": 0,
      "maximum": 9999999
    }
  },
  "required": [
    "requestId",
    "orderId",
    "locationId",
    "expectedVersion",
    "paymentMethodId",
    "deviceId",
    "mode",
    "amountMinor",
    "tipsMinor"
  ],
  "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"
          }
        }
      ]
    }
  }
}