← ClaudeAtlas

add-opportunities-from-membership-invoices-to-sales-teamlisted

Build a Zap on Zapier that finds or creates a Salesforce opportunity for each paid membership invoice in Stripe, links it to the customer's contact and records the invoice amount, date and plan. Use when a business sells memberships through Stripe, keeps its pipeline in Salesforce, and wants membership revenue to show up there without manual entry.
zapier/awesome-zaps · ★ 2 · AI & Automation · score 78
Install: claude install-skill zapier/awesome-zaps
# Add opportunities from membership invoices to sales team The Zap's code lives at https://github.com/zapier/awesome-zaps/tree/main/zaps/add-opportunities-from-membership-invoices-to-sales-team. Read the files there if this skill was installed on its own. ## What it does 1. **Trigger:** a paid invoice appears in Stripe (`stripe`, `new_invoice_v2`, filtered to status `paid`). 2. **Filter:** the invoice's plan must be one of the membership plans named in the code. Any other invoice stops the run. 3. **Wait:** the run pauses five minutes so upstream systems finish processing the invoice before the CRM lookups. 4. **Salesforce** finds the contact whose Stripe customer ID matches the invoice's customer. If there is none, it creates one. 5. **Salesforce** searches for an opportunity already holding this invoice ID. If there is one, the run stops. If not, it creates a membership opportunity with the invoice amount, the invoice date as close date, the plan in the membership plan field, and the revenue recognition stage. It then makes the contact the opportunity's primary contact. An invoice that already has an opportunity is skipped, so a rerun never makes a second one. ## Ask the user Each `REPLACE_…` value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up. | Setting | What goes there