{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rezdy/json-schema/rezdy-real-time-product-update-request-schema.json",
  "title": "RealTimeProductUpdateRequest",
  "description": "Product real time update request",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rezdy-rezdyconnect-api-openapi.yml#/components/schemas/RealTimeProductUpdateRequest",
  "required": [
    "products"
  ],
  "type": "object",
  "properties": {
    "products": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ProductsResponseProducts"
      }
    },
    "importFeatures": {
      "$ref": "#/$defs/ProductUpdateRequestImportFeatures"
    },
    "lastUpdated": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "ProductUpdateRequestImportFeatures": {
      "required": [
        "bookingInfo",
        "description",
        "extras",
        "images",
        "pickups",
        "price"
      ],
      "type": "object",
      "properties": {
        "bookingInfo": {
          "type": "boolean",
          "description": "Import booking fields"
        },
        "description": {
          "type": "boolean",
          "description": "Import product description"
        },
        "extras": {
          "type": "boolean",
          "description": "Import product extras"
        },
        "images": {
          "type": "boolean",
          "description": "Import product images"
        },
        "pickups": {
          "type": "boolean",
          "description": "Import product pickup locations"
        },
        "price": {
          "type": "boolean",
          "description": "Import product pricing"
        }
      },
      "description": "Product features to import. If omitted, all features will be imported."
    },
    "ProductsResponseBookingFields": {
      "required": [
        "fieldType",
        "label",
        "requiredPerBooking",
        "requiredPerParticipant",
        "visiblePerBooking",
        "visiblePerParticipant"
      ],
      "type": "object",
      "properties": {
        "fieldType": {
          "type": "string",
          "description": "Type of a custom booking field. This type does not apply on the Rezdy build-in booking fields.",
          "enum": [
            "Boolean",
            "List",
            "String",
            "Hidden"
          ]
        },
        "label": {
          "type": "string",
          "description": "Field label that can be shown to customers."
        },
        "listOptions": {
          "type": "string",
          "description": "If this field only allows limited values to be selected from a list, they'll be included in this string, separated by new lines '\\r\\n'."
        },
        "requiredPerBooking": {
          "type": "boolean",
          "description": "True if this field must be populated once per booking, regardless of the number of items or participants. It should be in Booking.fields."
        },
        "requiredPerParticipant": {
          "type": "boolean",
          "description": "True if this field must be populated for each participant. It should be in Booking.BookingItem.Participant.fields."
        },
        "visiblePerBooking": {
          "type": "boolean",
          "description": "True if this field should be asked once per booking, regardless of the number of items or participants. It should be in Booking.fields."
        },
        "visiblePerParticipant": {
          "type": "boolean",
          "description": "True if this field should be asked for each participant when doing a booking. It should be in Booking.BookingItem.Participant.fields."
        }
      },
      "description": "An information about a booking or a participant."
    },
    "ProductsResponseExtras": {
      "required": [
        "extraPriceType",
        "name",
        "price"
      ],
      "type": "object",
      "properties": {
        "description": {
          "type": "string",
          "description": "Description of the extra"
        },
        "extraPriceType": {
          "type": "string",
          "description": "Price type for this extra. Defines what quantities are allowed and how their price is calculated. * `ANY` Customers can select the quantities independently. For example, if 4 people book then they can choose 2 DVDs (or less/more) * `FIXED` Extra is charged once per order. For example if 4 people book then they will be charged only once for this extra * `QUANTITY` Extra is charged for each item or person booked. For example if 4 people book then they will be charged 4 times for this extra.",
          "enum": [
            "ANY",
            "FIXED",
            "QUANTITY"
          ]
        },
        "image": {
          "$ref": "#/$defs/ProductsResponseImage"
        },
        "name": {
          "type": "string",
          "description": "Name of the extra"
        },
        "price": {
          "type": "integer",
          "description": "Price for a single quantity of this extra",
          "format": "int64"
        }
      },
      "description": "Optional service or item that can be purchased when booking a specific product"
    },
    "ProductsResponseImage": {
      "required": [
        "itemUrl"
      ],
      "type": "object",
      "properties": {
        "itemUrl": {
          "type": "string",
          "description": "Full size image link"
        },
        "largeSizeUrl": {
          "type": "string",
          "description": "Large size image link (1280px)"
        },
        "mediumSizeUr": {
          "type": "string",
          "description": "Medium size image link (480px)"
        },
        "thumbnailUrl": {
          "type": "string",
          "description": "Thumbnail image link (240px)"
        }
      },
      "description": "Image links."
    },
    "ProductsResponseLocationAddress": {
      "type": "object",
      "properties": {
        "addressLine": {
          "type": "string",
          "description": "Address line."
        },
        "addressLine2": {
          "type": "string",
          "description": "Address line 2."
        },
        "city": {
          "type": "string",
          "description": "City name"
        },
        "countryCode": {
          "type": "string",
          "description": "Country code"
        },
        "latitude": {
          "type": "integer",
          "description": "Geolocation - latitude",
          "format": "int64"
        },
        "longitude": {
          "type": "integer",
          "description": "Geolocation - longitude",
          "format": "int64"
        },
        "postCode": {
          "type": "string",
          "description": "Post Code."
        },
        "state": {
          "type": "string",
          "description": "State name"
        }
      },
      "description": "Product location address."
    },
    "ProductsResponsePickupLocations": {
      "required": [
        "locationName"
      ],
      "type": "object",
      "properties": {
        "address": {
          "type": "string",
          "description": "Address of the pickup location."
        },
        "latitude": {
          "type": "number",
          "description": "Latitude of the pickup address.",
          "format": "double"
        },
        "locationName": {
          "type": "string",
          "description": "Pickup location name - free text name for the location.\""
        },
        "longitude": {
          "type": "number",
          "description": "Longitude of the pickup address.",
          "format": "double"
        },
        "minutesPrior": {
          "type": "integer",
          "description": "Pickup time in minutes, prior to the tour start time.",
          "format": "int32"
        },
        "pickupInstructions": {
          "type": "string",
          "description": "Chosen pickup instructions (general and location specific)."
        }
      },
      "description": "Customer's chosen pickup location information and pickup instructions for this booked item."
    },
    "ProductsResponsePriceOptions": {
      "required": [
        "label",
        "price"
      ],
      "type": "object",
      "properties": {
        "label": {
          "type": "string",
          "description": "Label for this price (I.e. \"Adult\", \"Child\").  Note: to use a standard price options label as `Everyone` in Rezdy UI, you will need to specify label as 'Quantity'."
        },
        "maxQuantity": {
          "type": "integer",
          "description": "Max booking quantity for the product price option. Can be specified, if the price option is fixed or a grouptype. For a successful booking of the product, the number of participants for this price option have to be lesser or equal than this value.",
          "format": "int32"
        },
        "minQuantity": {
          "type": "integer",
          "description": "Min booking quantity for the product price option. Can be specified, if the price option is fixed or a group type. For a successful booking of the product, the number of participants for this price option have to be greater or equal than this value.",
          "format": "int32"
        },
        "price": {
          "type": "number",
          "description": "Price amount (I.e. \"200.00\")",
          "format": "float"
        },
        "priceGroupType": {
          "type": "string",
          "description": "If this price is for a group, is the price for the whole group (TOTAL) or per quantity (EACH)",
          "enum": [
            "EACH",
            "TOTAL"
          ]
        },
        "seatsUsed": {
          "type": "integer",
          "description": "How many seats one quantity of this price will use. Used for availability calculations. For example 1 quantity of \"Family of 4\" will use 4 seats.",
          "format": "int32"
        }
      },
      "description": "A Price Option belongs to a product or products sessions. It holds price details for a specific price type. Products can have one or many price options (I.e. Adult, Child, Family, etc.)"
    },
    "ProductsResponseProducts": {
      "required": [
        "description",
        "durationMinutes",
        "name",
        "priceOptions",
        "rezdyConnectSettings",
        "shortDescription"
      ],
      "type": "object",
      "properties": {
        "additionalInformation": {
          "type": "string",
          "description": "Additional information for the product that should be sent after a booking is completed (i.e. by email) to the customer. Useful for integration, when manual control of the entire customer booking experience is wanted, and the automatic confirmation e-mail from Rezdy had been suppressed.  )"
        },
        "advertisedPrice": {
          "type": "number",
          "description": "General price indication for this product. It represents a display price only, therefore it does not affect a real booking price, which is calculated based on the price options.)",
          "format": "float"
        },
        "barcodeOutputType": {
          "type": "string",
          "description": "Specifies how to output the barcodes when this product is booked. Valid values are  - ``PARTICIPANT`` = Barcodes will be generated per participant when this product is booked  - ``ORDER`` = Barcodes will only be generated for the order when this product is booked",
          "enum": [
            "ORDER",
            "PARTICIPANT"
          ]
        },
        "barcodeType": {
          "type": "string",
          "description": "Declares the redemption code format customers will receive when this product is booked.",
          "enum": [
            "CODE_128",
            "CODE_39",
            "EAN_13",
            "EAN_8",
            "ITF",
            "QR_CODE",
            "TEXT"
          ]
        },
        "bookingFields": {
          "type": "array",
          "description": "List of booking fields for this product.",
          "items": {
            "$ref": "#/$defs/ProductsResponseBookingFields"
          }
        },
        "bookingMode": {
          "type": "string",
          "description": "Booking mode. Determines if this product needs availability or can be booked for any date.",
          "enum": [
            "DATE_ENQUIRY",
            "INVENTORY",
            "NO_DATE"
          ]
        },
        "charter": {
          "type": "boolean",
          "description": "A charter product means each session can only have a single booking, whatever the number of seats booked."
        },
        "confirmMode": {
          "type": "string",
          "description": "Confirmation mode. Determines if bookings are automatically confirmed or it they are pending.  Confirm bookings: * `AUTOCONFIRM` Your customer's orders will be automatically confirmed. This is the recommended option if you use Rezdy to manage availability for this product, because your products can never be overbooked. * `MANUAL` Orders placed by your customers will have a \"Pending supplier\" status. You must manually review and confirm each order. * `MANUAL_THEN_AUTO` This is useful if you want to wait until you have a minimum quantity for a specific date before you confirm availability. * `AUTO_THEN_MANUAL` This is useful if you have external factors impacting your availability, and you want to manually review orders after your confirmed seats are sold.",
          "enum": [
            "AUTOCONFIRM",
            "AUTO_THEN_MANUAL",
            "MANUAL",
            "MANUAL_THEN_AUTO"
          ]
        },
        "confirmModeMinParticipants": {
          "type": "integer",
          "description": "If confirmMode is MANUAL_THEN_AUTO or AUTO_THEN_MANUAL, determines the minimum number of participants per booking to trigger the change.)",
          "format": "int32"
        },
        "description": {
          "type": "string",
          "description": "Long product description is between 100 and 15000 characters."
        },
        "durationMinutes": {
          "type": "integer",
          "description": "Duration of the product in minutes. Must be an integer number e.g. 60, not a float.",
          "format": "int32"
        },
        "extras": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProductsResponseExtras"
          }
        },
        "images": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProductsResponseImage"
          }
        },
        "internalCode": {
          "type": "string",
          "description": "Supplier-defined product code, used internally by the supplier. It's an alternative option to store product mapping on Rezdy, instead of mapping to Rezdy product codes. If specified RezdyConnect will use this code and send it with every search request as externalProductCode query parameter."
        },
        "languages": {
          "type": "array",
          "description": "List of product languages. The format of the language is ISO 639 two-letter code with BCP 47 language variants, separated by underscore e.g. en_au.)",
          "items": {
            "type": "string",
            "description": "List of product languages. The format of the language is ISO 639 two-letter code with BCP 47 language variants, separated by underscore e.g. en_au.)"
          }
        },
        "locationAddress": {
          "$ref": "#/$defs/ProductsResponseLocationAddress"
        },
        "minimumNoticeMinutes": {
          "type": "integer",
          "description": "Minimum book ahead internal before session start time in minutes.",
          "format": "int32"
        },
        "name": {
          "type": "string",
          "description": "Product name"
        },
        "pickupLocations": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ProductsResponsePickupLocations"
          }
        },
        "priceOptions": {
          "type": "array",
          "description": "List of price options for this product.",
          "items": {
            "$ref": "#/$defs/ProductsResponsePriceOptions"
          }
        },
        "productCode": {
          "type": "string",
          "description": "Rezdy product code. Either Rezdy productCode or internalCode in order to sycnrhonize an existing product, so we will be able to map it."
        },
        "productType": {
          "type": "string",
          "description": "Type of this product. Use it for product categorisation, but it does not make any difference in RezdyConnect booking flow or availability managements.",
          "enum": [
            "ACTIVITY",
            "CHARTER",
            "CUSTOM",
            "DAYTOUR",
            "ENQUIRY",
            "EVENT",
            "GIFT_CARD",
            "HOPONHOPOFF",
            "LESSON",
            "MERCHANDISE",
            "MULTIDAYTOUR",
            "PASS",
            "PRIVATE_TOUR",
            "RENTAL",
            "TICKET",
            "TRANSFER"
          ]
        },
        "quantityRequired": {
          "type": "boolean",
          "description": "Does this product require a quantity to be booked? True for most products. Can be false if the supplier can only provide one quantity at any single time (I.e. charters) or a price of a booking is fixed regardless of quantity)"
        },
        "quantityRequiredMax": {
          "type": "integer",
          "description": "Represent the max booking quantity for the product. It can be setup for a supplier product. For a successful booking of the product, the total number of participants (regardless of pricing options), per booking item in the booking request, have to be lesser or equal than this value.)",
          "format": "int32"
        },
        "quantityRequiredMin": {
          "type": "integer",
          "description": "Represent the min booking quantity for the product. It can be setup for a supplier product. For a successful booking of the product, the total number of participants (regardless of pricing options), per booking item in the booking request, have to be greater or equal than this value.)",
          "format": "int32"
        },
        "rezdyConnectSettings": {
          "$ref": "#/$defs/ProductsResponseRezdyConnectSettings"
        },
        "shortDescription": {
          "type": "string",
          "description": "Product short description is between 15 and 240 characters."
        },
        "terms": {
          "type": "string",
          "description": "Specific terms and conditions for this product."
        },
        "unitLabel": {
          "type": "string",
          "description": "What a quantity for this product is. It can be people (I.e. participant, passenger, diver) or objects (Kayak, Helicopter, etc.)"
        },
        "unitLabelPlural": {
          "type": "string",
          "description": "Plural version of unitLabel."
        }
      },
      "description": "Product to import on Rezdy. Used in a response from your product endpoint.  Product entity holds general details and settings of a specific tour, activity or event."
    },
    "ProductsResponseRezdyConnectSettings": {
      "required": [
        "externalAvailabilityApi",
        "externalBookingApi",
        "externalCancellationApi",
        "externalReservationApi"
      ],
      "type": "object",
      "properties": {
        "externalAvailabilityApi": {
          "type": "string",
          "description": "External availability endpoint for an external inventory mode product. Use it to specify an availability endpoint for RezdyConnect calls, when creating a product."
        },
        "externalBookingApi": {
          "type": "string",
          "description": "External booking endpoint for an external inventory mode product. Use it to specify a booking endpoint for RezdyConnect calls, when creating a product."
        },
        "externalBookingStrategy": {
          "type": "string",
          "description": "Booking strategy for an external inventory mode product. Default if not specified is TWO_STEPS_BOOKING Use it to specify a booking strategy for RezdyConnect calls, when creating a product.",
          "enum": [
            "ONE_STEP_BOOKING",
            "TWO_STEPS_BOOKING"
          ]
        },
        "externalCancellationApi": {
          "type": "string",
          "description": "External booking cancellation endpoint for an external inventory mode product. Use it to specify a cancellation endpoint for RezdyConnect calls, when creating a product."
        },
        "externalReservationApi": {
          "type": "string",
          "description": "External reservation endpoint for an external inventory mode product. Use it to specify a reservation endpoint for RezdyConnect calls, when creating a product."
        }
      }
    }
  }
}