{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/connections-icu/json-schema/connections-icu-product-catalog-response-schema.json",
  "title": "ProductCatalogResponse",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/connections-icu-product-openapi.yml#/components/schemas/ProductCatalogResponse",
  "type": "object",
  "required": [
    "products",
    "connect"
  ],
  "properties": {
    "products": {
      "type": "array",
      "description": "Products eligible for registration bypasses or imported product selection. Use id as stripe_product_id and defaultPrice.priceId as stripe_price_id when stripe_mode is imported.",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Stripe product ID."
          },
          "name": {
            "type": "string"
          },
          "source": {
            "type": "string",
            "enum": [
              "platform",
              "connect"
            ]
          },
          "defaultPrice": {
            "type": [
              "object",
              "null"
            ],
            "properties": {
              "priceId": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Stripe price ID when available."
              },
              "unitAmount": {
                "type": "integer"
              },
              "currency": {
                "type": "string"
              },
              "interval": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "day",
                  "week",
                  "month",
                  "year",
                  null
                ]
              },
              "intervalCount": {
                "type": "integer"
              }
            }
          }
        }
      }
    },
    "connect": {
      "type": "object",
      "properties": {
        "connected": {
          "type": "boolean"
        },
        "chargesEnabled": {
          "type": "boolean"
        },
        "error": {
          "type": "string",
          "description": "Sanitized reason connected Stripe products could not load."
        }
      }
    }
  }
}