How to Sync Stripe Customers to Segments | K2Mailer
Learn how to sync Stripe customers into consent-checked segments in K2Mailer for compliant, targeted email campaigns.
Last updated:
Quick answer: how do you sync Stripe customers in K2Mailer?
To sync Stripe customers, open Settings → Integrations, provide a Stripe secret or restricted API key, and start a scan. K2Mailer reads customers, charges, subscriptions, and invoices, then groups customers into behavioral lists inside a dedicated Stripe group. The scan is read-only, so nothing is charged or changed in Stripe.
The sync organizes who your buyers are. It does not give you permission to email them. Every list the sync creates is double opt-in and flagged as requiring consent, and a contact becomes subscribed only after an explicit marketing opt-in is recorded.
- Where: Settings → Integrations.
- What it reads: customers, charges, subscriptions, and invoices.
- What it builds: a Stripe group with eight behavioral lists.
- Consent: all synced lists are double opt-in and require recorded marketing consent.
- Safe to repeat: re-running the scan updates the same lists.
What is a Stripe customer sync?
A Stripe customer sync connects your payment data to your email audience. Instead of exporting customers from Stripe and importing a spreadsheet, K2Mailer reads the payment activity and sorts people into groups that reflect how they actually buy, such as active subscribers, repeat buyers, or customers with a refund.
The result is a set of audiences built from real behavior. That is the same principle behind any campaign segment: the more the audience matches the message, the more relevant the email feels to the person reading it.
Why sync Stripe customers for email marketing?
Payment data tells you things a signup form cannot. It shows who bought recently, who keeps buying, who subscribed, and who needs a follow-up on a failed payment. Using that behavior lets you send messages that match each stage of the customer relationship, such as onboarding for new subscribers or a thank-you for loyal buyers.
A sync also removes manual work. You do not have to schedule recurring exports and imports, and the lists are rebuilt from the same source each time you scan. Combined with consent checks, it gives you a targeted audience you can actually defend if someone asks how you got their address.
Before you connect Stripe
- Make sure you have administrator access, because the connection lives in Settings → Integrations.
- Decide who in your team owns the Stripe API key and where it is stored.
- Plan how you will collect marketing consent, for example a checkbox at checkout or on an account page.
- Set up your sending domain and sender identity so campaigns are ready once consent exists.
- Review your privacy policy so it explains that purchase information may be used to organize marketing audiences.
How to connect a Stripe account and run a scan
- 1
Open Settings → Integrations and find the Stripe connection.
- 2
Provide a Stripe secret or restricted API key. If your Stripe setup allows it, prefer a restricted key with read access to the data the scan uses.
- 3
K2Mailer verifies the key against the Stripe account before saving the connection.
- 4
Start a scan. Customers, charges, subscriptions, and invoices are read and summarized per customer; nothing is charged or modified in Stripe.
- 5
When the scan finishes, open the Stripe group and review the lists that were built.
- 6
Run the scan again whenever you want the lists to reflect new payment activity.
Treat the API key like a password
Store the key in a password manager, share it only with people who need it, and rotate it if someone leaves the team. See Stripe's guidance on API keys for the key types available.
What the scan builds: eight behavioral lists
The scan groups matching customers into a dedicated Stripe group containing behavioral lists. Membership is derived from real payment activity: recent successful charges, active or trialing subscriptions, repeat and lifetime spend, refunds, and invoices Stripe has given up collecting.
- All Stripe Customers
- Every customer found by the scan. Use it as a master reference, not as a default marketing audience.
- Active Stripe Subscribers
- Customers with active or trialing subscriptions. Good for onboarding, product tips, and plan updates.
- Recent Stripe Buyers
- Customers with recent successful charges. Good for thank-you messages and cross-sell timing.
- Repeat Stripe Buyers
- Customers who have bought more than once. Good for loyalty messages and early access.
- High-Value Stripe Customers
- Customers with high lifetime spend. Good for personal outreach and premium offers.
- Lapsed Stripe Buyers
- Customers whose earlier purchases are no longer recent. Good for win-back campaigns.
- Stripe Failed-Payment Follow-up
- Customers with invoices Stripe has given up collecting. Handle carefully and keep payment notices separate from promotion.
- Stripe Refunded Customers
- Customers who received a refund. Good for a short feedback request rather than a sales push.
Check the lists after your first scan
Review each list's size and sample contacts before sending. The exact thresholds for terms like recent and high-value are applied by the scan, so confirm the results fit how you think about your customers.
Consent still applies after the sync
Being a Stripe customer does not by itself authorize marketing email. Every list the sync creates is double opt-in and flagged as requiring consent, so synced contacts do not become sendable simply because they paid you.
A separate marketing-consent endpoint records an explicit opt-in event, with a form name and policy version, before a synced contact is actually treated as subscribed to the selected segments. This gives you a record of what the person agreed to and when. For background on what valid consent looks like, read Article 7 of the GDPR and the FTC's CAN-SPAM compliance guide.
Sync is not a consent shortcut
Use the Stripe sync to organize who your buyers are. Still capture explicit marketing consent before sending campaign email to a synced contact.
How to record marketing consent for synced contacts
- 1
Offer a clear, unticked choice to receive marketing, for example at checkout, in the account area, or on a sign-up form.
- 2
Name the form and keep the version of the privacy policy the person saw.
- 3
Send the opt-in to K2Mailer through the marketing-consent endpoint. See the K2Mailer REST API guide and the API reference.
- 4
Confirm that the contact now appears as subscribed to the selected segments. Double-opt-in lists may still wait for confirmation.
- 5
Offer an easy way to leave, and link the email preference center in every campaign.
Campaign ideas for each Stripe audience
- Onboarding for subscribers
- Help new subscribers get value fast with a short series of setup tips. Send it to consented members of Active Stripe Subscribers.
- Thank-you and cross-sell
- Follow a recent purchase with a thank-you and one relevant suggestion. Use consented members of Recent Stripe Buyers.
- Loyalty note
- Acknowledge repeat customers with early access or a short appreciation note.
- Win-back series
- Offer lapsed customers a reason to return, such as a new feature, and stop after a few messages if they do not respond.
- Payment recovery
- Keep payment problem notices as service messages from your billing process. Use marketing email only for people who have consented.
- Feedback request
- Ask refunded customers what went wrong. A genuine question builds trust more than a promotion.
Example: from payment data to a compliant first campaign
Say a software company wants to welcome new paying customers. An administrator connects Stripe in Settings → Integrations and runs the first scan. The team opens the Stripe group and finds Active Stripe Subscribers already built from current and trialing subscriptions.
Before sending anything, they add an unticked marketing checkbox to the account page and record each opt-in with the form name and the privacy policy version. Once a customer opts in, that person is treated as subscribed to the selected segments. The team sends a short onboarding email to that consented audience, runs Campaign Preflight, and reviews click results afterward. Customers who never opted in simply stay unmailed, which is exactly what the consent check is for.
Consent checklist before your first send
- Every person in the audience gave an explicit marketing opt-in.
- The opt-in is recorded with a form name and the policy version shown at the time.
- Your privacy policy explains how purchase information is used for marketing.
- Each email includes a working unsubscribe link and a path to the preference center.
- Failed-payment and billing notices are handled as service messages, not promotions.
Keep your Stripe audiences current
Payment behavior changes constantly. A customer who is a recent buyer today becomes a lapsed buyer in a few months. Re-run the scan on a regular schedule so the behavioral lists keep matching reality. Re-running the scan updates the same lists rather than duplicating them, so you can do it as often as your workflow needs.
Because the lists feed segments, review any saved segment or scheduled campaign that depends on them after a large scan. Segments resolve against current data, as described in Build and use campaign audience segments, and list maintenance explains how to keep the underlying lists healthy.
Best practices for Stripe-based email marketing
- Collect explicit consent before the first promotional email, and record it with a form name and policy version.
- Start with one or two audiences, such as Active Stripe Subscribers, and expand once results look healthy.
- Keep transactional messages, like receipts and billing notices, separate from marketing campaigns.
- Personalize with real purchase context, but avoid revealing sensitive payment details in an email.
- Review list sizes after each scan to catch surprises early.
- Use Campaign Preflight before every schedule.
Common mistakes to avoid
- Treating every Stripe customer as a marketing subscriber.
- Sending promotions to the failed-payment audience instead of a clear billing message.
- Sharing the API key in chat or email instead of a password manager.
- Forgetting to re-run the scan, so lists drift away from real activity.
- Skipping a small test send before launching to a large buyer group.
- Ignoring unsubscribes and suppressions because the person is a paying customer.
Troubleshooting the Stripe sync
- The connection does not save
- K2Mailer verifies the key against the Stripe account before saving. Check that the key is valid, active, and copied without spaces.
- A list is smaller than expected
- Membership comes from real payment activity, so customers without matching charges, subscriptions, or invoices will not appear. Re-run the scan after new activity.
- Customers are on a list but not receiving email
- Synced lists require recorded marketing consent. Confirm the opt-in event exists, and review suppression and bounce protections.
- Lists look out of date
- Run the scan again. It updates the same lists instead of creating duplicates.
Security and data handling
The scan only reads customer, charge, subscription, and invoice data, and it does not move money. Even so, a payment API key deserves care. Limit who can see it, prefer the narrowest key your Stripe setup supports, and rotate it when team members change. Be transparent with customers about how their information is used, and keep your privacy policy up to date.
Where the Stripe sync fits in the audience topic cluster
The Stripe sync is one source of audience data alongside manual contacts, imports, and web forms. Use lists and groups to organize them, custom fields to enrich them, and segments to target them. Plan your launch with Choose Lists, Segments, or Individual Contacts.
If you run an online store, you may also like our guide to email marketing for ecommerce. Ready to try it? Start a free trial.
Frequently asked questions
- Does connecting Stripe automatically start sending campaigns to customers?
- No. The sync only builds lists and requires a separate recorded consent event before treating a contact as subscribed.
- Can I run the scan again as new Stripe activity happens?
- Yes. Re-running the scan updates the same behavioral lists rather than duplicating them.
- Does this feature move money or change anything in Stripe?
- No. The scan only reads customer, charge, subscription, and invoice data.
- Which Stripe key should I use?
- K2Mailer accepts a Stripe secret or restricted API key and verifies it before saving. If your Stripe setup allows it, a restricted key with read access is the more cautious choice.
- What lists does the Stripe sync create?
- It creates a Stripe group with eight lists: All Stripe Customers, Active Stripe Subscribers, Recent Stripe Buyers, Repeat Stripe Buyers, High-Value Stripe Customers, Lapsed Stripe Buyers, Stripe Failed-Payment Follow-up, and Stripe Refunded Customers.
- Why are synced contacts not subscribed right away?
- Every synced list is double opt-in and requires consent. A contact is treated as subscribed only after an explicit opt-in event, with a form name and policy version, is recorded.
Keep learning: related guides in this topic
- Build and use campaign audience segmentsLearn how to build and use campaign audience segments in K2Mailer to send targeted emails and improve engagement
- Create lists and manage contact membershipsHow to create and manage an email list in K2Mailer: list settings, double opt-in, custom fields, groups, and per-list membership states for each contact.
- Add and manage canonical contactsHow to add and manage canonical contacts in K2Mailer: one contact across multiple email lists, per-list subscription states, and delivery protections.
- Clean, split, and maintain listsLearn how to clean, split, and maintain email lists in K2Mailer to improve engagement, deliverability, and campaign performance.
- Audience Targeting for Email CampaignsLearn how to target the right audience for email campaigns in K2Mailer using lists, segments, and contact data to improve engagement and cut unsubscribes.
- Email Preference Center Setup & BenefitsLearn what an email preference center is, why it matters, and how to manage subscriptions easily with K2Mailer.
- K2Mailer REST API GuideLearn what a REST API is, how endpoints and HTTP methods work, and how to build, test & secure RESTful APIs with K2Mailer’s simple beginner-friendly guide.
Was this guide enough?
Contact support if your screen or result is different.