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 - Customer: Newsletter subscribe/unsubscribe

Customer: Newsletter subscribe/unsubscribe

This webhook can be used to send data when a customer subscribes to or unsubscribes from the newsletter.

The webhook runs when the e-mail newsletter subscription is changed on an existing customer. Under "Run at" you choose whether it should run on:

  • Customers who subscribe to the newsletter
  • Customers who unsubscribe from the newsletter

If a new customer is created with the newsletter checked, the webhook is not triggered. Use the webhook Kunde - Stamdata opdateret with "Create customer" instead. Only the e-mail newsletter triggers the webhook. Changes to the SMS consent do not trigger it.

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.

There is no replacement code that tells whether the customer was subscribed or unsubscribed. It is therefore recommended to create one webhook for each action and write the action yourself as text in the JSON, for example "SUBSCRIBED" or "UNSUBSCRIBED".

Example of JSON that can be sent:


		{
"action": "SUBSCRIBED",
"administratorId": [administratorId],
"customerId": [customerId],
"customerName": "[customerName]",
"customerEmail": "[customerEmail]",
"customerAcceptsMarketingEmail": "[customerAcceptsMarketingEmail]"
}

Customers created or edited through import or the API do not trigger this webhook. Changes to the newsletter subscription also send the webhook Kunde - Stamdata opdateret, if "Edit customer" is selected on it.


The following replacement codes are specific to this webhook and can be used in addition to those in the example:

  • [administratorId] is replaced with the Id of the administrator who changed the subscription. It is 0 if the change was made by a superadmin or by the customer.
  • [customerAcceptsMarketingEmail] is replaced with the status of the customer's consent to e-mail marketing after the change (0 = no, 1 = yes).

In addition to the above, you can use the other replacement codes for the customer (for example order totals, last and next booking and customer tags) from Kunde - Stamdata opdateret and freely use replacement codes from the following category to build your own data:


 


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