{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/utmkit-co/json-schema/utmkit-co-conversion-schema.json",
  "title": "Conversion",
  "description": "A recorded conversion. `attributed_by` says how the link was found on a 201; `duplicate: true` marks the 200 a retry gets.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/utmkit-co-openapi.yml#/components/schemas/Conversion",
  "properties": {
    "attributed_by": {
      "enum": [
        "reference",
        "binding"
      ],
      "type": [
        "string",
        "null"
      ]
    },
    "currency": {
      "type": [
        "string",
        "null"
      ]
    },
    "customer_id": {
      "type": "string"
    },
    "duplicate": {
      "type": [
        "boolean",
        "null"
      ]
    },
    "event_id": {
      "type": "string"
    },
    "id": {
      "type": "integer"
    },
    "kind": {
      "type": "string"
    },
    "link": {
      "type": [
        "string",
        "null"
      ]
    },
    "occurred_at": {
      "format": "date-time",
      "type": "string"
    },
    "value": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "type": "object"
}