# Room Stay Change Room Stay Change webhook triggers: - Room stay on a booking created - Room Stay on a booking updated ## Summary The follow table explains the fields | Field | Description | | --- | --- | | type | The type of webhook event. This indicates the nature of the data being sent, e.g., webhookRoomStayOutboundDto. | | id | Unique identifier for this webhook event (eb1ea7cc-66f7-42d8-94a6-492f438efdb7). | | createdDate | The date and time the webhook was created, in array format (2024-11-28T07:54:47.898Z). | | detailDto | Contains detailed information about the room stay and associated bookings. | | bookings | A list of bookings included in the webhook. | | accountCode | The account code for the booking (Dem15). | | roomStayReference | Unique reference for the room stay (20241128-00001/2). | | hubSpotDealId | HubSpot Deal ID (null if not linked). | | ratePlan | The rate plan applied to the booking (RACK RATE). | | bookingStatus | The current status of the booking (CONFIRMED). | | unit | The specific unit for the booking (Demo Property 1 1.1). | | unitType | The type of unit being booked (Studio). | | pmsStartDate | Start date in the PMS (2024-11-28). | | pmsEndDate | End date in the PMS (2024-12-08). | | startDate | Booking start date (2024-11-28). | | endDate | Booking end date (2024-12-08). | | nights | Total number of nights for the stay (11). | | guestStatus | Status of the guest (CONFIRMED). | | guestAccountCode | Account code associated with the guest (Dem15). | | createdBy | Name of the person who created the booking (Giles Horwitch-Smith). | | dealOwner | Owner of the deal (null if not assigned). | | buildingId | Unique identifier for the building (2). | | buildingName | Name of the building (Demo Property 1). | | rate.originalNetMonthly | Original net monthly rate (150). | | rate.originalRateTotal | Original total rate for the stay (1500). | | rate.discountRateMonthly | Discounted rate per month (0). | | rate.discountNetTotal | Discounted total amount (0). | | type | Type of event (GUEST_STATUS). | | roomStayId | ID of the room stay (2). | | unitName | Name of the unit (1.1). | | unitId | Unique identifier for the unit (2). | | unitAddress | Address details of the unit, including street, city, postcode, and country. | | unitCustomFields | Custom fields related to the unit (empty in this example). | | floorSpace | Floor space of the unit (null in this example). | | guestId | Unique identifier for the guest (2). | | guestFirstName | First name of the guest (Demo). | | guestLastName | Last name of the guest (Booker). | | guestEmailAddress | Email address of the guest (demobooker@resharmonics.com). | | guestTelephoneNumber | Telephone number of the guest (0121 295 1310). | | contactId | Unique identifier for the contact (2). | | bookingAccountName | Name of the booking account (Demo Booker). | | bookingAccountId | ID of the booking account (15). | | identifier | Unique identifier for this specific booking event (3a3b3cb4-d92f-414b-ab17-5ecf02569713). | ## Example ``` { "type":"webhookRoomStayOutboundDto", "id":"eb1ea7cc-66f7-42d8-94a6-492f438efdb7", "createdDate":[ 2024, 11, 28, 7, 54, 47, 898000000 ], "detailDto":{ "bookings":[ { "accountCode":"Dem15", "roomStayReference":"20241128-00001/2", "hubSpotDealId":null, "ratePlan":"RACK RATE", "bookingStatus":"CONFIRMED", "unit":"Demo Property 1 1.1", "unitType":"Studio", "pmsStartDate":"2024-11-28", "pmsEndDate":"2024-12-08", "startDate":"2024-11-28", "endDate":"2024-12-08", "nights":11, "guestStatus":"CONFIRMED", "guestAccountCode":"Dem15", "createdBy":"Giles Horwitch-Smith", "dealOwner":null, "buildingId":2, "previousBuildingId":2, "buildingName":"Demo Property 1", "rate":{ "originalNetMonthly":150, "originalRateTotal":1500, "discountRateMonthly":0, "discountNetTotal":0 }, "type":"GUEST_STATUS", "roomStayId":2, "unitName":"1.1", "unitId":2, "previousUnitId":2, "unitAddress":{ "addressLine1":"Demo Street.", "addressLine2":null, "addressLine3":null, "city":"London", "postcode":"EC4A 1ED", "country":"United Kingdom", "isoCountry2":"GB", "nickname":null }, "unitCustomFields":[ ], "floorSpace":null, "guestId":2, "guestFirstName":"Demo", "guestLastName":"Booker", "guestEmailAddress":"demobooker@resharmonics.com", "guestTelephoneNumber":"0121 295 1310", "contactId":2, "bookingAccountName":"Demo Booker", "bookingAccountId":15, "identifier":"3a3b3cb4-d92f-414b-ab17-5ecf02569713" } ] } } ```