Here’s how dynamic coupon generation integrates with Klaviyo:
- Create or Edit a Klaviyo Flow
- Choose the trigger that will send a coupon (e.g., sign-up, purchase anniversary).
- Add a Webhook Step
- In your flow, add a Webhook step after the trigger.
- Set the URL to: bashCopyEdit
https://your-site.com/wp-json/dynamic-coupons-klaviyo/v1/generate-coupon
- Triggering the Coupon
- When the webhook is called, the plugin:
- Generates a unique coupon using your defined prefix.
- Creates the coupon in WooCommerce with an expiry date.
- Attaches the coupon code to the customer’s Klaviyo profile.
- When the webhook is called, the plugin:
- Use the Coupon in Your Emails
- Insert the coupon code from the profile into email templates using Klaviyo’s dynamic fields.
This automation allows you to deliver personalized, expiring coupons seamlessly.