add-opportunities-from-membership-invoices-to-sales-teamlisted
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