{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getoneprofile-ai/json-schema/getoneprofile-ai-affiliate-stats-read-schema-schema.json",
  "title": "AffiliateStatsReadSchema",
  "description": "The affiliate dashboard's headline numbers.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getoneprofile-ai-affiliate-api-openapi.yml#/components/schemas/AffiliateStatsReadSchema",
  "properties": {
    "available_cents": {
      "description": "Payable balance; negative when clawbacks exceed earnings.",
      "title": "Available Cents",
      "type": "integer"
    },
    "click_count": {
      "description": "Deduplicated, bot-filtered clicks on the affiliate's links.",
      "title": "Click Count",
      "type": "integer"
    },
    "lifetime_earned_cents": {
      "description": "All commission ever accrued.",
      "title": "Lifetime Earned Cents",
      "type": "integer"
    },
    "lifetime_paid_cents": {
      "description": "All payouts ever sent.",
      "title": "Lifetime Paid Cents",
      "type": "integer"
    },
    "paying_count": {
      "description": "Of those, how many are on a paid plan.",
      "title": "Paying Count",
      "type": "integer"
    },
    "pending_cents": {
      "description": "Commission still inside the pending window.",
      "title": "Pending Cents",
      "type": "integer"
    },
    "registered_count": {
      "description": "Workspaces that signed up through the links.",
      "title": "Registered Count",
      "type": "integer"
    }
  },
  "required": [
    "click_count",
    "registered_count",
    "paying_count",
    "pending_cents",
    "available_cents",
    "lifetime_earned_cents",
    "lifetime_paid_cents"
  ],
  "type": "object"
}