{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/upsellguru/json-schema/upsellguru-save-upgrade-bid-request-schema.json",
  "title": "SaveUpgradeBidRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/upsellguru-openapi.yml#/components/schemas/SaveUpgradeBidRequest",
  "type": "object",
  "required": [
    "hotelId",
    "reservationId",
    "roomTypeId",
    "amount",
    "touchpoint",
    "sourceChannel"
  ],
  "properties": {
    "hotelId": {
      "type": "integer",
      "description": "The Hotel ID"
    },
    "reservationId": {
      "type": "integer",
      "description": "The Reservation ID"
    },
    "roomTypeId": {
      "type": "integer",
      "description": "The Room Type ID"
    },
    "wasHighlightedRoom": {
      "type": "boolean",
      "description": "Room type was previously highlighted"
    },
    "amount": {
      "type": "number",
      "format": "float",
      "description": "Amount of the upgrade bid"
    },
    "touchpoint": {
      "$ref": "#/$defs/Touchpoint"
    },
    "sourceChannel": {
      "$ref": "#/$defs/SourceChannel"
    }
  },
  "$defs": {
    "SourceChannel": {
      "type": "string",
      "enum": [
        "EMAIL",
        "SMS",
        "WHATSAPP",
        "QR_CODE",
        "AT_DESK",
        "PHONE"
      ]
    },
    "Touchpoint": {
      "type": "string",
      "enum": [
        "AT_RESERVATION",
        "RESERVATION_CONFIRMATION",
        "PRE_ARRIVAL_UPSELLING",
        "PRE_ARRIVAL_UPSELLING_REMINDER",
        "ALTERNATIVE_UPGRADE",
        "GUEST_RETARGETING",
        "REGISTRATION_CARD",
        "FRONT_DESK",
        "SPA",
        "F_AND_B",
        "INHOUSE_EXTRAS",
        "HOTEL_DIRECTORY"
      ]
    }
  }
}