Confirmations Workflow¶
Overview¶
The Confirmations module handles the processing of reservation confirmations from different booking channels and manages subsequent communications with guests. This document outlines the confirmation workflow, including email notifications, payment processing, and integration with Property Management Systems (PMS).
Confirmation Sources¶
Reservation confirmations are received from multiple sources:
- Travelclick - Sends confirmation details via email to a dedicated Gustaffo inbox
- Phobs - Makes direct HTTP requests to the Gustaffo API endpoint
Confirmation Workflow¶
Travelclick Confirmation Process¶
- Email Reception - Travelclick sends confirmation email to dedicated inbox
- AWS Lambda Processing - NodeJS application parses the email content
- Data Extraction - System extracts reservation details and guest information
- Confirmation Generation - Creates confirmation record in the system
Phobs Confirmation Process¶
- API Request - Phobs sends HTTP request to Gustaffo API endpoint
- Data Enrichment - System loads additional details via Phobs API (rates, units, etc.)
- Context Building - Creates complete context for email template
- Confirmation Generation - Creates confirmation record in the system
Email Notification Process¶
- Template Selection - System selects appropriate email template based on:
- Reservation type (normal vs. OTA)
- Language preference
- Property-specific templates
- Payment Rule Application - Applies payment rules based on:
- Deposit policies
- Prepayment requirements
- Insurance inclusion
- Early payment discount (3% if paid 60+ days before arrival)
- Email Delivery - Sends personalized confirmation email to guest
- Payment Link Generation - Includes payment link when required by policies
Payment Processing¶
- Apaleo Integration - When CRS ID is found in Apaleo:
- Posts payment information to Apaleo
- Syncs payment status between systems
- Payment Reminders - Sends automated reminders if payment deadline approaches
- Rate Code Mapping - Uses property-specific rate code mappings to determine payment rules
Email Variations¶
The system sends different types of emails based on notification type:
- Confirmation Emails - For new reservations
- Modification Emails - When reservation details change
- Cancellation Emails - When reservations are cancelled
- Payment Reminder Emails - When payment deadlines approach
Key Components¶
Email Template Management¶
Templates are managed through the CMS with support for:
- Multi-language templates
- Property-specific customization
- Dynamic content insertion
- Responsive email design
Payment Integration¶
The payment system provides:
- Secure payment link generation
- Multiple payment methods
- Partial payment support
- PMS synchronization
- Payment tracking and reporting
Notification Tracking¶
The system tracks the complete notification lifecycle:
- Email delivery status
- Email open events
- Payment status updates
- Reminder scheduling and delivery
Integration Points¶
The Confirmations module integrates with several other systems:
- Email Service - For sending notifications
- CMS - For template management
- Apaleo PMS - For reservation and payment synchronization
- Travelclick - For confirmation reception
- Phobs - For confirmation reception and data enrichment
Technical Implementation¶
The Confirmations module is implemented using:
- NotificationService - Core service for confirmation processing
- ConfirmationTemplateService - Handles template selection and rendering
- EmailSender - Manages email delivery
- PaymentService - Handles payment link generation and processing
- ConfirmationController - API endpoints for confirmation management
Security Considerations¶
- Secure handling of guest payment information
- Authentication for all API endpoints
- PII data protection and masking in logs
- Secure payment link generation