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 - Reward program: Balance update

Reward program: Balance update

This webhook can be used to send data when there is a change in a customer's point balance in a reward program. For example earning, using or expiry of points.

The webhook is always linked to one specific reward program, which is chosen under "Reward program" on the webhook. If no reward program is chosen, the webhook is not sent. If you want data from several reward programs, create one webhook for each reward program.

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. Several changes for the same customer in the same reward program in the same action are combined into one webhook.

Example of JSON that can be sent:


		{
"customerId": [customerId],
"pointProgramId": 12,
"pointBalance": [customer_points_raw12]
}

In the example, 12 is the Id of the reward program. Write the Id of your own reward program instead, and remember that it must be the same program as the one chosen on the webhook. The webhook does not send the change in points itself (how many were added or deducted), only the customer's balance after the change.


The Id of the reward program must be written directly after the replacement code, without a space, for example [customer_points_raw12]. The Id is found in the reward program in the system. The following replacement codes can be used:

  • [customer_points12] is replaced with the customer's balance in the reward program, formatted as it is shown in the system.
  • [customer_points_raw12] is replaced with the customer's balance as a plain number, where a period is used as the decimal separator, for example 11.2. It can be used in calculations.
  • [customer_points_expirenext12] and [customer_points_expirenext_raw12] are replaced with the number of points that expire first (formatted and as a plain number). Only if the reward program has expiry per earning.
  • [customer_points_expirenext_date12] is replaced with the date of the next expiry in the format DD/MM-YYYY. It is also available as [customer_points_expirenext_date_dd-mm-yyyy12] and [customer_points_expirenext_date_yyyy-mm-dd12].

In addition to the above, you can freely use replacement codes from the following category to build your own data. They apply to the customer whose balance has changed:


 


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