{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cm-com/main/json-schema/cm-com-handler-view-customer-product-response-schema.json",
  "title": "handler.viewCustomerProductResponse",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cm-com-live-event-ticketing-v1-openapi.yml#/components/schemas/handler.viewCustomerProductResponse",
  "properties": {
    "barcode_id": {
      "type": "string"
    },
    "canceled_at": {
      "type": "string"
    },
    "created_at": {
      "type": "string"
    },
    "currency_id": {
      "type": "string"
    },
    "customer_data": {
      "$ref": "#/$defs/handler.viewCustomerProductCustomerData"
    },
    "event": {
      "$ref": "#/$defs/handler.viewCustomerProductEvent"
    },
    "expire_at": {
      "type": "string"
    },
    "external_barcode_id": {
      "type": "string"
    },
    "last_scanned_at": {
      "type": "string"
    },
    "order_id": {
      "type": "string"
    },
    "personalized_at": {
      "type": "string"
    },
    "price_incl_vat": {
      "type": "number"
    },
    "price_with_discount_incl_vat": {
      "type": "number"
    },
    "product": {
      "$ref": "#/$defs/handler.viewCustomerProductProduct"
    },
    "scan_count": {
      "type": "integer"
    },
    "seat": {
      "$ref": "#/$defs/handler.viewCustomerProductSeat"
    },
    "status": {
      "type": "string"
    },
    "tracking_parameters": {
      "items": {
        "$ref": "#/$defs/handler.viewCustomerProductTrackingParameter"
      },
      "type": "array",
      "uniqueItems": false
    },
    "used_access_key_id": {
      "type": "string"
    },
    "used_discount_code_external_id": {
      "type": "string"
    },
    "used_discount_code_id": {
      "type": "string"
    },
    "uuid": {
      "type": "string"
    },
    "venue": {
      "$ref": "#/$defs/handler.viewCustomerProductVenue"
    }
  },
  "type": "object",
  "$defs": {
    "handler.viewCustomerProductCustomerData": {
      "properties": {
        "email": {
          "type": "string"
        },
        "first_name": {
          "type": "string"
        },
        "last_name": {
          "type": "string"
        },
        "mobile": {
          "type": "string"
        },
        "uuid": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.viewCustomerProductEvent": {
      "properties": {
        "name": {
          "type": "string"
        },
        "uuid": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.viewCustomerProductProduct": {
      "properties": {
        "external_id_1": {
          "type": "string"
        },
        "external_id_2": {
          "type": "string"
        },
        "external_id_3": {
          "type": "string"
        },
        "is_checkin_allowed": {
          "type": "boolean"
        },
        "name": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "price_incl_vat": {
          "type": "number"
        },
        "product_type": {
          "type": "string"
        },
        "sales_from": {
          "type": "string"
        },
        "sales_until": {
          "type": "string"
        },
        "uuid": {
          "type": "string"
        },
        "valid_from": {
          "type": "string"
        },
        "valid_until": {
          "type": "string"
        },
        "validation_max_checkins": {
          "type": "integer"
        }
      },
      "type": "object"
    },
    "handler.viewCustomerProductSeat": {
      "properties": {
        "entrance": {
          "type": "string"
        },
        "primary_label": {
          "type": "string"
        },
        "primary_type": {
          "type": "string"
        },
        "seat_object_id": {
          "type": "string"
        },
        "secondary_label": {
          "type": "string"
        },
        "secondary_type": {
          "type": "string"
        },
        "section": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.viewCustomerProductTrackingParameter": {
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "handler.viewCustomerProductVenue": {
      "properties": {
        "name": {
          "type": "string"
        },
        "uuid": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}