Image Description Image Description

No Results

  • Support
Logo Logo v1.0
  • Basics
  • Getting started
  • Get authenticating user
  • Products
  • Create a Product
  • License Keys
  • Verify a License Key
  • Redeem a License Key
  • Refund a License Key
  • Subscriptions
  • Verify a Subscription
  • Webhooks
  • Basics
  • Subscribe
  • Unsubscribe
  • Webhook Events
  • New sale
  • New lead
  • New affiliate sign-up
  • New subscription
  • Subscription cancellation

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",
        "ip": "10.42.1.190",
        "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36",
        "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"
            }
        ]
    }
}