Skip to main content

How do I connect Stripe invoices for AR collections?

Loopfour's Stripe integration creates and manages invoices end to end — createCustomer, createInvoice, finalizeInvoice, sendInvoice, and voidInvoice — making Stripe the only integration in this matrix that actually issues and collects AR invoices rather than just supplying payment data. Connecting it means creating the customer in Stripe first; invoices can't be created without one.

Zuny FesterBy Zuny Fester, Head of Operations and Marketing
Reviewed by Zuny Fester
Published Last reviewed Editorial policy

Part of the finance integrations guide.

What gets createdA Stripe Customer, then Invoice objects tied to it
Actions availablecreateCustomer, createInvoice, finalizeInvoice, sendInvoice, voidInvoice
PrerequisiteA Stripe Customer must already exist — customer is a required parameter on invoice creation
What's unique hereStripe is the only integration in this matrix that issues and collects invoices, not just a payment-data source

Why the customer has to exist first

Stripe's Create an Invoice endpoint requires a customer parameter — the ID of the customer to bill — unless the invoice is a revision of an existing one (from_invoice). There's no way to create an invoice against a customer that doesn't exist yet; Stripe raises an error if the customer ID provided is invalid. For a Loopfour workflow, this means the AR sync has to create or look up the Stripe Customer before it ever calls createInvoice, not as an afterthought.

The path from draft to collected

A Stripe invoice starts in draft status the moment it's created and stays there until it's finalized — finalizing locks in the line items and amount, and generates the hosted invoice URL and PDF. From there, collection depends on collection_method: charge_automatically attempts payment against the customer's default source, while send_invoice emails the invoice with payment instructions and a due date instead. Loopfour's sendInvoice action covers the second path explicitly; voidInvoice handles the case where a draft or open invoice needs to be canceled before it's paid.

Where this sits relative to other AR tools in the matrix

Slack and Gmail, elsewhere in this matrix, can notify someone about an overdue invoice, but neither one actually issues or holds an invoice — they're notification channels layered on top of AR data that lives somewhere else. Stripe's invoice actions are the AR system itself for whatever revenue flows through Stripe: the invoice, its line items, its status, and its payment collection all live on the Stripe side, which is why getting the customer relationship right at connection time matters more here than it does for a channel that's just relaying information.

Next step

Map the finance workflow with the most exposure and prove the automation path.

Bring the invoice, contract, payment reconciliation, or customer finance workflow you have to defend at audit. Loopfour can map the trigger, controls, integrations, and approval loop.

Book a workflow review

Worked example

Why createInvoice fails without a customer

A workflow tries to bill a new account by calling createInvoice directly with a line item and an amount, but no customer parameter — it assumes Stripe will create one implicitly, the way some other systems do. Stripe rejects the call outright: the customer parameter is required unless the invoice is a revision of an existing one via from_invoice. The fix is a createCustomer call first — even a minimal one with just a name and email — and using the returned customer ID on every subsequent createInvoice call for that account.

Frequently Asked Questions

Not for a new account. Stripe's Create an Invoice endpoint requires a customer parameter and raises an error if the ID is invalid or missing, unless the invoice is a revision of an existing one via from_invoice.

charge_automatically attempts payment against the customer's default source once the invoice is finalized. send_invoice emails the invoice with payment instructions and a due date instead of attempting a charge.

No — only on one that's currently open or uncollectible. A paid invoice can't be voided; it needs a refund or credit note instead.

Sources

Related