Sync new Stripe customers to Salesforce contacts
Recipe ToolsDocument/FileDeveloper ToolAPI IntegrationCRMMarketing
What it does
When this automation runs on a schedule, it polls Stripe for customers created since the last run. For each new customer with no match in Salesforce, this automation creates a contact so the sales team has current data.
Who it's for
Sales operations teams who need Stripe customer records in Salesforce without manual entry.
Apps used
How teams use this
Keep Salesforce contacts current daily
Run this automation each morning to pull overnight Stripe signups into Salesforce so the sales team always has fresh customer records without manual work.
Sync to a different CRM
Replace Salesforce with HubSpot or another CRM to replicate Stripe customers into that system instead. The Stripe poll and matching logic stay the same.
Filter customers by plan or status
Add a condition to the Stripe query so only customers on a paid plan or with a specific status are synced to Salesforce. This requires a filter on the Stripe API call.
Map additional Stripe fields to contact
Include Stripe metadata such as company, phone, or custom attributes when creating the Salesforce contact. This requires mapping those fields in the create step.
How it works
- Run on a schedule. This automation starts at a specified interval, such as daily or hourly, to keep Salesforce contacts in sync with Stripe.
- Retrieve the last run time. Search Google Drive for the file that stores when this automation last ran, so Stripe is polled only for new customers since that moment.
- Fetch new Stripe customers. Query Stripe for all customers created after the stored time, then page through results to retrieve the complete list of new records.
- Match customers to contacts. For each Stripe customer, search Salesforce contacts by email or name to find an existing record and avoid duplicates.
- Create missing contacts. When no match is found, create a new Salesforce contact with the Stripe customer data, then save the current time to Google Drive for the next run.