⚡ Owner Setup Guide · Takes 3 Minutes

Connect Stan Store to Encore via Zapier

Follow the three copy-paste Zaps below so every new Stan Store buyer gets a private login link, creates her password, and cancellations remove access cleanly when the paid period ends.

Before You Start: One Secret Key in Vercel

Step 0 · 30 Seconds

In your Vercel project settings (Settings → Environment Variables), make sure ENCORE_ZAPIER_WEBHOOK_SECRET is set to a secret passphrase only you know. Paste that exact same passphrase into the X-Zapier-Secret header inside Zapier below.

Zap 1: Instant Buyer Unlock on New Order

Required · Active Buyers

In Zapier, click Create Zap and copy these exact values:

1. Trigger App Stan → Event: New Membership. In Product, pick your Encore product (do one Zap per Encore product, or leave blank and add a Filter step: Product Name contains Encore).
2. Action App Webhooks by Zapier → Action Event: Custom Request (or POST) → Method: POST
3. Webhook URL https://encore-affiliate-studio.vercel.app/api/webhooks/stan
4. Headers Content-Type : application/json
X-Zapier-Secret : <your ENCORE_ZAPIER_WEBHOOK_SECRET from Vercel>
5. JSON Data Payload (Map purple Stan Store pills into the quotes):
{
  "email": "{{customer_email}}",
  "full_name": "{{customer_full_name}}",
  "product_name": "{{product_name}}",
  "order_id": "{{order_id}}",
  "discount_code": "{{discount_code}}",
  "status": "active"
}

Map discount_code to Stan's discount or coupon field if Zapier shows one. Buyers who used EVOPRO25 are tagged as Evolution Pro members automatically.

Zap 2: Remove Access When a Membership Ends

Required · Clean Access

Duplicate Zap 1, change the Stan trigger to Cancelled Membership (it fires when the paid period actually ends, so buyers keep access through the time they paid for), keep the exact same Webhook URL and X-Zapier-Secret header, and set "status": "cancelled":

Cancel / Refund JSON Payload:
{
  "email": "{{customer_email}}",
  "full_name": "{{customer_full_name}}",
  "product_name": "{{product_name}}",
  "order_id": "{{order_id}}",
  "status": "cancelled"
}

Zap 3: Welcome and Login Link Email

Required · Buyer Security

Encore sends every new buyer (and anyone who taps Email me a login link) a private one-tap login link. This Zap delivers it from your own Gmail:

1. Trigger Webhooks by Zapier → Catch Hook. Copy the hook URL Zapier gives you.
2. Save the hook URL In Vercel, add ENCORE_ZAPIER_RESEND_HOOK_URL with that hook URL, then redeploy.
3. Action Gmail → Send Email. To: email. Subject: Your Encore login link. Body uses first_name and the unlock_url button link.
Hi {{first_name}},

Tap this private link to open your Encore Studio:
{{unlock_url}}

The first time, you will create your Encore password. After that, sign in with your email and password at https://encore-affiliate-studio.vercel.app

This link works for 30 days and only for you, so please do not forward it.

Haley
Encore Studio

Interactive Live Webhook & Buyer Login Tester

Test End-to-End Right Now

Verify your live backend in two clicks: send a simulated Stan Store order on the left, then verify that buyer email unlocks Studio on the right!

1. Send Test Order Webhook

Waiting for test webhook...

2. Verify Buyer Email Login

Tests the exact POST /api/auth/buyer-login call that new buyers use on /welcome and /start-here.

Waiting for buyer login check...