Skip to main content

How download links work

Links in Shopify’s emails, on the order status and thank you pages, and in My documents all work the same way: nothing is stored ahead of time. When someone opens the link, Foliant makes the PDF from the template and the order as they are at that moment.
  1. Foliant fetches the order from Shopify.
  2. It makes the document with the template (the published version, if your store requires publishing template changes).
  3. The PDF opens in the browser, named after the order.
Because the PDF is made on demand:
  • An order that changed (edited, partly refunded, fulfilled) shows its current state, though the change can take a few minutes to show.
  • A change to the template shows up in new downloads within a few minutes.
  • If another template is now used for that order (for example, because of the template’s Who gets this template? rules), the link gives that document.

Document numbers

Invoices, credit notes and quotes with numbering turned on get their number the first time the document is downloaded, printed, exported or emailed — whichever comes first — and keep it. A customer opening the link can be that first time. A locked invoice is always delivered exactly as it was issued. See When a document gets its number.

Credit notes

In the Order refund email, the link opens the credit note for that refund. On the order status page with the customer portal on, and in My documents, each refund gets its own credit note.
  • Renaming a template or changing the Link text doesn’t break links already sent. Only new emails show the new text (after you paste the new code).
  • Removing a delivery in Foliant doesn’t break links already pasted in Shopify’s emails: they keep downloading the PDF. Remove the code from the email in Shopify too.
  • Deleting a template stops its links working.

Good to know

  • Customers opening their own links don’t count toward your plan’s printed orders, and don’t mark the order as printed. Emails Foliant sends do count.
  • Your own previews (such as Open a PDF for your latest order) don’t count as a use of a link and don’t make it Live.
  • If a customer asked for their data to be erased, their locked documents are no longer handed out through links.
  • In My documents and on the order status page with the portal on, links are made for that signed-in customer and expire after an hour; the page refreshes them. See The My documents page.