{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pptogo-com/json-schema/pptogo-com-campaign-schema.json",
  "title": "Campaign",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pptogo-com-openapi.json#/components/schemas/Campaign",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "campaignType": {
      "type": "string",
      "enum": [
        "affiliate",
        "promo",
        "launch",
        "seasonal"
      ]
    },
    "commissionRate": {
      "type": "number",
      "format": "float"
    },
    "status": {
      "type": "string",
      "enum": [
        "draft",
        "active",
        "paused",
        "ended"
      ]
    },
    "startsAt": {
      "type": "integer"
    },
    "endsAt": {
      "type": [
        "integer",
        "null"
      ]
    }
  }
}