POSTpartial

Admit or resume Stripe account onboarding for a tenant

An active tenant administrator and current account session are required. Return and refresh URLs are fixed by APP_URL. A single-use URL is returned once and never stored. The request is checked at the storage commit before provider account creation.

/api/account/integrations/{partnerId}/stripe-connectcreateConsoleStripeOnboardingLink

Authentication and authority

Use one listed account-session, scoped OAuth, or partner credential alternative. Account tokens retain the approving account’s authority. Cookie-authenticated writes require same-origin authorization. Alternatives are OR; schemes in one alternative are AND.

CanonicalSession

Parameters

NameLocationRequirementSchema
partnerIdpathRequired{"type":"string"}
Idempotency-KeyheaderRequired{"type":"string","minLength":8,"maxLength":200}

Request body

Required request body.

application/json

{
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "accountRecordId": {
      "type": "string"
    }
  }
}

Responses

201

Authorized Stripe Connect resource.

application/json

{
  "type": "object",
  "required": [
    "ok",
    "data"
  ],
  "properties": {
    "data": {
      "type": "object",
      "required": [
        "account",
        "onboardingUrl",
        "expiresAt"
      ],
      "properties": {
        "account": {
          "$ref": "#/components/schemas/StripeConnectedAccount",
          "type": "object",
          "required": [
            "id",
            "environment",
            "status",
            "admittedAt"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "accountId": {
              "type": "string"
            },
            "accountApiVersion": {
              "type": "string",
              "enum": [
                "v1",
                "v2"
              ],
              "description": "Stripe Accounts API used by this linked account. Historical records may omit this field and use v1."
            },
            "environment": {
              "enum": [
                "test",
                "live"
              ]
            },
            "status": {
              "enum": [
                "pending",
                "requirements_due",
                "ready",
                "restricted"
              ]
            },
            "admittedAt": {
              "type": "string",
              "format": "date-time"
            },
            "chargesEnabled": {
              "type": "boolean"
            },
            "payoutsEnabled": {
              "type": "boolean"
            },
            "requirementsDue": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "checkedAt": {
              "type": "string",
              "format": "date-time"
            }
          },
          "x-mcp-exposure": "none"
        },
        "onboardingUrl": {
          "type": "string",
          "format": "uri"
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "ok": {
      "type": "boolean"
    }
  }
}
default

Authorization, validation or provider configuration failure.

application/problem+json

{
  "$ref": "#/components/schemas/Problem",
  "type": "object",
  "required": [
    "type",
    "title",
    "status",
    "code",
    "detail",
    "requestId"
  ],
  "properties": {
    "type": {
      "type": "string",
      "format": "uri"
    },
    "title": {
      "type": "string"
    },
    "status": {
      "type": "integer"
    },
    "code": {
      "type": "string"
    },
    "detail": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    }
  }
}

Example response

Successful response

{
  "data": {
    "account": {
      "id": "id_test",
      "environment": "test",
      "status": "pending",
      "admittedAt": "2026-08-09T12:00:00.000Z"
    },
    "onboardingUrl": "https://partner.test.example/callbacks/peoples-court",
    "expiresAt": "2026-08-09T12:00:00.000Z"
  },
  "ok": false
}

Errors

Read the response status and stable error code. See errors and rate limits for recovery. Refresh the resource before resolving a state or digest conflict.

Idempotency and retries

  • For throttling, honor Retry-After when present. Back off on retryable server failures.
  • Send a unique Idempotency-Key. An exact retry returns the stored result; reusing the key with a different request fails.
  • The request is accepted only when its credential, authority, case state, and resource preconditions are satisfied.