Skip to main content
Automatically send deal data to your invoicing system (Stripe, QuickBooks, Xero, etc.) when an opportunity is won.

Workflow Structure

  1. Trigger: Record is Updated (Opportunity)
  2. Filter: Stage = Closed Won
  3. Search Record: Get Company details
  4. Code (optional): Format payload
  5. HTTP Request: Send to invoicing system

Step 1: Set Up the Trigger

  1. Create a new workflow
  2. Select Record is Updated trigger
  3. Choose Opportunity as the object

Step 2: Filter for Closed Won

Add a Filter action to only continue when the deal is won:
The trigger fires on any Opportunity update. The Filter ensures the workflow only continues when the stage changes to Closed Won.

Step 3: Get Company Details

The Opportunity record may not include all Company fields you need for the invoice. Add a Search Record action: This retrieves the full Company record with billing address, tax ID, etc.

Step 4: Format the Payload (Optional)

If your invoicing system expects a specific format, add a Code action:

Step 5: Send to Invoicing System

Add an HTTP Request action:

Example: Stripe Invoice

Example: QuickBooks Invoice

Complete Workflow Summary

Tips

  • Store external IDs: Save the invoice ID returned by the API back to the Opportunity using an Update Record action
  • Error handling: Add a branch to send a notification if the HTTP request fails
  • Test first: Use your invoicing system’s sandbox/test mode before going live