Receives allocationId, fromRoomId, toRoomId, checkIn and checkOut after confirmation. Verify these fields against current inventory, commit the move and publish the authoritative snapshot. Reject failures for retry. Omit for read-only integration.
indexnumber (optional)
Adds a short, bounded delay to the bookings' entrance.
Data and integration
Preview
Seven nights at Alder & Row with eight rooms, a maintenance block, a split booking and a locked assignment.
Inputs
Provide weekStart, rooms and allocations. Rooms have stable id, label and optional typeLabel. Each allocation has a unique id, roomId, label, status, checkIn and checkOut. States are tentative, reserved, checked_in, checked_out, no_show, block and out_of_order. Optional fields are bookingReference, channel, locked, splitStayId, eligibleRoomIds and total. Supply total.amount in major currency units and total.currency as a three-letter uppercase ISO code. Optional property is the hotel label. Optional businessDate identifies Today and stale makes the last available calendar read-only.
Source options
Map the hotel's property management system into the seven-night window. Map dates in the property’s business calendar to YYYY-MM-DD. Include intersecting stays and room blocks with their original dates, plus known occupancy outside the visible week for proposed moves. eligibleRoomIds contains destinations approved by the host for this allocation. The backend owns permissions, current room and housekeeping constraints, and concurrent writes. A snapshot should stay scoped to one property per widget instance.
Actions
Open a booking for its dates and status. Choose an approved room in the sheet, drag the booking with a pointer, or use its grip on touchscreens. The calendar scrolls near its top and bottom edges as you drag. A move changes the room and preserves the original dates. Connected moves require confirmation. Escape or a drag beyond half the sheet height closes it.
Integration requirements
Occupancy includes check-in and excludes check-out. A departure and arrival on the same date can share a room. No-show bars remain visible and do not block reassignment. Split segments carry the same splitStayId with distinct allocation IDs. Consecutive visible segments are connected at their turnover date. Invalid rows or allocations are skipped and make the remaining calendar read-only. Invalid weekStart or null shows an unavailable calendar. Stale data, missing approved destination IDs and locked or closed allocations prevent editing. Reject moves if the allocation, original room, dates or destination no longer match current inventory. The widget displays the new room once the host publishes it.