Onboarding links

Download the complete public OpenAPI schema

POST /v1/onboarding_links/wallet_widget

Open a wallet widget

Create a payment-method-only hosted session for an existing profile. No purchase is authorized.

Parameters, request, responses, and security

{
  "tags": [
    "onboarding-links"
  ],
  "summary": "Open a wallet widget",
  "description": "Create a payment-method-only hosted session for an existing profile. No purchase is authorized.",
  "operationId": "v1_create_wallet_widget",
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/WalletWidgetRequest"
        }
      }
    },
    "required": true
  },
  "responses": {
    "200": {
      "description": "Successful Response",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/PaymentWidgetSession"
          }
        }
      }
    },
    "422": {
      "description": "Validation Error",
      "content": {
        "application/json": {
          "schema": {
            "$ref": "#/components/schemas/HTTPValidationError"
          }
        }
      }
    }
  },
  "security": [
    {
      "ApiKeyBearer": []
    }
  ],
  "x-api-audience": "public_v1",
  "x-api-authentication": "required",
  "x-operation-id": "v1_create_wallet_widget",
  "x-mcp-exposed": true,
  "x-public-path": "/v1/onboarding_links/wallet_widget",
  "x-auth-access": {
    "policy": "account_scoped_v1_caller",
    "enforcement": "dependency",
    "group": "app.schemas.profiles.api.v1.onboarding_links_routes",
    "mode": "required",
    "allows_anonymous": false,
    "invalid_credentials": "reject",
    "cookies": "selected_identity",
    "families": [
      "account_api",
      "agent",
      "connected_app"
    ],
    "allowed_types": [
      "account_api.secret_key",
      "agent.chat_token",
      "connected_app.account_access"
    ],
    "alternatives": [
      {
        "credentials": [
          "account_api.secret_key"
        ],
        "checks": [
          "user_exists",
          "account_and_mode"
        ]
      },
      {
        "credentials": [
          "agent.chat_token"
        ],
        "checks": [
          "user_exists",
          "chat_profile_scope",
          "account_and_mode"
        ]
      },
      {
        "credentials": [
          "connected_app.account_access"
        ],
        "checks": [
          "user_exists",
          "connected_app_grant",
          "account_and_mode"
        ]
      }
    ],
    "resource_proofs": [],
    "issues": []
  },
  "x-auth-policy": "account_scoped_v1_caller",
  "x-auth-enforcement": "dependency",
  "x-auth-verification": "Account API actor plus scoped v1 identity; profile-session-only callers are not admitted.",
  "x-docs-kind": "other",
  "x-docs-order": 100,
  "x-docs-depth": 2,
  "x-docs-action-order": 1000,
  "x-codeSamples": [
    {
      "lang": "shell",
      "label": "curl",
      "source": "curl -X POST https://api.openmerchant.dev/v1/onboarding_links/wallet_widget \\\n  -H 'Authorization: Bearer pr_sk_test_...' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n  \"profile_id\": \"...\"\n}'"
    },
    {
      "lang": "shell",
      "label": "MCP (Streamable HTTP)",
      "source": "curl -X POST https://api.openmerchant.dev/mcp/v1 \\\n  -H 'Authorization: Bearer pr_sk_test_...' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n  \"jsonrpc\": \"2.0\",\n  \"id\": 1,\n  \"method\": \"tools/call\",\n  \"params\": {\n    \"name\": \"v1_create_wallet_widget\",\n    \"arguments\": {\n      \"profile_id\": \"...\"\n    }\n  }\n}'"
    },
    {
      "lang": "typescript",
      "label": "MCP SDK (TS)",
      "source": "// Reusing a Client connected to /mcp/v1 — see the \"MCP server\" tag for setup.\nconst result = await client.callTool({\n  name: \"v1_create_wallet_widget\",\n  arguments: {\n  \"profile_id\": \"...\"\n},\n});"
    }
  ]
}