Guides
Trin for trin-vejledninger til opsætning og brug af systemet.
Guides - Reward program: Balance update
-
Guides
- General
- Booking
- Event
- Cash Register Add-On
- Gift Voucher Add-On
- Marketing Add-On
- Record Add-On
- Form Add-On
- Documents
- Online Payment Add-On
- SMS Add-On
- Integrations
- For developers
- API and webhooks
- REST API
- Webhooks
- Scheduled webhooks
- Event webhooks
- Booking: Create/edit/delete
- Customer: Newsletter subscribe/unsubscribe
- Reward program: Balance update
- Cash register: Completed sale
- Cash register: Completed sale - per line item
- Cash register: Cash reconciliation
- Customer: Master data updated
- Online paid/cancelled orders with customer attached
- Event: Create/edit/delete
- Event participant: Sign up/cancel/edit
- Work hours: Create/edit/delete work hour
- Voucher: Completed transaction
- Questionnaire: Finish/edit
- SSO - Single Sign On
- API and webhooks
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:
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: |
