{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/elivaas/json-schema/elivaas-get-v1-properties-propertyid-promotions-response-schema.json",
  "title": "GetV1PropertiesPropertyidPromotionsResponse",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/elivaas-openapi-generated.yml#/components/schemas/GetV1PropertiesPropertyidPromotionsResponse",
  "type": "object",
  "properties": {
    "[]": {
      "type": "array",
      "description": "Array of Promotion objects. Returns an empty array if no active promotions exist."
    },
    "id": {
      "type": "string",
      "description": "Unique identifier for the promotion."
    },
    "code": {
      "type": "string",
      "description": "Promotion code. For COUPON type, this is the code guests enter at checkout."
    },
    "title": {
      "type": "string",
      "description": "Display title of the promotion."
    },
    "description": {
      "type": "string",
      "description": "Detailed description of the promotion."
    },
    "startDateTime": {
      "type": "string",
      "description": "When the promotion becomes bookable. ISO 8601 format."
    },
    "endDateTime": {
      "type": "string",
      "description": "When the promotion expires."
    },
    "stayStartDate": {
      "type": "string",
      "description": "Earliest check-in date the promotion applies to."
    },
    "stayEndDate": {
      "type": "string",
      "description": "Latest check-out date the promotion applies to."
    },
    "maximumUsageLimit": {
      "type": "integer",
      "description": "Maximum total redemptions allowed across all guests."
    },
    "usageCount": {
      "type": "integer",
      "description": "Number of times the promotion has been redeemed so far."
    },
    "minimumNights": {
      "type": "integer",
      "description": "Minimum stay length (nights) required for the promotion to apply."
    },
    "maximumNights": {
      "type": "integer",
      "description": "Maximum stay length (nights) the promotion covers."
    },
    "discountMethod": {
      "type": "string",
      "description": "How the discount is calculated. Values: PERCENTAGE, FLAT."
    },
    "discountType": {
      "type": "string",
      "description": "Classification of the discount."
    },
    "target": {
      "type": "string",
      "description": "What the discount applies to (e.g., ROOM, TOTAL)."
    },
    "discountAmount": {
      "type": "integer",
      "description": "Flat discount amount. Populated when discountMethod is FLAT."
    },
    "discountPercentage": {
      "type": "number",
      "description": "Percentage discount. Populated when discountMethod is PERCENTAGE."
    },
    "maximumDiscountAllowed": {
      "type": "integer",
      "description": "Cap on the discount amount for percentage-based promotions."
    },
    "minimumBookingAmount": {
      "type": "integer",
      "description": "Minimum booking subtotal required before the promotion can be applied."
    },
    "status": {
      "type": "string",
      "description": "Current status. Values: ACTIVE, INACTIVE, EXPIRED."
    },
    "type": {
      "type": "string",
      "description": "Promotion category."
    },
    "nonRefundable": {
      "type": "boolean",
      "description": "true if bookings using this promotion are non-refundable."
    },
    "weekendOnly": {
      "type": "boolean",
      "description": "true if the promotion applies only to weekend stays."
    },
    "weekdayOnly": {
      "type": "boolean",
      "description": "true if the promotion applies only to weekday stays."
    },
    "clubbed": {
      "type": "boolean",
      "description": "true if this promotion can be combined (stacked) with other promotions."
    },
    "lastMinuteUnit": {
      "type": "string",
      "description": "Time unit for last-minute promotion eligibility. Values: HOURS, DAYS."
    },
    "lastMinuteValue": {
      "type": "integer",
      "description": "Time value for last-minute eligibility."
    },
    "earlyBookerValueInDays": {
      "type": "integer",
      "description": "Minimum days in advance the booking must be made."
    },
    "freeNights": {
      "type": "integer",
      "description": "Number of free nights offered."
    },
    "termsAndConditions": {
      "type": "string",
      "description": "Terms and conditions text to display to the guest."
    },
    "icon": {
      "type": "string",
      "description": "Icon identifier or URL for display purposes."
    },
    "rank": {
      "type": "integer",
      "description": "Display priority. Lower values indicate higher priority."
    },
    "blackoutDates": {
      "type": "object",
      "description": "JSON object defining dates when the promotion is not applicable."
    },
    "checkinBlackoutDates": {
      "type": "object",
      "description": "JSON object defining check-in dates when the promotion is not applicable."
    },
    "rule": {
      "type": "object",
      "description": "JSON object defining additional business rules and conditions for the promotion."
    }
  }
}