{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/clickwise-net/json-schema/clickwise-net-conversion-schema.json",
  "title": "Conversion",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/clickwise-net-publisher-openapi.yml#/components/schemas/Conversion",
  "type": "object",
  "properties": {
    "source": {
      "type": "string"
    },
    "transaction_id": {
      "type": "string"
    },
    "occurred_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "campaign_id": {},
    "subid": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "pending",
        "approved",
        "declined"
      ]
    },
    "commission": {
      "type": "number",
      "description": "What this publisher earns."
    },
    "sale_amount": {
      "type": [
        "number",
        "null"
      ]
    },
    "currency": {
      "type": "string"
    }
  }
}