Articles populaires
Désolé ! aucun résultat trouvé pour
Publié sur 2 ans par Julien Pauthier
Here is an API batch to create a location for a hairdresser, including the settings for the scheduling process:
You can learn more about settings for a hairdresser in our use case.
{ "requests": [ { "path": "/api/2.1/scheduling/companies", "method": "POST", "body": { "name": "My Salon", "address": { "city": "", "country": "FR", "otherStreet": "", "state": "", "street": "", "zipCode": "" }, "currency": "EUR", "email": "", "phone": "", "scheduledItems": "service-staff", "timeZone": "Europe/Paris", "workingHours": [ { "day": "monday", "hours": [ { "end": "18:00", "start": "14:00" } ] }, { "day": "tuesday", "hours": [ { "end": "18:00", "start": "09:00" } ] }, { "day": "wednesday", "hours": [ { "end": "18:00", "start": "09:00" } ] }, { "day": "thursday", "hours": [ { "end": "18:00", "start": "09:00" } ] }, { "day": "friday", "hours": [ { "end": "18:00", "start": "09:00" } ] }, { "day": "saturday", "hours": [ { "end": "18:00", "start": "09:00" } ] }, { "day": "sunday", "hours": [] } ] } }, { "path": "/api/2.1/scheduling/companies/{id}/services", "method": "POST", "body": { "allowBookingIteration": false, "availability": "public", "bufferDuration": 0, "price": 20, "capacity": 1, "color": "#770d69", "description": "", "duration": 15, "maxAppointmentsPerDay": 1, "name": "Haircut", "overNight": false, "overNightStartTime": "", "payable": false } }, { "path": "/api/2.1/scheduling/companies/{company.id}/staff", "method": "POST", "body": { "firstName": "John", "lastName": "Doe", "email": "", "services": [ { "id": "{id}" } ] } }, { "path": "/api/2.1/scheduling/companies/{company.id}/settings", "method": "PUT", "body": { "rules": { "validation": "auto", "maxAppointmentDate": "months-2", "minAppointmentDate": "minutes-15", "waitingList": true, }, "widget": { "appointmentForSomeoneElse": false, "displayPrices": true, "displayDuration": false, "displayServicePicture": false, "staffMemberNameFormat": "{staff name}", "freeSlotsIntervalTime": "15" }, "items": { "serviceAlgorithm": "smart", "staffServiceAllowRandomStaff": true, "scheduledItems": "service-staff" } } } ] }
0 Votes
0 Commentaires
Connexion ou S'inscrire pour poster un commentaire
Personnes qui aiment ça
This post will be deleted permanently. Are you sure?
Here is an API batch to create a location for a hairdresser, including the settings for the scheduling process:
You can learn more about settings for a hairdresser in our use case.
0 Votes
0 Commentaires
Connexion ou S'inscrire pour poster un commentaire