With the Fakturoid app, you can insert a direct link to the generated invoice into any Shopify email notification — for example, the order confirmation sent automatically after a customer places an order.
Here's how your email could look:
💡 TIP: Want to set this up without the hassle, including visual adjustments to match your store's design? Take advantage of our agency services and let us handle the integration for you!
Step 1: Copy the invoice link code
Copy the following code snippet:
<!-- Invoice Fakturoid Code START -->
{% assign ver_string = order.id | append: shop.permanent_domain %}{% assign hmac_verification = ver_string | hmac_sha256: shop.metafields.ds_fakturoid.display_invoice %}
<a href="https://fakturoid.digismoothie.app/dashboard/display-invoice?id={{order.id}}&shop={{shop.permanent_domain}}&hmac_verification={{hmac_verification}}" class="Polaris-Button Polaris-Button--pressable Polaris-Button--variantPlain Polaris-Button--sizeMedium Polaris-Button--textAlignCenter">View Invoice</a>
<!-- Invoice Fakturoid Code END -->
Step 2: Open the email editor in Shopify
Go to your Shopify Settings → Notifications
Click on Customer notifications
Select the Order confirmation email (or any other notification you'd like to update)
Click Edit code
Step 3: Insert the code into the email body
Paste the code from Step 1 into the email body at the position where you want the invoice link to appear.
⚠️ Please note: Email template editing requires some familiarity with HTML/Liquid. If you're unsure, we're happy to help!
Troubleshooting: 401 Unauthorized error
In some cases, clicking the invoice link right after the order is placed may result in a 401 Unauthorized error. This is caused by email caching on Shopify's side. Simply wait 3 hours and try again — the link should work correctly by then.
Alternative Solution: Automatically Send the Invoice Link and PDF Attachment
If you'd prefer a fully automated approach, you can set up the Fakturoid app to automatically send customers a dedicated email that includes both the invoice link and the invoice as a PDF attachment.
This is especially useful if you want to make sure customers always have easy access to their invoice without modifying Shopify's default email templates.





