# Webhooks

{% embed url="<https://www.loom.com/share/940c50509f104689bf593bb6326280ac>" %}
API and Webhooks
{% endembed %}

Webhooks section allows you to view the existing as well as create new Webhooks. Let us take a look at how this is done.

> **Boomerangme > Left-Hand Menu > Settings**

### How to add a webhook

1. Follow the above-mentioned workflow to land on the Settings screen.
2. From the tabs listed at the top, click Webhooks. Doing so takes you to the Webhooks screen.

<figure><img src="https://121681468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBfW4nnOu4AysbkbyxNug%2Fuploads%2Fzxmupuhb6u1AtNGIpOLZ%2Fimage.png?alt=media&#x26;token=b7110a34-f05f-470f-95cc-4503c7791ab7" alt=""><figcaption><p>Webhooks</p></figcaption></figure>

3. To create a webhook, click the Add webhook button. This opens the Add webhook popup.

<figure><img src="https://121681468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBfW4nnOu4AysbkbyxNug%2Fuploads%2Fe12X5gAL7po99puO9Ryc%2Fimage.png?alt=media&#x26;token=34bda33a-94e3-4695-8807-8dc6b93f67c9" alt=""><figcaption></figcaption></figure>

4. Here, enter the URL in the field displayed at the top of the popup.

<figure><img src="https://121681468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBfW4nnOu4AysbkbyxNug%2Fuploads%2FPdj440afKiBJSsblD5Wu%2Fimage.png?alt=media&#x26;token=f2c1307d-ff62-41e7-a7b5-0ac0d640ae1d" alt=""><figcaption></figcaption></figure>

5. Mark the checkbox for the event(s) for which you want to trigger the webhook.

<figure><img src="https://121681468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBfW4nnOu4AysbkbyxNug%2Fuploads%2F1hfWZzB9D4rA0HmFnHs1%2Fimage.png?alt=media&#x26;token=7dbb5d87-f49d-4dc3-a100-5510f1a71979" alt=""><figcaption><p>Events</p></figcaption></figure>

7. As the selections are made, mark the status as enabled using the Status toggle button. Once the required selections are made, click the Add Webhook button.&#x20;

<figure><img src="https://121681468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBfW4nnOu4AysbkbyxNug%2Fuploads%2Fe7seFBQhAtPTm35gkiAJ%2Fimage.png?alt=media&#x26;token=28056fce-7da4-4670-80eb-d9397babe13d" alt=""><figcaption></figcaption></figure>

7. This adds the webhook and displays it in the Webhooks list. Click on the webhook name and you will be able to change it.

<figure><img src="https://121681468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBfW4nnOu4AysbkbyxNug%2Fuploads%2FyN8mgcyNDulR8PhRgwPQ%2Fimage.png?alt=media&#x26;token=1acf3c32-f05c-4702-b808-f346f25b1d3c" alt=""><figcaption></figcaption></figure>

8. Be sure to save after making changes.

<figure><img src="https://121681468-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBfW4nnOu4AysbkbyxNug%2Fuploads%2FO1ndRRfCY7CdSwJqMq2z%2Fimage.png?alt=media&#x26;token=1080a6cb-d551-4114-8915-5cf8d70ae977" alt=""><figcaption></figcaption></figure>

### Description of webhook events

### 🧍‍♂️ Cards & customers (card holders)

**CardBalanceUpdatedEvent**\
Triggered when the card balance changes (e.g., bonuses, cashback added or deducted).

**CardExpiredEvent**\
Triggered when a customer's card reaches its expiration date.

**CardInstalledEvent**\
Triggered when a card is added to the customer’s wallet (Apple Wallet / Google Wallet / PWA).

**CardIssuedEvent**\
Triggered when a new card is issued to a customer.

**CardRemovedEvent**\
Triggered when a card is removed by the customer or administrator. The card status changes from “installed” to “deleted”.

**CardScannedEvent**\
Triggered when the card is scanned by a scanner.

**CustomerCreatedEvent**\
Triggered when a new customer is created (either via card issuance or manual addition to the database).

**CustomerReferralCreatedEvent**\
Triggered when a referral is added (at the time of card issue via referral link).

**CustomerSegmentLinkedEvent**\
Triggered when a customer is moved to a new RFM segment based on their activity/value.

**FeedbackCreatedEvent**\
Triggered when a customer leaves feedback (either by selecting a star rating or writing a comment).

### 🏢 Subaccounts & Managers

**CompanyCreatedEvent**\
Triggered when a new subaccount is registered.

**CompanyRemovedEvent**\
Triggered when a subaccount is deleted.

**ManagerCreatedEvent**\
Triggered when a new manager is created.

**ManagerRemovedEvent**\
Triggered when a manager is removed.

### 💸 Payments & Subscriptions

**PaymentCompletedSuccessfulEvent**\
Triggered when a subscription payment is successfully completed by a subaccount.

**PaymentCompletedFailedEvent**\
Triggered when a subscription payment attempt fails.

**PaymentRefundedEvent**\
Triggered when a payment is refunded to a subaccount.

**RecurrentPaymentCompletedFailedEvent**\
Triggered when a recurring subscription payment attempt fails.

### 📅 Subscription/Tariff Events

**TariffActivationDateChangedEvent**\
Triggered when the tariff start date is updated for a subaccount.

**TariffExpiredPaymentEvent**\
Triggered when a subaccount’s subscription expires due to non-payment.

**TariffFiveDaysBeforePaymentEvent**\
Notification 5 days before the subscription is charged, including before the end of the trial period (for subaccounts).&#x20;

**TariffThreeDaysBeforePaymentEvent**\
Notification 3 days before the subscription is charged, including before the end of the trial period (for subaccounts). .

**TariffOneDayBeforePaymentEvent**\
Notification 1 days before the subscription is charged, including before the end of the trial period (for subaccounts). .

**TariffPaymentCreatedEvent**\
Triggered when a new subscription payment is created for a subaccount.

**TariffPaymentDayEvent**\
Triggered on the actual payment date.

### 🧾 Marketing Events (Subscription Webhooks)

**webhook\_MarketingFirstTariffPayment**\
Triggered after the **first** successful tariff payment by a subaccount.

**webhook\_MarketingRepeatedTariffPayment**\
Triggered after the **second or subsequent** tariff payment by a subaccount.

**webhook\_MarketingTariffPaymentFailed**\
Triggered when a tariff payment attempt fails.

**webhook\_MarketingTrialStarted**\
Triggered when a subaccount starts a trial period.

**webhook\_MarketingSubscriptionCancelled**\
Triggered when a subaccount cancels their subscription.

**webhook\_MarketingPaymentCardLinked**\
Triggered when a subaccount adds a payment card for their subscription.

**webhook\_MarketingUserDataChanged**\
Triggered when a subaccount updates their personal data (e.g., name, email).

### 📦 Templates

**UserTemplateActivatedEvent**\
Triggered when a card template is activated in an account or subaccount.

**UserTemplateCreatedEvent**\
Triggered when a new card template is created.

**UserTemplateDeactivatedEvent**\
Triggered when a template is deactivated, for example when a subaccount plan is downgraded.

**UserTemplateRemovedEvent**\
Triggered when a template is deleted from the account/subaccount.

**UserTemplateUpdatedEvent**\
Triggered when changes are made to the template in an account (not for a subaccount).
