Skip to main content

Room Stay

Room Stays contain information about the number of rooms, guests, room and rate codes, etc.

 

ParameterDescriptionTypeRequired
RoomStay/@EndDateDefines the check-out date.StringYes
RoomStay/@StartDateDate from which a rate starts to apply.StringYes
RoomStay/GuestCount/@AgeQualifyingCodeCode representing a business rule that determines the charges for a guest based upon age range. 
Values: Adult, Child, Senior
StringYes
RoomStay/GuestCount/@AgesThe age of a guest.IntegerNo
RoomStay/GuestCount/@NumGuestsNumber of guests.IntegerYes
RoomStay/@NumRoomsSpecifies how many rooms are requested.IntegerYes
RoomStay/Products/@EndDateEnd date associated with a product.StringNo
RoomStay/Products/@StartDateStart date associated with a product.StringNo
RoomStay/Products/@PrimaryIf true, indicates the rate is the primary rate.StringNo
RoomStay/Products/Product/@DefaultRoomCodeRoom Code to use in the booking if '@RoomCode' doesn't exist in the system. Only applies to reservation/notif operations.StringNo
RoomStay/Products/Product/@DefaultRateCodeRate Code to use in the booking if '@RateCode' doesn't exist in the system. Only applies to reservation/notif operations.StringNo
RoomStay/Products/Product/@RateCodeUnique Control Center code for this rate type.StringYes
RoomStay/Products/Product/@RoomCodeUnique Control Center code for this room type.StringYes
RoomStay/@RedeemLoyaltyIf true, indicates the room should be purchased using the loyalty-based payment method (i.e. points).BooleanNo
RoomStay/@RefreshSpecifies the price refresh type during a modification. 
Values: New, Retain
StringNo

 

Sample Request (Partial)

{
    "Chain": {...},
    "Channels": {...},
    "Hotel": {...},
    "Guests": [...],
    "RoomStay": {
        "StartDate": "2023-11-10",
        "EndDate": "2023-11-11",
        "GuestCount": [{
            "AgeQualifyingCode": "Adult",
            "NumGuests": 1
        },
        {
            "AgeQualifyingCode": "Child",
            "NumGuests": 2,
            "Ages": [4, 6]
        }
        ],
        "NumRooms": 1,
        "Products": [{
            "Primary": true,
            "Product": {
                "RateCode": "BAR",
                "RoomCode": "SUPK"
            }
        }]
    }
    "status": "Confirmed"
}

 

Sample Retrieve Reservation response

{
    "RoomStay": {
        "GuestCount": [
            {
                "Ages": [4, 6],
                "AgeQualifyingCode": "Child",
                "NumGuests": 2
            },
            {
                "AgeQualifyingCode": "Adult",
                "NumGuests": 1
            }
        ],
        "NumRooms": 1,
        "EndDate": "2023-11-10T00:00:00",
        "StartDate": "2023-11-12T00:00:00",
        "Group": false,
        "Suppressed": true,
        "Products": [
            {
                "Product": {
                    "RateCode": "BAR",
                    "RoomCode": "SUPK",
                    "Id": "36fb07b0-0ec4-40a8-9f82-7d6025b621a1"
                },
                "StartDate": "2023-11-10T00:00:00",
                "EndDate": "2023-11-12T00:00:00",
                "Primary": true
            }
        ]
    },
}