Webhook - New Sale 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 sale" event is when a buyer makes a purchase in your Zylvie store where money is transacted (not free products).
Example event payload
{
"event": "sale",
"data": {
"transaction_id": "pi_3OxL0ZF18w81dttL1PMfdiu4",
"created_at": "2025-03-23T03:12:35Z",
"currency": "usd",
"amount": 87.22,
"status": "succeeded",
"tax_transaction_id": "tax_1OoCq4F18w81dttLd4uD97BK",
"tax_amount": 11.38,
"buyer": {
"name": "Stavros Flatley",
"email": "stavros@greek.com",
"permission_to_send_emails": true,
"phone": "+353850163326",
"line1": "349 Navan Road",
"line2": "Ashtown",
"postal_code": "D07 R2C3",
"city": "Dublin 7",
"state": "County Dublin",
"country": "IE",
"payment_method_type": "card",
"card_brand": "visa",
"card_last4": "0005"
},
"products": [
{
"id": "R54wJ68y",
"title": "The Ultimate Business Book",
"price": 24.95,
"quantity": 2,
"pricing_model": "one-time",
"is_variant": false,
"tags": [
"tag1",
"tag2",
"tag3"
]
},
{
"id": "6v8OQ102",
"title": "The Ultimate Fitness Book",
"price": 19.95,
"quantity": 1,
"pricing_model": "one-time",
"is_variant": false,
"tags": [
"tag1",
"tag2",
"tag3"
]
}
],
"coupon": {
"code": "20OFF",
"type": "percentage",
"amount": 20.0
},
"subscription": {
"subscription_id": "sub_1OrpLHF18w81dttLspLSOjcE",
"created_at": "2025-03-23T03:12:35Z",
"currency": "usd",
"amount": 24.95,
"interval": "month",
"interval_count": 1,
"status": "active",
"product": {
"id": "R54wJ68y",
"title": "Life Coaching (Basic Tier)",
"pricing_model": "subscription",
"is_variant": false,
"tags": [
"tag1",
"tag2",
"tag3"
]
}
},
"custom_fields": [
{
"name": "Tax identification number",
"value": "TIN-5252445767"
}
],
"referrer": {
"email": "john.cena@zlappo.com"
},
"commission_earned": 84.0,
"commission_paid": false
}
}