Products · Delivery V1

Email delivery

Get the files immediately by secure download, with a copy by email.

Version 1 · Email through ResendDesigned, not builtModule 8 of 15

ProductRequirement EPICSections

Requirement EPIC

Epic
MVP1 · E7 · Success, download and email
Goal
the user gets their files immediately and has a record by email.
Stories in this module
3

DOCFLOW-V1-E7-01 Success page

  • AC1On return from Stripe, the page polls the order status (up to 30 seconds) and shows "Confirming payment…" until the webhook marks it paid.
  • AC2Once paid, the "Download JSON" and "Download CSV" buttons work.
  • AC3If confirmation takes over 30 seconds, it says "We'll email you when it's ready", and the email still arrives.

DOCFLOW-V1-E7-02 Secure downloads

  • AC1Each download checks on the server that the user owns the document and the order is paid, then returns the file built from Review's latest values, with the right filename and Cache-Control: no-store. A generated result is a few kilobytes and never stored, so it is returned directly; stored files such as uploads still move only by short-lived presigned links.
  • AC2delivery.downloaded is audited.

DELIVERY-V1-E7-03 Email delivery

  • AC1When the order is paid (triggered by the webhook, not the browser), an email is sent via Resend within 60 seconds. It contains the document name, amount paid and a link to /documents/{id}/success, not a raw S3 link.
  • AC2A send failure retries 3 times with backoff and records the message's status. A permanent failure shows "Email couldn't be sent" on the success page.
  • AC3The email passes SPF/DKIM for the sending domain (Resend domain verification for 01scale.com), with plain-text and HTML versions.