Skip to main content

Require Travel Dates


Use Required Travel Dates when the selected appointment date falls outside the travel period for the selected coverage.

The user must add valid travel dates or add another coverage before the booking flow continues.


Required Travel Dates popup with start date, end date, Add action, and Add another coverage action

This screen includes:

#ElementDescription
1Dialog titleExplains that the appointment date is outside the coverage travel period
2Close actionDismisses the popup
3Information messageExplains that travel dates are required to continue
4Start date fieldCollects the travel start date
5End date fieldCollects the travel end date
6Date picker actionOpens date selection
7Add actionSaves travel dates for the selected coverage
8Add another coverage actionOpens the coverage creation flow

Workflow

  1. Start booking with coverage that requires travel dates.
  2. Detect that the appointment date is outside the saved travel period.
  3. Render the Required Travel Dates popup.
  4. Enter start and end dates.
  5. Save the required travel dates.
  6. Continue booking or add another coverage.

Validations

ScenarioApp BehaviorSDK Output
Start date missingBlock submissionvalidation = required
End date missingBlock submissionvalidation = required
Start date after end dateDisplay date-range errorerror = invalid_date_range
Appointment date outside travel periodKeep popup openerror = outside_travel_period
Request rejectedDisplay error statestatus = 405
Save succeedsContinue booking flowtravelDates = saved

Actions

ScenarioApp BehaviorSDK Output
Required Travel Dates openedLoad popupPUT /api/v3/travel-dates/required
Date enteredUpdate popup statetravelDates = updated
Add selectedSave required travel datesPOST /api/v3/travel-dates/required/create
Save succeedsContinue booking flowstate = saved
Add another coverage selectedOpen coverage creation flownavigation = add_coverage
Close selectedDismiss popupstate = unchanged

Endpoint Resources

Required Travel Dates

PUT 

travel-dates/required

Returns the required travel dates popup

Save Required Travel Dates

POST 

travel-dates/required/create

Saves required travel dates.