Developer/IT > Whisbi API > API Reference > Sell > Schedule config

Schedule config

An object containing the fields showing up in the Guide/Sell schedule form
You can learn more about the Schedule here.

NameDescriptionRequired
name whisbi.OneToOneInputConfig Object containing the properties for the Name field on the Guide/Sell schedule form. It does not apply to the chatbot. Optional
email whisbi.OneToOneInputConfig Object containing the properties for the Email field on the Guide/Sell schedule form. It does not apply to the chatbot. Optional
extra whisbi.OneToOneExtraInputConfig Object containing the properties for the Extra field on the Guide/Sell form. It does not apply to the chatbot. Optional
availableHours Array Time ranges when a session can be scheduled. Different ranges of times can be set for each day, taking into account that the week starts on monday. Optional
timeInterval Integer Length in minutes of the time slots available to schedule a session Optional
maxBookingRange Integer Maximum days in advance with which you can schedule a session. This determines the maximum number of days ahead available in the calendar. Optional
exceptions whisbi.OneToOneScheduleExceptions Object containing a list of specific dates with a special time schedule, different from the one set on availableHours Optional
dateFormat String Date format: ‘dd-mm-yy’ or ‘mm-dd-yy’. Optional
timeFormat
String
Time format: ‘HH:mm’ (24-hour clock) or ‘hh:mm: A’ (12-hour clock).Optional

Default: ‘HH:mm’
emailTo String List of emails separated by commas, where the scheduled leads info will be sent to. Optional
firstDayOfWeek Integer First day of the week. 0 – Sunday, 1 – Monday, 2 – Tuesday, 3 – Wednesday, 4 – Thursday, 5 – Friday, 6 – Saturday. Optional
Default: 1

Modify Schedule configuration

Schedule config can be overwritten after the Widget has been loaded. Properties than can be modified are ‘availableHours’, ‘timeInterval’, ‘maxBookingRange’, ‘exceptions’, ‘dateFormat’ and ‘firstDayOfWeek’.

whisbi.changeSchedule({
    timeInterval: 20,
    availableHours: [
        [
            ['10:00', '14:00']
        ],
        [
            ['10:00', '14:00']
        ],
        [
            ['10:00', '14:00']
        ],
        [
            ['10:00', '14:00']
        ],
        [
            ['10:00', '14:00']
        ],
        [],
        []
    ]
});