Skip to content

Checkout-eve message

runCheckoutEvePhase in src/workflows/booking-flag.ts sends a “checkout is tomorrow” message at departure − 1 day, 14:00Z (8am MT).

What it sends

Subject: Checkout tomorrow — {Property}

Body:

Hi {firstName},
A quick reminder that your checkout is tomorrow at 10:00 AM.
To make turnover easy for the cleaning team:
- Empty trash in the large bins by the elevator or in the garage
- Wash dishes (or leave the dishwasher running)
- Return pool towels to the pool area receptacle
- Return all key fobs to the lockbox and text a picture to 952-451-8482
Please fill out the checkout form just before you leave:
{checkout form URL}
More info on the unit: {property_url}
Let me know if you need anything.
Regards,
Bill Titler
www.stayonthesnow.com
952-451-8482

The checkout instructions list comes from property_config.checkout_instructions (JSON array, per-property editable).

Channel routing

Same as pre-arrival messages:

  • Email channel (Direct / VRBO / unknown) AND booking has email → send via Mailgun
  • All channels → always send a thread message via Beds24 /bookings/messages so the message is logged host-side AND routed to OTA chat for Airbnb / Booking.com

Also sets flag

After sending, the workflow calls updateBooking to set:

  • flagColor = aaffd4 (mint)
  • flagText = check-out tomorrow

Replaces BA AAs 188068 (CC), 286614 (TP), 286615 (SS) — three per-property AAs collapsed into one property-agnostic phase.

Render

renderCheckoutMessage in src/workflows/checkout-message-render.ts takes the booking + property config + turnoverDays and returns {subject, text, html}. The “BACK-TO-BACK” warning is included if turnoverDays === 0 so the guest knows departure timing is tight.

Source

  • Code: src/workflows/booking-flag.ts (search runCheckoutEvePhase)
  • Render: src/workflows/checkout-message-render.ts
  • Tests: test/workflows/checkout-message-render.test.ts