MCP Control
Интеграции · Изменение

Stripe · Создание · Аккаунты

stripe_create_account
Карточки процесса, соединённые нитями

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

Подготовить
  1. Вы указываетеОбъект
  2. ПомощникПодготовка
  3. Вы получаетеПредпросмотр
Запрос в чат
Подготовь «Stripe / Создание / Аккаунты». Для изменения нужны email, country. Покажи объект и ожидаемый эффект до выполнения.
Что входит в подготовку
email
Параметр
country
Параметр
Применить
  1. Вы указываетеСогласованные значения
  2. ПомощникОдин вызов
  3. Вы получаетеОтвет операции
Запрос в чат
На учебной записи подготовь «Stripe / Создание / Аккаунты» с параметром expectedRevision = 4. Покажи остальные обязательные значения и выполни действие, когда согласованы все поля.
Фрагмент учебных параметров
expectedRevision
4
Проверить итог
  1. Вы указываетеИсходный ответ
  2. ПомощникСверка результата
  3. Вы получаетеПодтверждение
Запрос в чат
Проверь результат «Stripe / Создание / Аккаунты» по исходному ответу. Покажи operationId, версия записи. Объясни, чем подтвердить эффект для выбранного объекта.
Как сверить изменение
  1. До измененияПрочитать версию
  2. При записиПередать выбранную версию
  3. После ответаПеречитать объект
Как работает действие

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

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

Create a company Stripe account through the existing createStripeAccount Cloud Function and obtain native onboarding. Backend resolves company email/country first; optional fields fill missing profile values only. Never creates a duplicate account or accepts terms for the user. No payments are created.

Параметры запроса
requestId
Ключ этой операции. Для повтора с теми же аргументами сохраните исходное значение. обязательно по схеме · string
expectedRevision
Версия, прочитанная перед изменением. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
email
Only if backend company/contact data has no email. необязательно · string · до символов 254
country
Only if backend company data has no verified ISO alpha-2 country. необязательно · string
Что вернёт команда
operationId
Protected company and user bound Stripe operation reference. обязательно по схеме · string
revision
Current revision returned by stripe_get_status. A stale revision returns CONFLICT; read latest before a new operation. обязательно по схеме · integer · минимум 0 · максимум 9007199254740991
mode
existing_account connects an existing Stripe account; new_account creates one through the native Cloud Function; sabsus_platform uses the platform Stripe account without a company account. обязательно по схеме · string · варианты existing_account, new_account, sabsus_platform
status
Confirmed setup result; account_created or a URL does not mean onboarding is complete. обязательно по схеме · string
stripeAccountId
Non-secret connected-account reference, when present. обязательно по схеме · string / null
url
Short-lived provider authorization/onboarding URL; never an API credential. обязательно по схеме · string / null
expiresAt
Actual provider/state expiry; obtain a fresh link after expiry. обязательно по схеме · string / null
onboardingOperationId
Separate recoverable native onboarding operation after account creation. необязательно · string
Поля и технические схемы
Входные поля и поля ответа stripe_create_account
Вход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{8,128}$",
      "description": "Stable idempotency key for this exact attempt. Reuse unchanged after a lost response."
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Current revision returned by stripe_get_status. A stale revision returns CONFLICT; read latest before a new operation."
    },
    "email": {
      "description": "Only if backend company/contact data has no email.",
      "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,}$"
    },
    "country": {
      "description": "Only if backend company data has no verified ISO alpha-2 country.",
      "type": "string",
      "pattern": "^[A-Z]{2}$"
    }
  },
  "required": [
    "requestId",
    "expectedRevision"
  ],
  "additionalProperties": false
}
Выход · JSON Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "operationId": {
      "type": "string",
      "pattern": "^si_[a-f0-9]{48}$",
      "description": "Protected company and user bound Stripe operation reference."
    },
    "revision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 9007199254740991,
      "description": "Current revision returned by stripe_get_status. A stale revision returns CONFLICT; read latest before a new operation."
    },
    "mode": {
      "type": "string",
      "enum": [
        "existing_account",
        "new_account",
        "sabsus_platform"
      ],
      "description": "existing_account connects an existing Stripe account; new_account creates one through the native Cloud Function; sabsus_platform uses the platform Stripe account without a company account."
    },
    "status": {
      "type": "string",
      "description": "Confirmed setup result; account_created or a URL does not mean onboarding is complete."
    },
    "stripeAccountId": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^acct_[A-Za-z0-9]+$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Non-secret connected-account reference, when present."
    },
    "url": {
      "anyOf": [
        {
          "type": "string",
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "description": "Short-lived provider authorization/onboarding URL; never an API credential."
    },
    "expiresAt": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time",
          "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])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
        },
        {
          "type": "null"
        }
      ],
      "description": "Actual provider/state expiry; obtain a fresh link after expiry."
    },
    "onboardingOperationId": {
      "description": "Separate recoverable native onboarding operation after account creation.",
      "type": "string",
      "pattern": "^si_[a-f0-9]{48}$"
    }
  },
  "required": [
    "operationId",
    "revision",
    "mode",
    "status",
    "stripeAccountId",
    "url",
    "expiresAt"
  ],
  "additionalProperties": false
}