Webhook - New Lead Event
You may use webhook integrations to be notified in real-time of certain events that happen in your Zylvie store.
You specify your webhook URLs under Workflows > Add Workflow.
The "new lead" event is when a buyer submits their name and email to download a free product/lead magnet.
Example event payload
{
"event": "lead",
"data": {
"transaction_id": "free_1711078342965279",
"created_at": "2025-03-23T03:12:35Z",
"buyer": {
"name": "Stavros Flatley",
"email": "stavros@greek.com",
"permission_to_send_emails": true
},
"products": [
{
"id": "R54wJ68y",
"title": "The Ultimate Business Book",
"price": 0.0,
"quantity": 1,
"pricing_model": "one-time",
"is_variant": false,
"tags": [
"tag1",
"tag2",
"tag3"
]
}
],
"custom_fields": [
{
"name": "Tax identification number",
"value": "TIN-5252445767"
}
]
}
}