{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/utmkit-co/json-schema/utmkit-co-conversion-input-schema.json",
  "title": "ConversionInput",
  "description": "One result the customer's server reports (spec 046). `link` is the `_link` value the landing URL carried and is required on a customer's first conversion; afterwards the binding answers.",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/utmkit-co-openapi.yml#/components/schemas/ConversionInput",
  "properties": {
    "currency": {
      "description": "Three letters, shape only; kept as given, never converted",
      "type": [
        "string",
        "null"
      ]
    },
    "customer_id": {
      "description": "The customer's identifier in the caller's own system",
      "maxLength": 128,
      "minLength": 1,
      "type": "string"
    },
    "event_id": {
      "description": "The caller's identifier for this event; a repeat is a retry",
      "maxLength": 128,
      "minLength": 1,
      "type": "string"
    },
    "kind": {
      "description": "purchase, signup, lead, or a word of the customer's own",
      "maxLength": 32,
      "type": [
        "string",
        "null"
      ]
    },
    "link": {
      "description": "`<host>/<short_code>`, exactly the `_link` value the landing URL carried",
      "type": [
        "string",
        "null"
      ]
    },
    "occurred_at": {
      "description": "When it happened. Defaults to now; refused far in the future or past",
      "format": "date-time",
      "type": [
        "string",
        "null"
      ]
    },
    "value": {
      "description": "Decimal string, >= 0. Requires currency",
      "pattern": "^\\d+(\\.\\d+)?$",
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "customer_id",
    "event_id"
  ],
  "type": "object"
}