Event Payload
📦 Event Payload Structure
Section titled “📦 Event Payload Structure”Each event includes a payload with the following fields, accessed via event.detail:
| Field | Type | Description |
|---|---|---|
cart_token | string | null | Unique token for the customer’s cart. |
customer_data | CustomerData | null | Detailed customer info (name, email, orders). |
product_data | ProductData | null | Product details (ID, title, price). |
input_product_image | string | null | URL of product image used for generation. |
input_user_image | string | null | URL of the user’s image (e.g., profile). |
selected_variant | string | null | Selected product variant, if applicable. |
output_try_on_image | string | null | Generated try-on result image. |
error_message | string | null | Error message if event failed. |
provider | "email" | "social" | null | Communication channel. |
funnel_id | number | null | Funnel ID tied to the event. |
isEmailShared | boolean | Email sent successfully. |
isWhatsAppShared | boolean | WhatsApp message sent successfully. |
isFacebookShared | boolean | Facebook message sent successfully. |
See Product Data and Customer Data for the nested structures referenced above.