{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/corapilot-com/json-schema/corapilot-com-subscription-out-schema.json",
  "title": "SubscriptionOut",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/corapilot-com-openapi.yml#/components/schemas/SubscriptionOut",
  "properties": {
    "id": {
      "type": "integer",
      "title": "Id"
    },
    "account_id": {
      "type": "integer",
      "title": "Account Id"
    },
    "monthly_price_cents": {
      "type": "integer",
      "title": "Monthly Price Cents"
    },
    "usage_price_per_unit_cents": {
      "type": "integer",
      "title": "Usage Price Per Unit Cents"
    },
    "status": {
      "$ref": "#/$defs/SubscriptionStatus"
    },
    "current_period_start": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Current Period Start"
    },
    "current_period_end": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Current Period End"
    }
  },
  "type": "object",
  "required": [
    "id",
    "account_id",
    "monthly_price_cents",
    "usage_price_per_unit_cents",
    "status",
    "current_period_start",
    "current_period_end"
  ],
  "$defs": {
    "SubscriptionStatus": {
      "type": "string",
      "enum": [
        "active",
        "canceled",
        "past_due",
        "trialing"
      ],
      "title": "SubscriptionStatus",
      "description": "Subscription status values."
    }
  }
}