{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tintin-x-com/json-schema/tintin-x-com-billing-response-schema.json",
  "title": "BillingResponse",
  "description": "Billing status response.",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/tintin-x-com-api-openapi.json#/components/schemas/BillingResponse",
  "properties": {
    "plan": {
      "type": "string",
      "title": "Plan"
    },
    "credit_balance_cents": {
      "type": "integer",
      "title": "Credit Balance Cents"
    },
    "stripe_customer_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stripe Customer Id"
    },
    "stripe_subscription_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Stripe Subscription Id"
    },
    "auto_reload_enabled": {
      "type": "boolean",
      "title": "Auto Reload Enabled"
    },
    "auto_reload_amount_cents": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auto Reload Amount Cents"
    },
    "auto_reload_threshold_cents": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Auto Reload Threshold Cents"
    },
    "team_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Id"
    },
    "team_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Team Name"
    },
    "rollover_credits_cents": {
      "type": "integer",
      "title": "Rollover Credits Cents",
      "default": 0
    },
    "spending_cap_multiplier": {
      "type": "number",
      "title": "Spending Cap Multiplier",
      "default": 2.0
    },
    "monthly_included_credits": {
      "type": "integer",
      "title": "Monthly Included Credits",
      "default": 0
    },
    "overage_rate_per_1k": {
      "type": "integer",
      "title": "Overage Rate Per 1K",
      "default": 0
    },
    "studio_credits": {
      "type": "number",
      "title": "Studio Credits",
      "default": 0
    },
    "studio_credits_expires_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Studio Credits Expires At"
    },
    "studio_bonus_credits": {
      "type": "number",
      "title": "Studio Bonus Credits",
      "default": 0
    },
    "studio_subscription_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Studio Subscription Id"
    },
    "studio_plan": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Studio Plan"
    },
    "studio_billing_period": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Studio Billing Period"
    },
    "studio_subscription_status": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Studio Subscription Status"
    },
    "studio_current_period_end": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Studio Current Period End"
    },
    "studio_cancel_at_period_end": {
      "type": "boolean",
      "title": "Studio Cancel At Period End",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "plan",
    "credit_balance_cents",
    "stripe_customer_id",
    "stripe_subscription_id",
    "auto_reload_enabled",
    "auto_reload_amount_cents",
    "auto_reload_threshold_cents"
  ]
}