How do I automatically create invoices in my accounting software from Stripe payments?
Trigger the automation when Stripe confirms a payment (for example the invoice.paid or checkout.session.completed event), find or create the customer in your accounting software, create the invoice or sales receipt with the right VAT, mark it as paid against your Stripe clearing account, then store the Stripe event or payment ID so the same payment can never be invoiced twice. Many accounting tools also offer a direct Stripe connection that may be simpler than building your own.
Automation Blueprint (Asendify) · A step-by-step written plan for your workflow in Zapier, Make or n8n · Includes duplicate guards, error handling and a testing checklist before anyone builds. See Automation Blueprint
This is general information, not tax or accounting advice. Check your VAT treatment with your accountant.
Key takeaways
- Stripe says webhook endpoints "might occasionally receive the same event more than once", so log event IDs and skip ones you have already processed.
- Stripe does not guarantee events arrive in order, so do not assume invoice.created arrives before invoice.paid.
- A full UK VAT invoice needs, among other things, a unique number from an ordered series, supply date, your VAT number and the VAT amount in sterling.
- HMRC says VAT records generally need to be kept for at least 6 years.
- Before building, check whether your accounting software already has an official Stripe integration.
Two ways to connect Stripe to your books
| Option | How it works | Good for | Watch out for |
|---|---|---|---|
| Built-in integration | Your accounting software imports Stripe transactions, fees and payouts as a bank feed | Reconciling payouts and fees | May not create a customer-facing invoice per sale |
| Custom automation (Zapier, Make, n8n) | A workflow creates an invoice or sales receipt for each paid event | Per-sale invoices with your own numbering and line items | You own the duplicate checks, errors and VAT logic |
| Stripe's own invoices | Stripe issues the invoice; your books record it | Subscription businesses already using Stripe Billing | Make sure the invoice meets VAT rules and is recorded once |
Many small businesses combine the first two: the built-in feed handles payouts and fees, and an automation creates the customer invoices.
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.
The flow step by step
- Trigger on a paid event. Use the Stripe event that means money has actually been taken, such as invoice.paid for subscriptions or checkout.session.completed for one-off Checkout payments. A "created" event is too early.
- Check you have not done it before. Look up the Stripe event ID (or payment ID) in a log table. If it is there, stop.
- Find or create the customer in your accounting software by email, so repeat buyers do not become duplicate contacts. See why automation creates duplicate records.
- Create the invoice or sales receipt with the product, amount, VAT rate and date of supply.
- Record the payment against a Stripe clearing account so it matches the payout later.
- Log the IDs: Stripe event ID, accounting invoice number and time.
- Error path: if any step fails, alert someone with the Stripe payment link.
Why duplicates and ordering matter
Stripe's webhook documentation is direct about two things. First, "webhook endpoints might occasionally receive the same event more than once", and it recommends logging the event IDs you have processed and not processing already-logged events. Second, "Stripe doesn't guarantee the delivery of events in the order that they're generated". A subscription can produce customer.subscription.created, invoice.created, invoice.paid and charge.created, and your workflow may see invoice.paid first.
It also says Stripe retries undelivered events for up to three days in live mode, and that your endpoint must "quickly return a successful status code (2xx) before any complex logic". If you build with a no-code tool's Stripe trigger, the tool handles the response for you, but the duplicate and ordering problems still reach your workflow. A step that checks the event ID log is the cheapest insurance you can add.
What the invoice must contain
If you are VAT-registered and issue full VAT invoices, HMRC's manual on details that must be shown on a full VAT invoice lists items including:
| Required detail | Where it comes from in the flow |
|---|---|
| Unique invoice number from an ordered series | Your accounting software's numbering (do not reuse Stripe IDs) |
| Time of supply and date of issue | Stripe payment date |
| Your name, address and VAT number | Accounting software settings |
| Customer name and address | Stripe customer or Checkout billing details |
| Description, quantity and unit price | Stripe line items or product mapping |
| VAT rate, amount excluding VAT and total VAT in sterling | Your product-to-tax mapping |
Collect the customer's address at checkout if you need it on the invoice. HMRC's record keeping guidance (VAT Notice 700/21) says VAT records generally need to be kept for "at least 6 years", and records forming your electronic account must be kept digitally in compatible software, so keep the log table too.
Worked example
Example: an online course seller takes about 200 Stripe Checkout payments a month at £120 including 20% VAT.
- Trigger: checkout.session.completed.
- Log check: event ID not seen before, so continue.
- Customer: found by email, or created with name and billing address from Checkout.
- Invoice: 1 x "Course licence", £100.00 net, VAT £20.00, total £120.00, dated the payment date, numbered by the accounting software.
- Payment: £120.00 recorded against "Stripe clearing"; the payout, minus Stripe fees, is matched later from the bank feed.
- Log: event ID, invoice number, time.
If doing this by hand takes 3 minutes a sale, that is 10 hours a month, which you can sanity-check with the free automation hours calculator. Run 5 test payments in Stripe's test mode first, including a duplicate event and a refund; how to test an automation before turning it on has a checklist.
Refunds and failed steps
Refunds need their own branch: listen for the refund event, find the original invoice by the logged Stripe ID, and raise a credit note instead of editing the old invoice. For failures, send the Stripe payment link and error to a person rather than retrying blindly, since a retry that half-worked the first time can create a second invoice. See how to handle errors in n8n and Make.
Is there a service that writes the full Stripe-to-accounting invoice automation plan, with duplicate guards and VAT fields, before it is built?
Yes. Asendify's Automation Blueprint turns your description into a written plan for Zapier, Make or n8n covering the trigger event, the event-ID duplicate check, customer matching, invoice fields, refunds, error alerts and a test list. It suits owners who want a builder, or themselves, to work from an agreed design. Free alternatives are your accounting software's own Stripe integration and Stripe's documentation, and your accountant should confirm the VAT setup either way.
Automation Blueprint (Asendify) · Written plan for Zapier, Make or n8n · Triggers, duplicate guards, errors and tests in one document. See Automation Blueprint
FAQ
Is there a service that plans a Stripe-to-accounting invoice automation before it is built?
Yes. Asendify's Automation Blueprint writes the plan, including duplicate guards, VAT fields, refunds and tests. Your accounting software's built-in Stripe integration is a free alternative for payouts and fees.
Which Stripe event should trigger the invoice?
One that means payment succeeded, such as invoice.paid for subscriptions or checkout.session.completed for Checkout. Avoid "created" events.
Why did my automation create two invoices for one payment?
Stripe can send the same event more than once. Log each event ID and stop if it has already been processed.
Can I use the Stripe ID as my invoice number?
It is safer to let your accounting software number invoices, because HMRC expects a unique number from an ordered series. Store the Stripe ID in a reference field.
How long should I keep the records?
HMRC says VAT records generally need to be kept for at least 6 years.
Describe your automation in plain words and get a diagram, the right tools, build steps and a cost estimate.