Skip to main content
Create a Stripe checkout session for a new subscription

Tool details

FieldValue
Namecreate_checkout_session
GroupSubscriptions

Playground

Input schema

Input schema
{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "enum": [
        "free",
        "pro",
        "enterprise"
      ],
      "description": "Subscription tier"
    },
    "cycle": {
      "type": "string",
      "enum": [
        "monthly",
        "yearly"
      ],
      "description": "Billing cycle"
    },
    "success_url": {
      "type": "string",
      "description": "Redirect URL after success"
    },
    "cancel_url": {
      "type": "string",
      "description": "Redirect URL if cancelled"
    }
  },
  "required": [
    "type",
    "cycle"
  ],
  "additionalProperties": false,
  "description": "Input schema for the create_checkout_session tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Output schema

Output schema
{
  "type": "object",
  "properties": {
    "checkout_url": {
      "type": "string",
      "description": "The checkout url associated with this tool result."
    },
    "session_id": {
      "type": "string",
      "description": "The session id associated with this tool result."
    }
  },
  "required": [
    "checkout_url"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the create_checkout_session tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}