Project settings webhooks

Project-level webhooks in Voucherify are notifications sent automatically to your application whenever certain actions happen in your project. Examples include when a voucher is redeemed, a customer profile changes, or an order is created.

To use these webhooks, provide Voucherify with an endpoint URL where notifications should be sent.

Configuring webhooks

Follow these steps to configure webhooks:

  1. In Voucherify dashboard, go to Project settings.
  2. Scroll down to the Webhooks section.
  3. Click the plus button – Add new webhook.
  4. Choose v2024-01-01 webhook version.
  5. Provide the following details:
    1. Enter the target URL.
    2. Tick the Is active? checkbox.
    3. Select the events you want to receive. If you want to receive all the events, choose Send me all events option.
    4. Click Send test webhook to test your configuration (optional).
    5. Click Create endpoint.
  6. If necessary for authentication reasons, enter the Secret key in your system to receive webhooks from Voucherify.

You can add multiple webhooks to your projects following the steps above.

To update webhook details, click the Pencil button – edit. Enter your changes and click Update endpoint.

To delete a webhook, click the trash button and click Delete.

Re-Enabling a Webhook

To re-enable a disabled webhook:

  1. In the Project settings, go to the General tab.
  2. Scroll down to the Webhooks section.
  3. Edit the specific Webhook.
  4. Click Is active.
  5. Click Update endpoint.

Webhooks Available in Project Settings

These webhooks are triggered by the events listed in the Project settings.

🚧

Documentation in progress

Documentation of some of the events is still in progress.

The following events can send a webhook:

Project setting webhook payload

AttributesDescription
id
string

Unique identifier of the sendout for this webhook.

Example:

whs_0e16e42bc6e0c65b57

project_id
string

Unique identifier of the Voucherify project.

Example:

proj_5T4Rpl4T1nuM

created_at
string

The exact moment when the webhook was created.

Example:

2024-01-01T11:11:11.111Z

type
string

Name of the event that triggerered the webhook sendout.

Available values: business_validation_rule.assignment.created, business_validation_rule.assignment.deleted, business_validation_rule.created, business_validation_rule.deleted, business_validation_rule.updated, campaign.created, campaign.deleted, campaign.disabled, campaign.enabled, campaign.earning_rule.assigned, campaign.earning_rule.deleted, campaign.earning_rule.disabled, campaign.earning_rule.enabled, campaign.earning_rule.updated, campaign.loyalty_tier.created, campaign.loyalty_tier.deleted, campaign.loyalty_tier.updated, campaign.promotion_stack.created, campaign.promotion_stack.updated, campaign.promotion_tier.created, campaign.promotion_tier.deleted, campaign.promotion_tier.disabled, campaign.promotion_tier.enabled, campaign.promotion_tier.updated, campaign.referral_tier.created, campaign.referral_tier.deleted, campaign.referral_tier.updated, campaign.reward.assignment.created, campaign.reward.assignment.deleted, campaign.reward.assignment.updated, campaign.updated, campaign.vouchers.added, campaign.vouchers.generation.completed, campaign.vouchers.generation.failed, campaign.vouchers.generation.started, customer.confirmed, customer.created, customer.deleted, customer.rewarded, customer.rewarded.loyalty_points, publication.succeeded, redemption.failed, redemption.rollback.failed, redemption.rollback.succeeded, redemption.succeeded, voucher.created, voucher.deleted, voucher.disabled, voucher.enabled, voucher.gift.balance_added, voucher.gift.transaction.created, voucher.loyalty_card.pending_points.activated, voucher.loyalty_card.pending_points.added, voucher.loyalty_card.pending_points.canceled, voucher.loyalty_card.pending_points.updated, voucher.loyalty_card.points_added, voucher.loyalty_card.points_expired, voucher.loyalty_card.transaction.created, voucher.published, voucher.updated
data
object

Payload depends on the event that triggered the webhook sendout. Project settings cover the following events:

source
object

Contains details about the source of the webhook sendout.

AttributesDescription
id
string

ID number of the webhook.

Example:

wh_j56Vfy47Vx9YOX7QYD1fzHnc

object
string

Determines the type of the object.

Available values: webhook Example:

webhook

target_url
string

The address where the webhook will be sent.

event
object

Contains other data of the event that triggered the sendout.

AttributesDescription
id
string

Unique identifier of the event that triggered the sendout.

Example:

evred_1f3611301g3127begb

type
string

Determines the type of the event.

Example:

redemption.succeeded

created_at
string

The exact moment when the event was created.

Example:

2024-01-01T11:11:11.111Z

entity_id
string

Unique identifier of the entity that triggered the sendout.

Example:

r_1f3611302bf107befb

group_id
string

Unique identifier of the request that triggered the event.

Example:

v-1f36113948e50fc4ge

event_source
object

Contains the source of the object that triggered the sendout.

AttributesDescription
channel
string

Determines the channel that triggered the sendout.

Available values: USER_PORTAL, API, CLIENT_API, INTERNAL
Example:

API

user
string

Defines the user who triggered the event.

api_key
object

Determines the API key used to initiate the sendout.

AttributesDescription
name
string

Channel name in the application keys.

app_id
string

Contains the application ID from the Voucherify API key pair.

Example:

1XXXX5XX-0XXX-XXXb-X7XX-XX2XXaXXX6XX