Setup webhooks
Learn how to set up webhooks in Masivo to receive notifications about events, rewards, and more
What are webhooks?
Webhooks enable real-time communication between servers. They allow one application to automatically send data to another whenever a specific event occurs.
Webhooks in Masivo
Masivo allows you to set up webhooks to receive notifications about several events including:
- Rewards accumulations & redemptions
- Customer registrations
- Event fulfillments & failures
- Coupon redemptions
Check our full list of events and their payloads
Setting up webhooks in Masivo
To set up webhooks in Masivo, first navigate to the Settings section in the dashboard. You can find it in the left sidebar. Then click on the Webhooks menu.
Now, click on the Add new webhook button. You will be prompted to enter the URL where you want to receive the notifications.
The URL must follow the HTTPS protocol. Masivo will send a POST request to this URL with the event payload.
Finally, select the events you want to receive notifications for. You can choose from the list of available events. Then click on the Save button.
You can setup multiple webhooks to receive notifications for different events. Is up to you to decide which events you want to receive in each webhook.
Masivo webhook events
Registration
Triggers when a new customer is registered to your program.
Reward accumulation
Triggers when a customer accumulates any type of reward. This includes when a behavior event is fulfilled or when a coupon is redeemed.
Reward redemption
Triggers when a customer redeems any type of reward. Most commonly, this event is triggered when a customer redeem rewards in a PURCHASE behavior event.
Reward reservation
Triggers when a customer reserves a reward. This event is triggered when a PURCHASE behavior event is set with fulfilled: false
.
Reward reservation cancelled
Triggers when a behavior event is cancelled before it was fulfilled. The event will notify the new state of the customer wallet along the released lines.
Behavior event fulfilled
Triggers when a behavior event is fulfilled.
Behavior event failed
Triggers when a behavior event fails to complete.
This webhook event may be sent multiple times as Masivo retries failed events.
Coupon redemption
Triggers when a customer redeems a coupon.