Skip to main content

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
  • Tier upgrades & downgrades
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.
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 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.

Tier upgrade

Triggers when a customer’s tier is upgraded. This can happen when a customer accumulates enough points or meets the entry requirements for a higher tier.

Tier downgrade

Triggers when a customer’s tier is downgraded. This can happen during the cron job when a customer no longer meets the requirements to maintain their current tier, or when an event is reversed.