API Batch | Phonecall meeting

Here is an API batch to create a location for a Telephone consultation, including the settings for the scheduling process:


widget:

  • no display of duration
  • first name last name of staff
  • description of the staff (useful for providing information on the expertise of each staff)

 

notifications:

  • SMS reminders at 1 hour
  • 1 day email reminders
  • Customer reviews
  • calendar sync
  • bidirectional enabled
  • Google Calendar enabled
  • Outlook.com enabled
  • Office365 activated

 

Appointment booking process:

  • minimum delay at 1 hour
  • maximum delay of 2 months
  • automatic validation
  • choice of staff


{
    "requests": [
        {
            "path": "/api/2.1/scheduling/companies",
            "method": "POST",
            "body": {
                "name": "Telephone consultation",
                "address": {
                    "city": "",
                    "country": "FR",
                    "otherStreet": "",
                    "state": "",
                    "street": "",
                    "zipCode": ""
                },
                "currency": "EUR",
                "email": "",
                "phone": "",
                "scheduledItems": "staff-service",
                "timeZone": "EUR/Paris",
                "workingHours": [
                    {
                        "day": "monday",
                        "hours": [
                            {
                                "end": "12:00",
                                "start": "09:00"
                            },
                            {
                                "end": "18:00",
                                "start": "14:00"
                            }
                        ]
                    },
                    {
                        "day": "tuesday",
                        "hours": [
                            {
                                "end": "12:00",
                                "start": "09:00"
                            },
                            {
                                "end": "18:00",
                                "start": "14:00"
                            }
                        ]
                    },
                    {
                        "day": "wednesday",
                        "hours": [
                            {
                                "end": "12:00",
                                "start": "09:00"
                            },
                            {
                                "end": "18:00",
                                "start": "14:00"
                            }
                        ]
                    },
                    {
                        "day": "thursday",
                        "hours": [
                            {
                                "end": "12:00",
                                "start": "09:00"
                            },
                            {
                                "end": "18:00",
                                "start": "14:00"
                            }
                        ]
                    },
                    {
                        "day": "friday",
                        "hours": [
                            {
                                "end": "12:00",
                                "start": "09:00"
                            },
                            {
                                "end": "18:00",
                                "start": "14:00"
                            }
                        ]
                    },
                    {
                        "day": "saturday",
                        "hours": []
                    },
                    {
                        "day": "sunday",
                        "hours": []
                    }
                ],
                "externalCalendars": [
                    {
                        "address": "https://raw.githubusercontent.com/AntoineAugusti/jours-feries-france-datagouv/master/jours_feries.ics",
                        "type": "ics"
                    }
                ]
            }
        },
        {
            "path": "/api/2.1/scheduling/companies/{id}/services",
            "method": "POST",
            "body": {
                "allowBookingIteration": false,
                "availability": "public",
                "bufferDuration": 0,
                "price": 0,
                "capacity": 20,
                "color": "#770d69",
                "description": "",
                "duration": 15,
                "maxAppointmentsPerDay": 1,
                "name": "Online course",
                "overNight": false,
                "overNightStartTime": "",
                "payable": false,
                "clientEmailFeedback": true
            }
        },
        {
            "path": "/api/2.1/scheduling/companies/{company.id}/staff",
            "method": "POST",
            "body": {
                "firstName": "Jane",
                "lastName": "Doe",
                "email": "",
                "description": "Description du staff",
                "services": [
                    {
                        "id": "{id}"
                    }
                ]
            }
        },
        {
            "path": "/api/2.1/scheduling/companies/{company.id}/settings",
            "method": "PUT",
            "body": {
                "rules": {
                    "validation": "auto",
                    "maxAppointmentDate": "months-2",
                    "minAppointmentDate": "hours-1",
                    "waitingList": true
                },
                "widget": {
                    "appointmentForSomeoneElse": true,
                    "displayPrices": false,
                    "displayDuration": false,
                    "displayServicePicture": false,
                    "staffMemberNameFormat": "{staff name} {staff lastname}",
                    "freeSlotsIntervalTime": "service+buffer",
                    "displayConfirmPrintPage": true,
                    "widget.staffMemberNameFormat":"{staff lastname} {staff name}",
                    "widget.displayDescription":true
                },
                "items": {
                    "scheduledItems": "staff-service"
                },
                "notifications": {
                    "reminders.second.sms": true,
                    "reminders.first.delay": "dayBeforeEvening",
                    "reminders.first.email": true,
                    "reminders.second.delay": "60"
                },
                "calendarSync": {
                    "googleCalendar": {
                        "enabled": true
                    },
                    "liveCalendar": {
                        "office365CalendarEnabled": true,
                        "outlookCalendarEnabled": true
                    },
                    "bidirectionalSync": {
                        "enabled": true
                    }
                }
            }
        }
    ]
}


Login or Signup to post a comment