Smart Invites webhooks, on Premium and Business

Paste one URL.Every new customer gets asked.

Add a webhook to Stripe, Shopify or the platform you sell or teach on. Each paid order, new subscription or finished course becomes a testimonial request, and every event is checked before a single email goes out.

  • Start with a free account
  • Test events never use an invite
  • 14 day refund on your first payment

Driftlane's webhook · Stripe subscriptions tile

Stripe sends invoice.paid. A new subscription's first invoice, paid.

{"type": "invoice.paid","data": {"object": {"billing_reason": "subscription_create","customer_email": "byron@leapyear.example","customer_name": "Byron Robertson",…}},…}
Email
data.object.customer_email
Name
data.object.customer_name
Only invite when
data.object.billing_reason equals subscription_create

Checked in this order

  1. Signed by Stripe, passedMatches the saved secret
  2. A new event, passedNot seen before
  3. Only invite when, passeddata.object.billing_reason equals subscription_create
  4. A real event, passedNo test marker
  5. An email address, passedbyron@leapyear.example
  6. Not on Do not email, passedNot listed
  7. Not asked lately, passedNone in 90 days
  8. One invite used, passedFrom this month's allowance

The webhook's Activity tab

Invitedbyron@leapyear.example

What Stripe hears back

200{"status":"processed","contactId":"…"}

Byron RobertsonFirst email in 14 days: “How was your experience with Driftlane?”

A new subscription, First invoice: Invited.

Made up businesses and customers. The tiles, events, paths, checks and answers are the product's own.

Three steps, and no code

A webhook is a message your platform sends the moment something happens. This one starts a Smart Invites sequence: a first ask and 2 reminders, which stop when the customer answers.
  1. 01

    Pick your platform

    The wizard has 17 tiles. Each arrives with the event to listen for, the paths to the customer's email and name, and a filter, already filled in.

  2. 02

    Check the paths

    Every path shows what it finds in a sample event from your platform. Paste one of your own events to be sure, then choose the form, the emails and the wait.

  3. 03

    Paste the URL

    Add the webhook URL in your platform, and its signing secret in ReTestimonial. The page listens, and tells you the moment the first event arrives.

Ready for the platform you already use

11 platforms in 17 tiles, each set up for its own events: a Checkout purchase or a new subscription, an online order or a sale at the till, a finished course, a completed job. Anything else can send to a custom webhook.

Stripe

SignedTest events skipped
  • StripeAfter a Checkout or Payment Link purchase
    Event
    checkout.session.completed
    Email from
    data.object.customer_details.email
    Only when
    type equals checkout.session.completed
    First email
    Right away
  • Stripe subscriptionsWhen a new subscription's first invoice is paid
    Event
    invoice.paid
    Email from
    data.object.customer_email
    Only when
    data.object.billing_reason equals subscription_create
    First email
    After 14 days

Add it in Stripe

  1. 1In the Stripe Dashboard open Workbench → Webhooks and choose “Create an event destination”.
  2. 2Select the event checkout.session.completed, then choose “Webhook endpoint” as the destination type.
  3. 3Paste the webhook URL above as the Endpoint URL and save.
  4. 4Open the new endpoint, reveal its signing secret (whsec_…) and paste it below.

The setup page's own steps, word for word.

Signature
Stripe-Signature, HMAC SHA256 of the time and the body, signed within five minutes. Save the secret and anything else is refused.
Sent twice
Recognised by the event's id, so the customer is invited once.
Good to know
This event only fires for Stripe Checkout and Payment Links. Test mode and live mode are separate endpoints with separate signing secrets. Test-mode events show up in the activity log as skipped and never use an invite, so a test-mode endpoint checks the connection without emailing anyone.
Stripe's own webhook docs (opens in a new tab)

Your platform knows who paid. Smart Invites decides who gets asked, when, and whether they were asked already.

Point at the customer, see what it finds

A path follows the event's fields with dots, such as data.object.customer_email, and [0] picks the first item of a list. Only the email is required. Add up to 10 extra fields, such as the product, and use them in the emails.
New webhook · Map data

Tell us where the customer is

These paths match Shopify's Order payment event. Paste one of your own events on the right to double-check.

jon@example.com

Jon

Shipping Company

Only invite when (optional)

Events that don't meet this condition are skipped.

Extra fields (optional)

Read more values from each event, such as an amount or a product name. Use them in the emails as {meta:NAME}, or {meta:NAME|fallback} to show the fallback when an event has no value, and in routing rules as Metadata Key.

Linen Apron

Only used for this preview — nothing here is saved or sent.

In the first email's subjectHow's your {meta:product|order}?How's your Linen Apron?

This is the wizard's own step, running in your browser: change a path or paste an event, and each line under it updates. Nothing is saved or sent.

Ready when your next customer pays.

Pick your platform, paste one URL, and keep the default emails.

Create your first webhook
Before any email

Every event is checked, in this order

Platforms resend, test, renew and retry. Each event passes the same checks before anything is spent, and anything stopped says why, in the webhook's Activity tab or in the answer your platform gets.

At the door

  1. 1
    The right secret in the URLOtherwise refused

    Every URL ends in 32 random characters. A wrong one is refused, and an address that keeps guessing is turned away before anything is looked up.

  2. 2
    The webhook is activeOtherwise answered, nothing kept

    A paused webhook answers each event as received and keeps nothing, so your platform reports no failed deliveries.

  3. 3
    Signed by your platformOtherwise refused

    With the signing secret saved, an event your platform didn't sign is refused, and the refusal is listed in Activity, so a wrong secret is easy to spot. Stripe, Shopify, WooCommerce, Lemon Squeezy, Paddle, Thinkific and Housecall Pro sign their events.

  4. 4
    One readable eventOtherwise refused

    A single JSON object or form fields, read up to 256 KB. A list of events is refused.

Before an invite is used

  1. 5
    A new eventOtherwise skipped

    The same event again invites nobody. One that was skipped or failed runs again when it's resent, so fixing a path and resending works.

  2. 6
    Matches Only invite whenOtherwise skipped

    One field of the event compared with a value. Most tiles start with it set, so renewals and other events pass by.

  3. 7
    A real event, not a testOtherwise skipped

    Test purchases and test buttons from Stripe, Shopify, Lemon Squeezy, Thinkific and Kajabi are recognised and skipped.

  4. 8
    An email addressOtherwise failed

    Read at the email path, lowercased, and checked that it looks like an address.

  5. 9
    The right formBusiness

    Routing rules can send this customer to another form and email sequence. The first match wins, and a webhook holds up to 5.

  6. 10
    Not on the Do not email listOtherwise skipped

    The project's list of unsubscribes, bounces, spam reports and addresses you added, and any address that bounced or reported an email as spam anywhere on ReTestimonial.

  7. 11
    Not asked latelyOtherwise skipped

    Anyone this project invited in the last 90 days, by any webhook, a file or by hand. Each webhook can change it, and 0 turns it off.

  8. 12
    Form and emails readyOtherwise failed

    A paused or draft form, or a deleted email sequence, fails the event before an invite is used.

  9. 13
    An invite to useOtherwise failed

    From the project's monthly allowance, then from invite credits. Reminders never use another. Then the customer is invited, and the first email waits the webhook's time.

Signed by your platform

Stripe, Shopify, WooCommerce, Lemon Squeezy, Paddle, Thinkific and Housecall Pro sign every event. Paste the signing secret once, and an event they didn't sign is refused. A saved secret can't be read back, only replaced.

  • StripeStripe-Signature
  • ShopifyX-Shopify-Hmac-Sha256
  • WooCommerceX-WC-Webhook-Signature
  • Lemon SqueezyX-Signature
  • PaddlePaddle-Signature
  • ThinkificX-Thinkific-Hmac-Sha256
  • Housecall ProApi-Signature

A URL nobody can guess

Each webhook's URL ends in 32 random characters: the only proof Gumroad, Teachable and Kajabi send, and a custom webhook too. If it gets out, New URL on the Setup tab replaces it: the old one is refused at once, and the settings, the Activity and the waiting customers stay.

Pause without losing anyone

Pause a webhook and customers waiting for their first email are held until you activate it; new events are answered and discarded. Delete it, and those first emails are cancelled. Reminders to customers already emailed carry on.

Conditional routing, on Business

One webhook, a different ask for each kind of customer

A rule compares one field of the event, or an extra field, and sends a match to its own form and, if you like, its own emails. Rules are checked in order and the first match wins. A webhook holds up to 5.

Wren & Weft's Shopify webhook

  1. 1Duvet buyersMetadata KeyproductcontainsDuvetForm Bedroom stories, emails Bedroom emails
  2. 2Big basketsJSON Pathtotal_price>=150Form Video stories, the webhook's emails
  3. No match: the webhook's form, Customer stories

Three orders, three forms

  • Linen Apron$58.00No rule: Customer stories
  • Washed Linen Duvet Cover$210.00Rule 1, Duvet buyers: Bedroom stories
  • Linen Napkins, set of four (six sets)$216.00Rule 2, Big baskets: Video stories

The duvet cover fits both rules. The first wins, so it goes to Bedroom stories.

Wren & Weft is a made up store. Each order's rule is the one the product's own rule check picks.

Try any event first, then watch the real ones

The Test tab runs an event through the webhook's saved settings and tells you who it would invite, or why not. Once events arrive, Activity lists the last 50 with what the platform sent and the reason for every skip.

Test a payload

A dry run through this webhook's mapping, filter and routing. Nothing is saved and no email is sent.

This event would invite byron@leapyear.example

Email
byron@leapyear.example
Name
Byron Robertson
Company
—
Filter
Passed
Received64
Invited49
Skipped13
Failed2

Recent events

The last 50 events this webhook received. Open one to see the payload.

  • Invitedbyron@leapyear.example2 minutes ago
  • SkippedNo email extractedDidn't match your “only invite when” filter3 hours ago
  • SkippedNo email extractedA test event from the platform, so nobody was invited and no invite was usedyesterday
  • FailedNo email extractedThe signature didn't match — compare the signing secret on this webhook's Setup tab with the one your platform shows.2 days ago
Drawn in the dashboard's own words, for the subscription in the hero. The counts and times are made up.

Not on the list? Send one request per customer

A custom webhook takes a POST from your own backend or any tool that can send one. Map the paths to your field names, add a filter if only some customers should be asked, and the same checks run.

The request

POST YOUR_WEBHOOK_URL
Content-Type: application/json
Idempotency-Key: order-1042

{
  "email": "jo@example.com",
  "name": "Jo Brown",
  "company": "Uplift Inc.",
  "plan": "pro"
}
  • One JSON object per customer, or form fields. A list of events is refused.
  • Give each real event its own Idempotency-Key, such as your order number: a retry with the same key and body invites the customer once.
  • Send it from your server: the secret at the end of the URL is the only proof the request is yours.

What your app hears back

  • 200{"status":"processed","contactId":"…"}Added, and the emails are scheduled.
  • 200{"status":"skipped","reason":"…"}It arrived, and nobody was invited. The reason says why.
  • 200{"status":"error","error":"…"}It can't be used as sent, such as no email at the path. Sending it again won't help until that's fixed.
  • 401{"error":"Unauthorized"}The URL is wrong. Copy it again from the Setup tab.
  • 429{"error":"Rate limit exceeded","retryAfter":"…"}Too many at once. Send it again after retryAfter.
  • 500{"status":"error","error":"…"}Something went wrong on our side. Send it again later.

Errors that resending can't fix answer 200, so a platform that retries on failure doesn't keep trying. Retry a 429 or a 500 yourself; nothing is fetched or retried for you.

On Premium and Business, per project

1 on Premium and 3 on Business webhooks per project, and 500 customers on Premium and 1,000 on Business invited per project each month. Reminders never use another invite, and every paid plan is priced per active project.
What Smart Invites webhooks include on each plan
FeatureFree$0Pro$29/moPremium$49/moBusiness$79/mo
Smart Invites webhooksNot includedNot includedIncludedIncluded
Webhooks per projectNot includedNot included13
Customers invited per project a monthNot includedNot included5001,000
Every platform in the wizard (11)Not includedNot includedIncludedIncluded
Signature checks, Test tab and ActivityNot includedNot includedIncludedIncluded
Conditional routingNot includedNot includedNot includedUp to 5 rules a webhook

A busy month? Invite credits take over

Bought once, shared by every project in the workspace, and they never expire. They top up Premium and Business only.

  • 100 invites$14.99
  • 500 invites$59.99
  • 1,000 invites$99.99
Compare every planA skipped event never uses an invite: test events from Stripe, Shopify, Lemon Squeezy, Thinkific and Kajabi, repeats, and customers asked in the last 90 days.

Before you connect it

The first email can wait anything from no time at all to a year: set it to when your customer has felt the result.

Do I need a developer?

Not for the platforms in the wizard. Pick yours, and the event, the paths to the customer's details and a filter come filled in. You paste the webhook URL into your platform's settings, and its signing secret back into ReTestimonial; the setup page shows your platform's own clicks. A custom webhook needs whoever can make your app send one request per customer.

Which platforms are ready to connect?

Stripe, Shopify, WooCommerce, Gumroad, Lemon Squeezy, Paddle, Teachable, Thinkific, Kajabi and Housecall Pro, in 17 starting points: Stripe has one for Checkout and one for subscriptions, Shopify one for online orders and one for the till, and Teachable and Thinkific one each for a finished course, a student halfway and a purchase. Anything else that can send a webhook works through a custom webhook.

Will a test purchase email anyone?

No. Test events from Stripe, Shopify, Lemon Squeezy, Thinkific and Kajabi are recognised and skipped without using an invite, and Gumroad's test ping is skipped by the tile's own filter. Before a real customer buys, the webhook's Test tab tells you what any event would do, and nothing is saved or sent.

What if my platform sends the same event twice?

The customer is invited once. A repeat is recognised by the event's id on Stripe, the X-Shopify-Event-Id header on Shopify, the event_id on Paddle, the event's id on Thinkific, and otherwise by an Idempotency-Key header with the body, or the exact body. An event that was skipped or failed is processed again when it's sent again, so you can fix a path and resend it.

What if a customer buys again next month?

They aren't asked again. Anyone this project invited in the last 90 days is skipped, however they were invited. Each webhook can set its own cooldown, up to 3,650 days, and 0 turns it off.

Is the webhook URL safe?

Treat it like a password: it ends in 32 random characters, and anyone who has it can add customers. For Stripe, Shopify, WooCommerce, Lemon Squeezy, Paddle, Thinkific and Housecall Pro, save the platform's signing secret too, and only events it signed are accepted. If the URL gets out, give the webhook a new one on its Setup tab: the old one stops at once, and the settings, the Activity and the waiting customers stay.

What happens while a webhook is paused?

New events are answered and discarded, so your platform sees no error and those customers aren't invited later. Customers already waiting for their first email are held until you activate it. Delete the webhook and those first emails are cancelled. Reminders to customers already emailed carry on either way.

How do I know it's working?

The setup page listens until the first event arrives, then says it works, or why the event was skipped or failed. After that, the webhook counts what it received, invited, skipped and failed, and its Activity tab lists the last 50 events with the reason for each and what the platform sent.

Can the email name what they bought?

Yes. A webhook can read up to 10 extra fields from each event, such as the product or the amount, and the emails show them as {meta:NAME}. The Shopify, WooCommerce, Gumroad and Lemon Squeezy tiles start with product, so “How's your {meta:product|order}?” reads “How's your Linen Apron?”, or “How's your order?” when an event has none.

Which plans include webhooks?

Premium and Business: 1 on Premium and 3 on Business webhooks per project, and 500 customers on Premium and 1,000 on Business invited per project each month. Past that, invite credits take over: 100 for $14.99, 500 for $59.99 and 1,000 for $99.99, shared by the workspace and never expiring. You can start with a free account, and ask for a refund within 14 days of your first payment.

Can different customers get different forms?

On Business, a webhook holds up to 5 routing rules. Each compares a field of the event or an extra field, and sends a match to its own form and, if you like, its own emails. The first rule that matches wins, and everyone else gets the webhook's form.

Paste one URL.Every new customer gets asked.

Pick your platform, paste the URL where it sends its events, and keep the default emails. Test events, repeats and recent customers are skipped for you.

Create your first webhook
  • Start with a free account
  • Test events never use an invite
  • 14 day refund on your first payment