Trackli
Use Case|Stripe + Webhooks

Stripe Webhook-Powered Affiliate Tracking for SaaS

Webhooks are the backbone of reliable Stripe integrations. Trackli processes Stripe webhook events in real time to track referrals, calculate commissions, and handle the full subscription lifecycle — giving you the most accurate affiliate attribution possible for your SaaS product.

How to Set Up Stripe + Webhooks Affiliate Tracking

Get up and running in minutes with these simple steps.

1

Register Trackli Webhook Endpoint

Trackli automatically registers a webhook endpoint in your Stripe account with the correct event subscriptions and signing secret.

2

Select Tracked Event Types

Choose which Stripe events trigger commission actions. Common events: checkout.session.completed, invoice.paid, customer.subscription.updated, charge.refunded.

3

Map Events to Commission Logic

Define what happens for each event type. New checkout = new referral, invoice paid = recurring commission, charge refunded = commission reversal.

4

Verify Webhook Signatures

Trackli validates every webhook using Stripe's signing secrets. This prevents fake webhook attacks and ensures data integrity.

5

Verify Webhook Delivery

Check your Stripe dashboard webhook log to confirm events are being delivered. Trackli processes them idempotently, so retries are safe.

How It Works

From referral link to commission approval — fully automated with Stripe + Webhooks. You pay your affiliates however you already do.

Affiliate tracking flow diagram for Stripe + Webhooks

Frequently Asked Questions

Which Stripe webhook events does Trackli process?
Trackli processes checkout.session.completed (new sales), invoice.paid (subscription renewals), customer.subscription.updated (plan changes), customer.subscription.deleted (cancellations), and charge.refunded (refunds). Each event type maps to specific commission logic.
How does Trackli handle failed webhook deliveries?
If a webhook delivery fails, Stripe retries automatically. Trackli is designed to handle retries idempotently, meaning duplicate deliveries never cause double commission calculations. A health dashboard alerts you to persistent failures.
Is webhook processing secure?
Yes. Every incoming webhook is verified using Stripe's signing secret. Trackli rejects any webhook that doesn't have a valid signature, preventing fake events from being processed and protecting against webhook spoofing attacks.
What happens if webhooks arrive out of order?
Stripe doesn't guarantee webhook ordering. Trackli handles this by checking event timestamps and subscription states. If a renewal event arrives before a creation event, Trackli processes both correctly regardless of arrival order.
How do I verify webhooks are working?
Check the Stripe dashboard's webhook log for delivery status. Trackli's commission dashboard shows real-time commission records for each Stripe event, giving you confidence that attribution is working correctly.

Ready to launch your affiliate program?

Start tracking affiliate referrals in minutes. No complex setup, no enterprise pricing.