{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/neuronsystems-org/json-schema/neuronsystems-org-create-order-request-schema.json",
  "title": "CreateOrderRequest",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/neuronsystems-org-openapi.json#/components/schemas/CreateOrderRequest",
  "type": "object",
  "required": [
    "quote_id",
    "ad_category",
    "brand_name",
    "click_url"
  ],
  "properties": {
    "quote_id": {
      "type": "string",
      "description": "From POST /api/v1/quote."
    },
    "ad_category": {
      "type": "string",
      "enum": [
        "general",
        "alcohol",
        "betting"
      ],
      "description": "What the sponsor sells. alcohol and betting ads are shown only to signed in fans who have told us they are 21 or over; general ads are shown to everyone."
    },
    "brand_name": {
      "type": "string"
    },
    "headline": {
      "type": "string"
    },
    "click_url": {
      "type": "string",
      "format": "uri",
      "description": "HTTPS only."
    },
    "image_url": {
      "type": "string",
      "format": "uri",
      "description": "Required for display formats."
    },
    "voice_script": {
      "type": "string",
      "description": "Required for voice_sponsor_read. Maximum 35 words (~15 seconds)."
    },
    "selected_persona": {
      "$ref": "#/$defs/VoicePersona"
    },
    "track_title": {
      "type": "string",
      "description": "Required for music slots."
    },
    "artist_name": {
      "type": "string",
      "description": "Required for music slots."
    },
    "audio_stream_url": {
      "type": "string",
      "format": "uri",
      "description": "Required for music slots."
    },
    "cover_art_url": {
      "type": "string",
      "format": "uri"
    },
    "streaming_platform_url": {
      "type": "string",
      "format": "uri"
    },
    "rights_confirmed": {
      "type": "boolean",
      "description": "Must be true for music slots: you confirm licensing or ownership."
    },
    "advertiser_email": {
      "type": "string",
      "format": "email"
    },
    "idempotency_key": {
      "type": "string"
    }
  },
  "$defs": {
    "VoicePersona": {
      "type": "string",
      "enum": [
        "The Architect",
        "Marcus",
        "Leo",
        "Sam",
        "Zareena",
        "Big Mike"
      ]
    }
  }
}