{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/productindex-ai/json-schema/productindex-ai-conversion-recorded-schema.json",
  "title": "ConversionRecorded",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/productindex-ai-openapi.json#/components/schemas/ConversionRecorded",
  "type": "object",
  "required": [
    "recorded",
    "pi_ref",
    "event"
  ],
  "properties": {
    "recorded": {
      "type": "boolean",
      "const": true
    },
    "replay": {
      "type": "boolean",
      "description": "Present (true) when this was an identical re-send."
    },
    "pi_ref": {
      "type": "string",
      "format": "uuid"
    },
    "event": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "status": {
          "type": "string",
          "enum": [
            "accrued",
            "billed",
            "over_cap",
            "not_billable",
            "reversed"
          ]
        },
        "not_billable_reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "free_applied_cents": {
          "type": "integer"
        },
        "billable_cents": {
          "type": "integer"
        },
        "commission_cents": {
          "type": "integer"
        }
      }
    }
  }
}