Closed-won vs. paid reconciliation: match Salesforce wins to Stripe invoices and flag the gaps
This recipe uses the official Stripe and Salesforce MCP servers, and both work in Claude and ChatGPT. Every step only reads data.
Who it's for: RevOps teams who want every closed-won opportunity checked against what was actually invoiced and paid in Stripe, before commissions go out or the month is closed. Everything stays read-only. Salesforce can be swapped for HubSpot, Attio or Pipedrive.
You need:
Different tools, or a different job? Build a recipe with Stripe and Salesforce and your other tools, and get a prompt your assistant can design from.
Paste these prompts, in order
Use one conversation. Every step only reads data.
Look at the Opportunity and Account schema in Salesforce and tell me which fields hold the amount, close date, owner, account website and any Stripe customer ID. Then use SOQL to list opportunities marked Closed Won with a close date in {period}: name, account, website, owner, amount and close date. Don't change any records.
In Stripe, read the customers, invoices and subscriptions for those accounts, from the start of {period} to 30 days after it ends. Match each opportunity to a Stripe customer by {stripe id field} if it's set, otherwise by email domain. Show how each match was made. Read only. Don't change anything in Stripe.
For each opportunity, compare the won amount with what was invoiced and what was paid, using subtotals before tax. Flag: no invoice, invoiced but unpaid, partly paid, or a different amount. If a subscription bills in instalments, compare against what should have been billed so far and mark it as a schedule, not a gap.
Give me a table of the mismatches only, grouped by owner, then a list of paid Stripe invoices with no closed-won opportunity. Add a line for each owner where the Salesforce amount and the paid amount differ, so I can check commissions. Don't change anything in Salesforce or Stripe.
Rules it follows
These are in the download too. Keep them when you change the prompts.
- Read only in Salesforce. Don't edit any opportunity, amount, stage or owner.
- Read only in Stripe. Don't create, finalize or void invoices, change customers or subscriptions, create payment links or coupons, move money, or issue refunds.
- Show how each opportunity was matched to Stripe, and list unmatched records on both sides instead of guessing.
- Flag differences without deciding which system is right. Commission questions go to finance.
- Keep amounts and owner names in the report to me. Don't post them anywhere.
Where does this go wrong?
And what to check each time.
Wrong customer matched
A Stripe customer name often differs from the Salesforce account name. Match on a Stripe customer ID field if your org stores one, otherwise on email domain. Show the match basis for every row and list unmatched opportunities instead of guessing.
A billing schedule flagged as partial payment
A quarterly or monthly subscription won't have paid the full contract yet. Read the subscription, compare what should have been billed so far, and mark those rows as a schedule rather than a gap.
Late invoices flagged as missing
A deal won on the last day of the month is often invoiced the next week. Look at invoices up to 30 days after the period ends before marking anything missing.
Tax or currency read as a different amount
An invoice total can include tax, or be in another currency. Compare subtotals before tax, show the currency on every row, and flag currency mismatches separately.
Which MCP servers does it use?
Every server is confirmed in: ClaudeChatGPTClaude CodeCursor
Stripe
Payments & Billing
- Works in
- Claude, ChatGPT, Claude Code, Cursor
- Access
- Read + write
- Credits
- Not confirmed
Salesforce
CRM & Deal Management
- Works in
- Claude, ChatGPT, Claude Code, Cursor
- Access
- Read + write
- Credits
- Not confirmed
How do I set it up?
Every server in this recipe is confirmed for Claude and ChatGPT. Connect each one, then paste the prompts below into one conversation.
- Connect Stripe without code (Claude, ChatGPT)
- Connect Salesforce without code (Claude, ChatGPT)
Developer setup (Claude Code and Cursor)
Salesforce
Salesforce's Cursor guide says to put the server URL and the External Client App consumer key in mcp.json. Replace <SERVER-NAME> with the server name and CONSUMER-KEY with the consumer key. Sandbox and scratch orgs use https://api.salesforce.com/platform/mcp/v1/sandbox/ plus the server name.
{
"mcpServers": {
"Salesforce": {
"url": "https://api.salesforce.com/platform/mcp/v1/<SERVER-NAME>",
"auth": {
"CLIENT_ID": "CONSUMER-KEY"
}
}
}
}Salesforce's Claude guide says Claude Code inherits the Claude connector, so those Claude steps cover it too. The guide gives no separate Claude Code command. A May 2026 Salesforce Developers blog documents an API-key path with the callback http://localhost:38000/callback. The blog recommends the Claude.ai connector for everyone else. This page follows the setup guide and does not add a command the guide does not publish.
- Stripe: Sign in with OAuth, or pass an API key as a Bearer token for headless use.
Put this in .mcp.json (Claude Code, project root) or ~/.cursor/mcp.json (Cursor). Swap the example keys for your own, and don't commit real ones. Remove the // comment lines if your client requires strict JSON.
{
"mcpServers": {
"stripe": {
"url": "https://mcp.stripe.com"
// headless alternative: "headers": { "Authorization": "Bearer YOUR_STRIPE_API_KEY" }
}
}
}How long does it take, and what does it cost?
Estimate About 20–30 minutes for a month of closed-won deals, most of it checking the mismatches.
Assumptions: One monthly run over about 20 closed-won opportunities and their Stripe customers.
- Stripe: Reads only: a few list or search calls for customers, invoices and subscriptions in the period. No writes. Credit use not confirmed by Stripe.
- Salesforce: Reads only: one schema lookup and one or two SOQL queries for closed-won opportunities, their accounts and owners. Salesforce says Hosted MCP is for customers with Flex Credits, and you may be billed. That metering is not active yet. Credit use not confirmed by Salesforce. Salesforce Hosted MCP Servers are intended only for customers with Flex Credits and you may be billed for server usage. Salesforce Help article Understand AIforce Impact (September 17, 2026) says every successful call a registered agent makes over MCP will be metered as a Headless Platform Interaction and will consume Flex Credits in production orgs. The multiplier is listed as TBA, so this usage is not metered yet. Salesforce says it will give 30 days' notice before metering starts. Sandboxes, scratch orgs, and Developer Edition orgs don't incur HPI metering through Digital Wallet, so admins and developers can build and test without drawing down Flex Credits. That article also says traditional integration pricing stays as it is today. Source: developer.salesforce.com, checked 2026-11-02
Exact credit costs depend on your plan with each vendor. Check the tool pages before a large run.
Can I run it on a schedule? (optional)
- Run it monthly, a few days after month end and before the commission run, so late invoices have had time to go out.
- In a scheduled run, produce the table and send it to yourself. The recipe never changes anything, so there's nothing to approve, but read the mismatches before they go to finance.
- For a headless run, Stripe accepts an agent API key. From December 2026 it rejects full-access secret keys and restricted keys without the Agent tag, so use a restricted Agent key with read access only. Salesforce needs an admin to set up the connection first.
Gotchas
- Salesforce needs admin or IT setup: its MCP server needs Enterprise Edition or above, and an admin must create an External Client App for each client. In ChatGPT it also needs developer mode. Ask for the read-only platform/sobject-reads server for this recipe.
- Salesforce says Hosted MCP is for customers with Flex Credits, and you may be billed. That metering is not active yet.
- Stripe's MCP server can write: it creates, finalizes and voids invoices, cancels subscriptions, creates payment links and coupons, and issues refunds with human confirmation. Connect with an account or restricted key that only has read access.
- In Claude Team and Enterprise, an owner must add the Stripe connector to the workspace before you can connect it.
- Using HubSpot instead? HubSpot's connector covers CRM search, so the same steps work on closed-won deals and their companies. Non-admin users need a Super Admin to approve the HubSpot connector first.
Further reading
Hand-picked articles, videos and podcasts about Stripe and Salesforce. They're editorial picks, not sources for the facts on this page. All resources
How Anthropic's Head of Industries Built an AI-Native Sales Org from Scratch (external link)
A conference talk on a sales team that works through an assistant tied to its CRM, call recordings and Slack, including the daily AE routines they turned into shared skills.
About: Clay, Salesforce, Gong, Slack
#114 Running RevOps on AI Workflows & Agents (external link)
A RevOps lead who now works solo walks through the agents he runs each week, and why good notes and recorded meetings matter more than the model.
About: Salesforce, Slack, Notion
Download
Get the prompts, guardrails and expected output as one Markdown file. Paste it into a Claude Project or ChatGPT project's instructions, or save it as CLAUDE.md for Claude Code.
Download revenue-reconciliation.md