Windback.
Integrations

Razorpay Integration

Connect Razorpay to Windback for automatic churn detection.

Razorpay Integration

Automatically detect subscription cancellations from Razorpay.

Setup

1. Get Your Webhook URL

https://api.windback.dev/api/v1/webhooks/razorpay/{your_public_key}

Replace {your_public_key} with your Windback public API key (starts with pub_). Find it in Settings on your dashboard.

2. Add the Webhook in Razorpay

  1. Go to Razorpay Dashboard > Settings > Webhooks
  2. Click "Add New Webhook"
  3. Enter the webhook URL
  4. Select the event: subscription.cancelled
  5. Save the webhook

3. Signature Verification

Razorpay signs webhook payloads using the X-Razorpay-Signature header. Windback verifies signatures automatically to ensure authenticity.

Supported Events

EventDescription
subscription.cancelledSubscription cancelled

Data Mapping

Windback maps Razorpay subscription data to churn events:

  • Customer Email — from the customer object
  • Plan Name — from the plan object
  • MRR — calculated from plan amount and interval
  • Currency — from the plan currency

Webhook Resilience

Same as Stripe — Windback always returns 200 OK to prevent Razorpay from retrying or disabling your endpoint.

ScenarioResponseBehavior
Valid cancellation event200 OKEvent created normally
Missing or invalid API key200 OKSilently ignored
Signature verification fails200 OKSilently ignored
Your Windback subscription expired200 OKSilently skipped
Internal processing error200 OKLogged, event skipped

If your Windback subscription is expired, webhooks are still accepted (200 OK) but not processed. No churn events will be created until your subscription is renewed.