Consumer Duration (a.k.a. Variable Duration) is an appointment that allows an end user select the duration of an appointment
If you want the duration of your Service to be adjustable and/or selectable by the end user, you can use our "Consumer Duration Selection" settings feature. This will give you the option to have the user select a duration in the booking flow. By selecting this option, you can define a minimum and a maximum duration that the customer can book an appointment for. An interval field is also provided to display the intervals offered by the service.
Use Case: 30 min, 60 min, 90 min Appointments
A good use case is an online tutoring company offering 30, 60 or 90 minute sessions of the same service, the only difference is the duration and the price. In this case you would like your end user to choose between 30 min, 60 min, and 90 for the duration of their appointment. Your Service settings should look as follows: Minimum: 30 min, Maximum: 90 min, Interval: 30 min. Most of our customers use a dropdown or button selection to initiate the duration selection. There is a default service duration that can also be used. in this case you may want the dropdown to default to 60mins, use the default duration parameter to set it. Once chosen pass in the duration to the API for booking the appointment.
Note: The minimum and the interval should always be equal, otherwise the minimum will never be an option. The maximum must always be greater than the minimum; if it is equal you should simply create a basic appointment service and not a variable one.
Visit the POST/setup/v1/services endpoint in our API documentation for more info.
Please sign in to leave a comment.