Any questions

We are happy to help!

Question about Gecko Booking?

If you are unsure whether Gecko Booking is right for you, or if you have other questions, we would love to hear from you!

All good!
Please enter your name.
All good!
Please enter your email.
All good!
All good!
Please enter your question.

Fields marked with an * are required


Guides

Trin for trin-vejledninger til opsætning og brug af systemet.

Guides - Work hours: Create/edit/delete work hour

Work hours: Create/edit/delete work hour

This webhook can be used to send data when a work hour is created, changed and/or deleted.

On the individual webhook you choose under "Run at" whether it should run at Create work hour, Edit work hour or Delete work hour. Only one of them can be chosen per webhook, so one webhook is created for each action. When the action is performed, the webhook is added to a queue that is processed every 5 minutes. It can therefore take up to about 5 minutes before the webhook is sent.

Example of JSON that can be sent:


Create work hour:


		{
"action": "CREATED",
"workHourId": [workHourId],
"calendar": {
"calendarId": [calendarId]
},
"employee": {
"employeeId": [employeeId]
},
"workType": {
"workTypeId": [workTypeId]
},
"activeTime": [
[activeTime_begin]{
"from": "[activeTimeFrom]",
"to": "[activeTimeTo]"
}[lineBreak][activeTime_end]
],
"activeWeekdays": [
[activeWeekdays_begin]"[activeWeekday]"[lineBreak][activeWeekdays_end]
],
"customerGroup": {
"customerGroupId": [customerGroupId]
},
"excludeWeekNumbers": [[excludeWeekNumbers_begin][excludeWeekNumber][lineBreak][excludeWeekNumbers_end]],
"dateLimited": [dateLimited],
"dateLimitedFrom": "[dateLimitedFrom]",
"dateLimitedTo": "[dateLimitedTo]",
"bookCustomer": [bookCustomer],
"bookQuickbook": [bookQuickbook],
"priority": [priority]
}

Edit work hour:


		{
"action": "EDITED",
"workHourId": [workHourId],
"calendar": {
"calendarId": [calendarId]
},
"employee": {
"employeeId": [employeeId]
},
"workType": {
"workTypeId": [workTypeId]
},
"activeTime": [
[activeTime_begin]{
"from": "[activeTimeFrom]",
"to": "[activeTimeTo]"
}[lineBreak][activeTime_end]
],
"activeWeekdays": [
[activeWeekdays_begin]"[activeWeekday]"[lineBreak][activeWeekdays_end]
],
"customerGroup": {
"customerGroupId": [customerGroupId]
},
"excludeWeekNumbers": [[excludeWeekNumbers_begin][excludeWeekNumber][lineBreak][excludeWeekNumbers_end]],
"dateLimited": [dateLimited],
"dateLimitedFrom": "[dateLimitedFrom]",
"dateLimitedTo": "[dateLimitedTo]",
"bookCustomer": [bookCustomer],
"bookQuickbook": [bookQuickbook],
"priority": [priority]
}

Delete work hour:


		{
"action": "DELETED",
"workHourId": [workHourId]
}

The replacement codes [activeTimeFrom], [activeTimeTo], [activeWeekday] and [excludeWeekNumber] must be written exactly as in the example, with the same uppercase and lowercase letters. The block markers and [lineBreak] are not case sensitive. When deleting, only [workHourId] can be used.


The replacement codes in the examples above will be replaced with the following data when the specific webhook runs:

  • [workHourId] is replaced with the work hour's unique Id.
  • [calendarId] is replaced with the unique Id of the calendar the work hour belongs to.
  • [employeeId] is replaced with the unique Id of the employee the work hour belongs to. If the work hour does not belong to an employee, the value is null.
  • [workTypeId] is replaced with the unique Id of the work type.
  • [customerGroupId] is replaced with the unique Id of the customer group. If there is no customer group, the value is null.
  • [activeTime_begin] [lineBreak] [activeTime_end] is repeated for each time period the work hour is active. In between, [activeTimeFrom] is replaced with the start time and [activeTimeTo] with the end time in the format HH:MM.
  • [activeWeekdays_begin] [lineBreak] [activeWeekdays_end] is repeated for each weekday the work hour applies to. In between, [activeWeekday] is replaced with the English name of the weekday: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday or Sunday.
  • [excludeWeekNumbers_begin] [lineBreak] [excludeWeekNumbers_end] is repeated for each excluded week number. In between, [excludeWeekNumber] is replaced with the week number. If there are no excluded week numbers, the list is empty.
  • [dateLimited] is replaced with true if the work hour is limited to a period, otherwise false.
  • [dateLimitedFrom] is replaced with the start date of the period in the format YYYY-MM-DD, and [dateLimitedTo] with the end date in the same format. If the period has no start or no end, the value is the text null.
  • [bookCustomer] is replaced with true if customers can book the time, otherwise false.
  • [bookQuickbook] is replaced with true if the time can be used for quick book, otherwise false.
  • [priority] is replaced with the work hour's priority.

In addition to the above, you can also use replacement codes from the following category to build your own:


 


Try a Free and Non-Binding Demo of Gecko Booking & Administration

Fill out the form, and you will receive a demo as soon as possible.

All good!
Please enter the company name.
All good!
Please enter your phone number.
All good!
Please enter your name.

Fields marked with an * are required