{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/athenahq-ai/json-schema/athenahq-ai-subscription-product-schema.json",
  "title": "SubscriptionProduct",
  "description": "A subscription product associated with a website",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/athenahq-ai-billing-api-openapi.yml#/components/schemas/SubscriptionProduct",
  "type": "object",
  "required": [
    "id",
    "name",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the product"
    },
    "name": {
      "type": "string",
      "description": "Display name of the product"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "trialing",
        "expired",
        "canceled",
        "past_due"
      ],
      "description": "Current status of the subscription"
    },
    "canceled_at": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Timestamp in milliseconds when the subscription was canceled (null if not canceled)"
    },
    "cancel_at": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Timestamp in milliseconds when the subscription will be canceled (null if not scheduled for cancellation)"
    },
    "started_at": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Timestamp in milliseconds when the subscription started"
    },
    "ended_at": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Timestamp in milliseconds when the subscription ended (null if still active)"
    }
  }
}