For the complete documentation index, see llms.txt. This page is also available as Markdown.

Issue Discount Coupons via Webhook

You can issue discount coupons based on cohorts.

Discount Coupon Promotion Case Study

You can automate internal business logic using webhook campaigns.

Marketer Alice wants to run a promotion that issues discount coupons to users who added items to their cart but did not make a purchase. Every evening, she wants to find users who only left products in their cart, issue discount coupons, and boost the purchase rate.

Let's see how to use Hackle's webhook campaign in this case.

Prerequisites

We assume that events for product detail page views, add to cart, and order completion, along with the user property for the number of items in the cart, are being collected.

Additionally, an API for issuing discount coupons must be prepared.

Configure the Webhook

Follow the steps below to set up the discount coupon issuance promotion.

1

Create a Cohort

Click Create Directly in the Cohort tab to create a new cohort.

Enter Users who added to cart but did not purchase as the name.

Select user Id as the User Identifier.

Then click Start with Funnel.

Configure the period for the funnel condition.

Select Specific Period to match the discount coupon issuance promotion period.

Set the funnel conditions to users who completed Product Detail Page ViewAdd to Cart Click in that order, but did not trigger the Order Complete event.

Set the funnel type to Closed Funnel.

2

Create a Webhook Campaign

Click + Create Campaign in the upper right corner of the Webhook menu in the Dashboard.

Enter the desired campaign name to create it.

3

Configure Request Information

Method Settings

Enter the discount coupon issuance API address and set the Method to POST.

Header Settings

You can use Liquid syntax to dynamically apply required API authentication information.

Here we used an example that applies the user's access-token to the Authorization Header.

Body Settings

Write the Body so that the target user's userId is dynamically populated for coupon issuance.

Request Body

{
  "identifiers": {
    "userId": "{{identifiers["$userId"] | default: "EMPTY_USER_ID"}}"
  }
}
4

Target Settings

Select the pre-created cohort in the target settings section.

You can add the cart remaining item count property as a filter condition.

This allows you to filter out users with no items left in their cart (e.g., after clearing the cart) so that webhooks are not sent to them.

5

Configure Recurring Send

To issue discount coupons to targets every evening, set the send type to Schedule-based.

Set the recurrence cycle to Every 1 day.

Set the send period to the promotion period and the send time to the evening.

If needed, you can also configure fatigue management and duplicate send restrictions.

6

Complete

All settings for the discount coupon issuance promotion are complete.

Campaigns that leverage internal business logic like this can also be automated through Hackle's webhook campaigns.

Last updated