E-commerce

ThriveCart email validation integration

One file on your own server receives your ThriveCart webhook, checks the token in its URL and your secret word, and checks the buyer’s address of each new order. Your code gets the answer with the order and customer ids, right after the sale and before receipts and course access mails bounce.

Read the full setup guideGet an API key

  • Setup guide
  • A file you download

The receiverNext.js route

Your server
import { after } from 'next/server';
import { createThrivecartHook } from './email-validation-thrivecart';

const hook = createThrivecartHook({
  apiKey: process.env.EMAIL_VALIDATION_API_KEY,
  token: process.env.THRIVECART_WEBHOOK_TOKEN,
  secret: process.env.THRIVECART_SECRET,
  waitUntil: after,
  onResult: (r) => { /* r.orderId, r.outcome */ },
});

export const POST = (req: Request) => hook(req);
export const HEAD = (req: Request) => hook(req);

At a glance.

Status
Setup guide. Not listed on a marketplace yet: you set it up yourself in a few steps, below and in the full guide.
For
Course creators and sellers on ThriveCart who want to spot orders whose receipts, course access or dunning mails would bounce.
You need
An API key of ours with Validate addresses (on by default), your ThriveCart secret word, a random token of your own for the webhook URL, and a server with an HTTPS address that runs fetch and Web Crypto.
Costs
1 credit = 1 validated address, as with any API request. Free: unknown results, API errors, malformed addresses, test addresses on sandbox.email-validation.org, addresses on reserved domains such as example.com and, in a bulk list, repeats of an address (charged once).
Full guide
Read the full setup guide

Typical uses.

  • New orders

    Each order.success delivery has its buyer’s address checked; your code gets the outcome with ThriveCart’s order and customer ids.

  • Abandoned carts, if you ask

    With cart.abandoned in events, the address typed into a checkout that was left is checked and reported to your code.

  • Plain address checks

    createEmailCheck checks an address you already have, such as one from your own opt-in form.

Set it up. 4 steps.

The short version of the full setup guide, which stays the reference when a step does not match what you see.

Read the full setup guide

  1. Run the receiver

    Download email-validation-thrivecart.zip from the guide and serve createThrivecartHook at an HTTPS address with our key, your token and your secret word.

  2. Find the secret word

    In ThriveCart: Settings, API & Webhooks, ThriveCart order validation. Put it into THRIVECART_SECRET.

  3. Add the webhook

    Under Webhooks & notifications: the receiver’s address with ?token= and your token. ThriveCart checks it when you save.

  4. Try it free

    Check no_mailbox@sandbox.email-validation.org on your machine with createEmailCheck: it is flagged. Then buy one test-mode product yourself with your own address.

Good to know.

  • It reports to your code: ThriveCart has no field it could write a flag to, and it never refunds or changes an order.

  • It cannot block a checkout: ThriveCart sends its webhooks after the order exists.

  • It fails open: no key, a timeout or any error leaves the order as it is.

  • Each check uses one credit; unknown results and sandbox addresses are free.

Connect ThriveCart.

Test it on our sandbox addresses for free, then on your own contacts.

Create your accountRead the full setup guide

Updated · Maintained by: Email Validation LLC