Save hours of manual billing work with this Stripe automation workflow!
Designed for entrepreneurs, SaaS founders, and online business owners, this template checks if a customer already exists in Stripe based on their email. If no customer is found, it automatically creates a new one, generates a draft invoice, adds a product line item using a Stripe Price ID, and finalizes the invoice — making it ready for payment.
This workflow helps ensure clean customer data and efficient billing without manual input.
Stripe account setup:
read
and write
Customers, Invoices, and Invoice Items.Connect Stripe to n8n:
Customize dynamic data:
[email protected]
) with your real dynamic customer email input.price_fromStripeDashboard
) with your actual product Price ID from the Stripe dashboard.Test your workflow:
Deploy to production:
Invalid API Key:
Double-check that your Stripe API key is active and has the necessary permissions. Test it by making a simple API call manually if needed.
Invoice Creation Fails:
Make sure you are using a valid Price ID
from Stripe. The price must be active and available for the correct product.
Customer Not Found Error:
If the search fails due to formatting issues, ensure emails are valid and the query syntax matches Stripe's customer search format.
Authentication Errors:
If authentication fails, ensure you have selected HTTP Basic Auth in the HTTP Request nodes and left the username field empty.