LBA Lead & Coupon Events
When you run a campaign using a microsite (microsite) and coupons in the module Leads, the platform can send real-time webhook notifications whenever a customer submits a lead form, redeems a coupon, or updates their marketing consent status (consent).
List of Lead & Coupon Event Types
Section titled “List of Lead & Coupon Event Types”Event Name (event) | When It Is Sent |
|---|---|
customer.captured | When a visitor fills in and submits a lead form on a campaign microsite. |
coupon.redeemed | When a customer’s coupon code is successfully validated or redeemed at the checkout / redemption page. |
customer.consent_changed | When a customer grants or revokes marketing communication consent (opt-in / opt-out) via the microsite page. |
Example Payload & Data Attributes
Section titled “Example Payload & Data Attributes”{ "event": "customer.captured", "tenant_id": "0195f2a0-1234-7000-8000-000000000001", "timestamp": "2026-11-04T13:20:00Z", "data": { "lead_id": "0195f2e0-4444-7000-8000-000000000077", "campaign_id": "0195f2e1-5555-7000-8000-000000000088", "microsite_id": "0195f2e2-6666-7000-8000-000000000099", "phone": "+6281234567890", "name": "Budi Santoso", "email": "budi@example.com", "coupon_code": "PROMO-8842", "consent_marketing": true, "custom_fields": { "kota": "Jakarta Selatan" } }}| Field | Type | Description |
|---|---|---|
event | string | Event type (customer.captured, coupon.redeemed, or customer.consent_changed). |
data.lead_id | string (UUID) | ID of the lead record created or updated. |
data.campaign_id | string (UUID) | null | ID of the related LBA campaign or lead campaign. |
data.microsite_id | string (UUID) | ID of the microsite where the interaction took place. |
data.phone | string | Customer’s phone number in E.164 format. |
data.coupon_code | string | null | Unique coupon code issued or redeemed (specific to customer.captured and coupon.redeemed). |
data.consent_marketing | boolean | Customer’s current marketing consent status. |