SeggWat · Schema

ChurnEvent

A churn event representing a subscription cancellation from a payment provider

FeedbackIndieHackersSoftware-as-a-ServiceStartupsWidgets

Properties

Name Type Description
id string Unique identifier for the churn event
project_id string The project this churn event belongs to
provider object
subscription_id string Subscription identifier from the payment provider
customer_id stringnull Customer identifier from the payment provider (if available)
customer_email stringnull Customer email address (if available)
reason object
comment stringnull Free-text cancellation comment from the customer (if provided)
product_name stringnull Name of the cancelled product or plan (if available)
canceled_at string ISO 8601 timestamp when the subscription was cancelled
created_at string ISO 8601 timestamp when the churn event was recorded in SeggWat
View JSON Schema on GitHub

JSON Schema

seggwat-com-churn-event-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/seggwat-com/json-schema/seggwat-com-churn-event-schema.json",
  "title": "ChurnEvent",
  "description": "A churn event representing a subscription cancellation from a payment provider",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/seggwat-com-api-openapi.json#/components/schemas/ChurnEvent",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the churn event"
    },
    "project_id": {
      "type": "string",
      "description": "The project this churn event belongs to"
    },
    "provider": {
      "$ref": "#/$defs/ChurnProvider"
    },
    "subscription_id": {
      "type": "string",
      "description": "Subscription identifier from the payment provider"
    },
    "customer_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Customer identifier from the payment provider (if available)"
    },
    "customer_email": {
      "type": [
        "string",
        "null"
      ],
      "description": "Customer email address (if available)"
    },
    "reason": {
      "$ref": "#/$defs/CancellationReason"
    },
    "comment": {
      "type": [
        "string",
        "null"
      ],
      "description": "Free-text cancellation comment from the customer (if provided)"
    },
    "product_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Name of the cancelled product or plan (if available)"
    },
    "canceled_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the subscription was cancelled"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "ISO 8601 timestamp when the churn event was recorded in SeggWat"
    }
  },
  "required": [
    "id",
    "project_id",
    "provider",
    "subscription_id",
    "reason",
    "canceled_at",
    "created_at"
  ],
  "$defs": {
    "CancellationReason": {
      "type": "string",
      "description": "Reason the customer cancelled their subscription",
      "enum": [
        "CustomerService",
        "LowQuality",
        "MissingFeatures",
        "SwitchedService",
        "TooComplex",
        "TooExpensive",
        "Unused",
        "Other",
        "Unknown"
      ]
    },
    "ChurnProvider": {
      "type": "string",
      "description": "Payment provider that reported the cancellation",
      "enum": [
        "Polar",
        "Stripe"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/seggwat-com-churn-event"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.