{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/outpost-ai/json-schema/outpost-ai-setup-intent-response-schema.json",
  "title": "SetupIntentResponse",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/outpost-ai-stripe-mor.yaml#/components/schemas/SetupIntentResponse",
  "type": "object",
  "required": [
    "client_secret",
    "setup_intent_id",
    "mor_customer_id",
    "status"
  ],
  "properties": {
    "client_secret": {
      "type": "string",
      "description": "Pass to Stripe Elements via\n`loadStripe(OUTPOST_PUBLISHABLE_KEY)` and confirm with\n`stripe.confirmSetup({ clientSecret, … })`.\n"
    },
    "setup_intent_id": {
      "type": "string",
      "description": "SetupIntent ID on Outpost's PSP account."
    },
    "mor_customer_id": {
      "type": "string",
      "description": "Outpost's Stripe Customer ID (empty Customer with metadata\npointing back at your `merchant_customer.stripe_id`). Persist for\nfuture reference.\n"
    },
    "status": {
      "type": "string",
      "enum": [
        "requires_payment_method",
        "requires_confirmation",
        "requires_action",
        "processing",
        "succeeded"
      ]
    }
  }
}