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 - Subscription Cancellation 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 "subscription cancellation" event is when a cancels their subscription to a subscription product.

Example event payload

  
    {
    "event": "cancel",
    "data": {
        "subscription_id": "sub_1OoXxPF18w81dttLN6XyvuBl",
        "created_at": "2025-02-27T21:12:59Z",
        "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",
        "cancel_at": "2025-02-27T03:28:06Z",
        "canceled_at": "2025-02-24T06:32:53Z",
        "trial_end": "2025-03-22T21:12:59Z",
        "trial_start": "2025-02-27T21:12:59Z",
        "currency": "usd",
        "amount": 99.99,
        "interval": "month",
        "interval_count": 1,
        "stripe_price_id": "price_1OkfZsF18w81dttL2OgdOtEj",
        "status": "active",
        "product": {
            "id": "R54wJ68y",
            "title": "Life Coaching (Basic Tier)",
            "pricing_model": "subscription",
            "is_variant": false,
            "tags": [
                "tag1",
                "tag2",
                "tag3"
            ]
        },
        "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"
        },
        "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"
        }
    }
}