MCP Control
Заказы · Изменение

События · Билет · Выдача · Бесплатный

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

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

Подготовить
  1. Вы указываетеМероприятие
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «События / Билет / Выдача / Бесплатный». Для изменения нужны мероприятие, версия записи. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
eventId
Мероприятие
revision
Версия записи
selections
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «События / Билет / Выдача / Бесплатный» с параметром orderType = pickup. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
orderType
pickup
eventId
DEMO-101
termsAccepted
true
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «События / Билет / Выдача / Бесплатный» по исходному ответу. Покажи результат. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

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

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

Issue actual zero-total tickets for a walk-in registration through native Orders. Use real buyer-provided registration details and accepted terms. Returns the order and issued ticket IDs for printing. Paid registrations use events_sale.

Параметры запроса
eventId
Native event session ID. обязательно по схеме · string
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
revision
Текущая версия выбранной записи. обязательно по схеме · integer · максимум 9007199254740991
selections
One selection for each guest. обязательно по схеме · array · до элементов 20
customer
Customer details supplied to the cashier. обязательно по схеме · object
termsAccepted
The buyer accepted the event terms. обязательно по схеме · boolean
orderType
Order type offered by the establishment. обязательно по схеме · string · варианты pickup, atplace
dateOfBirth
Buyer-supplied date of birth, when required by the establishment. необязательно · string
Что вернёт команда
result
Native event operation receipt or bounded page. обязательно по схеме · object
Поля и технические схемы
Входные поля и поля ответа events_ticket_issue_free
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "eventId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{1,80}$",
      "description": "Native event session ID."
    },
    "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 UUID for unchanged retries."
    },
    "revision": {
      "type": "integer",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "description": "Reviewed event revision."
    },
    "selections": {
      "minItems": 1,
      "maxItems": 20,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "sectionId": {
            "type": "string",
            "pattern": "^[A-Za-z0-9_-]{1,80}$",
            "description": "Native section ID."
          },
          "number": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Seat or capacity unit number."
          },
          "guest": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "description": "Attendee name."
          },
          "answers": {
            "description": "Answers to the configured attendee fields.",
            "type": "object",
            "propertyNames": {
              "type": "string",
              "pattern": "^[a-z][a-z0-9_]{0,31}$"
            },
            "additionalProperties": {
              "type": "string",
              "minLength": 1,
              "maxLength": 160
            }
          }
        },
        "required": [
          "sectionId",
          "number",
          "guest"
        ],
        "additionalProperties": false
      },
      "description": "One selection for each guest."
    },
    "customer": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "description": "Buyer name supplied at registration."
        },
        "email": {
          "description": "Buyer email when required.",
          "type": "string",
          "maxLength": 254,
          "format": "email",
          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
        },
        "phone": {
          "description": "Buyer phone when required.",
          "type": "string",
          "minLength": 4,
          "maxLength": 40
        }
      },
      "required": [
        "name"
      ],
      "additionalProperties": false,
      "description": "Customer details supplied to the cashier."
    },
    "termsAccepted": {
      "type": "boolean",
      "const": true,
      "description": "The buyer accepted the event terms."
    },
    "orderType": {
      "type": "string",
      "enum": [
        "pickup",
        "atplace"
      ],
      "description": "Order type offered by the establishment."
    },
    "dateOfBirth": {
      "description": "Buyer-supplied date of birth, when required by the establishment.",
      "type": "string",
      "format": "date",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
    }
  },
  "required": [
    "eventId",
    "requestId",
    "revision",
    "selections",
    "customer",
    "termsAccepted",
    "orderType"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {
        "$ref": "#/$defs/__schema0"
      },
      "description": "Native event operation receipt or bounded page."
    }
  },
  "required": [
    "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"
          }
        }
      ]
    }
  }
}