{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/neuronsystems-org/json-schema/neuronsystems-org-quote-response-schema.json",
  "title": "QuoteResponse",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/neuronsystems-org-openapi.json#/components/schemas/QuoteResponse",
  "type": "object",
  "properties": {
    "status": {
      "type": "string"
    },
    "quote": {
      "type": "object",
      "properties": {
        "quote_id": {
          "type": "string",
          "description": "Pass this to /api/v1/orders or /api/v1/checkout."
        },
        "format": {
          "$ref": "#/$defs/AdFormat"
        },
        "sport": {
          "$ref": "#/$defs/Sport"
        },
        "impressions_guaranteed": {
          "type": "integer"
        },
        "effective_cpm_usd": {
          "type": "number"
        },
        "volume_discount_pct": {
          "type": "number"
        },
        "total_cost_usd": {
          "type": "number",
          "description": "Exactly what Stripe will collect."
        },
        "expires_at": {
          "type": "string",
          "format": "date-time"
        },
        "expires_in_seconds": {
          "type": "integer"
        },
        "list_cpm_usd": {
          "type": "number",
          "description": "Published rate-card CPM for the format."
        },
        "floor_cpm_usd": {
          "type": "number",
          "description": "Hard floor for the format. effective_cpm_usd is never below this."
        }
      }
    }
  },
  "$defs": {
    "AdFormat": {
      "type": "string",
      "enum": [
        "leaderboard_728x90",
        "medium_rectangle_300x250",
        "mobile_banner_320x50",
        "voice_sponsor_read",
        "pregame_anthem_slot",
        "halftime_music_show"
      ]
    },
    "Sport": {
      "type": "string",
      "enum": [
        "all",
        "gridiron",
        "fnba",
        "pitwall",
        "starsofsoccer",
        "fiba",
        "fifa"
      ],
      "description": "gridiron=NFL, fnba=WNBA/NBA, pitwall=Formula 1, starsofsoccer=European football, all=run-of-network. fiba/fifa are concluded tournaments (replay vault).",
      "default": "all"
    }
  }
}