Storefront Invoice and Payment Lifecycle

Understand how Online Store orders use canonical Invoices, payments, refunds, PDFs, and delivery evidence.

Last updated

On this page

Authoritative Records

Online Store locks order items, currency, tax, shipping, discounts, and total at checkout. Invoice Management creates the linked canonical Invoice from that immutable snapshot.

Invoice Management remains authoritative for document numbering, lifecycle state, payment allocation, refund evidence, PDF rendering, attachment limits, and secure-link fallback.

For a linked order, the verified Invoice transition updates Storefront once. Duplicate provider callbacks reconcile the same payment, refund, or dispute receipt instead of creating a second customer event.

Lifecycle Outcomes

Store eventInvoice result
Order acceptedA durable synchronization job creates or reconnects the one linked Invoice. An enabled Storefront Invoice action can finalize and deliver an unpaid document.
Verified paymentOne idempotent payment is allocated. The Invoice becomes partially paid or paid from its balance, then enabled paid-document actions are queued.
Cancellation/expiryAn eligible unpaid Invoice is voided through the lifecycle service. Paid or partially paid documents are never silently voided.
Verified refundThe canonical payment ledger records the refund before Storefront shows the refunded state and sends evidence.
DisputeThe original payment evidence remains; the Invoice is marked disputed for operator review.

Settings Precedence

Online Store > Automations controls which Storefront event sends to which channel and when. Invoice Settings controls the document template, fiscal safeguards, maximum attachment size, and secure-link behavior.

An explicit Storefront event action, including an action left off, prevents a second hidden Invoice default for that same event. Global transport, consent, and fiscal controls always remain effective.

FAQs & Troubleshooting

Can an admin mark a partial payment or refund from the Storefront status dropdown?

No. Use the verified Invoice payment/refund workflow so allocations, balances, and customer evidence remain correct.

What if payment completes before Invoice synchronization?

The durable reconciliation job creates the Invoice and idempotently records the already-verified Storefront payment without duplicating it.

Troubleshooting Checklist

  • If Invoice sync is Pending or Failed, keep the Storefront worker running and review the order dossier. A customer message is not labelled paid until payment verification succeeds.
Next ArticlePayment Settlements and Payout Reconciliation