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
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.
Masivo webhook events
Registration
Triggers when a new customer is registered to your program.Migrated customers will not trigger this event
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 withfulfilled: 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.