12 · Guest RSVP journey
What a guest does, from the invitation to “RSVP saved”. It only works while the RSVP (v3) site is live and the window is open (notebook 11).
Step by step
- Enter access code (“You’re invited” / “Enter the access code from your invitation or QR code.”). Placeholder
7K2-QM4. “Codes ignore dashes and spaces.” Errors: “Please enter your access code.”, “That code wasn’t found. Please double-check it.” The household or per-guest invitation code both work. While looking up: “Finding your party…”. A QR scan carries the code in the link. - Your household: everyone in the household, with Edit name & address at the top (household name: “How you’d like your household to appear — e.g. ‘Smith’ or ‘Smith & Jones’”, address lines, town/city, postcode, country; “No postal address yet — add one so we can post you anything we need to.”). The household email and mobile live here too and are stored on the primary guest (“Optional — for reminders and any last-minute updates” / “handy for day-of messages”).
- Per guest: Joyfully accepts / Regretfully declines (“Tell us how you’ll be attending.”), Meal preference (“Choose your meal.”; the couple’s meal options, default dinner / salad / vegetarian / vegan), Dietary needs (“Any allergies or dietary requirements.”), Accessibility requests (“Seating, mobility, or hearing needs.”), Song request (“Song & artist — one that gets you on the dance floor.”), any custom questions, and Edit details (first name, last name, and for everyone except the primary guest their own email and mobile: “Optional — their own, for updates”).
- Plus-one (only where offered): Yes, a plus-one / Not bringing anyone, then their first and last name (“Not sure who yet? Leave the name blank and add it later.”), meal and dietary needs.
- Message for the couple (“Optional — anything else you’d like us to know.”).
- Review & send (the “RSVP steps”: details → review → sent), then Send RSVP (“Sending…”).
- RSVP saved / Thank you, with Save the date buttons: Google Calendar and Apple / Outlook (an .ics file), and Back to the site.
Change your response: a household that already replied sees “Your saved choice shown below.” and can change it while the window is open.
Closed states: “RSVPs open soon”, “RSVP window closed”, “Please check back soon — see you at the wedding.”
Rules the Worker enforces on submit (POST /api/guest/rsvp)
- The code is normalised (upper case, dashes and spaces removed), checked against the code-guess limit, then matched to a household; a wrong code counts as a failed guess.
- RSVP must be open: “The RSVP window is currently closed. Please check back soon — see you at the wedding ✨”.
- At least one guest must be answered (“Please RSVP for at least one guest.”), every guest must belong to this household (“One or more guests do not belong to this household.”), each only once (“Each guest can only be answered for once.”), all checked before anything is written.
- Status can only be
confirmedordeclined. Every text field is capped (names 80 characters, email 254, phone 40, and so on). - A bad email is refused before anything is saved (“That email address doesn’t look right — please check it (or leave it blank).”).
- A blank never replaces a saved value for names, contact details and address.
- The whole save is one D1 batch: all or nothing (“Sorry — we couldn’t save your RSVP. Please try again.”).
- The message saves to
guests.rsvp_message. The couple’s private Notes are never sent to the guest and the RSVP never changes them. - Journey flags are kept in
rsvp_journeys(access code used, started, submitted, details/travel seen, QR scanned).
Public guest routes
| Route | Does |
|---|---|
POST /api/guest/access |
Code → household and guests (for the RSVP form) |
POST /api/guest/rsvp |
Submit |
GET /api/guest/home |
Guest home payload |
POST /api/guest/qr-lookup |
Code lookup from a QR scan |
GET /api/guest/site, POST /api/guest/site/unlock |
The site content (notebook 14) |
All code endpoints share the 5-wrong-in-15-minutes limit.