{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clickwise-net/json-schema/clickwise-net-program-schema.json",
  "title": "Program",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clickwise-net-publisher-openapi.yml#/components/schemas/Program",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Clickwise campaign id (links, reports)."
    },
    "campaign_id": {
      "type": "string"
    },
    "campaign_name": {
      "type": "string"
    },
    "landing_url": {
      "type": "string"
    },
    "currency": {
      "type": "string"
    },
    "link_ready": {
      "type": "boolean"
    },
    "link_ready_error": {
      "type": [
        "string",
        "null"
      ]
    },
    "existing_links": {
      "type": "integer"
    },
    "assignment_status": {
      "type": "string",
      "enum": [
        "assigned",
        "not_assigned"
      ]
    },
    "can_apply": {
      "type": "boolean"
    },
    "commission": {
      "type": "object",
      "description": "What this publisher earns.",
      "properties": {
        "rate": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "source": {
          "type": "string",
          "enum": [
            "campaign_payout",
            "none"
          ]
        }
      }
    },
    "program": {
      "type": "object",
      "additionalProperties": true
    }
  }
}