Lifecycle Outcomes
| Store event | Invoice result |
|---|---|
| Order accepted | A durable synchronization job creates or reconnects the one linked Invoice. An enabled Storefront Invoice action can finalize and deliver an unpaid document. |
| Verified payment | One idempotent payment is allocated. The Invoice becomes partially paid or paid from its balance, then enabled paid-document actions are queued. |
| Cancellation/expiry | An eligible unpaid Invoice is voided through the lifecycle service. Paid or partially paid documents are never silently voided. |
| Verified refund | The canonical payment ledger records the refund before Storefront shows the refunded state and sends evidence. |
| Dispute | The 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.