Is there any way to add "invoice download link" in email templates

I want to add a link for downloading the invoice on email notification that customer receiving

2 Likes

Hi Shubham (@shubhammishra4), welcome to the VTEX community.

After an order goes from “order confirmed” to “payment approved”, it is necessary to send the order invoice manually or API according to the guidelines described in the VTEX Orders documentation - Invoicing an order.

Once the invoice is sent to the order, the order status advances to “Order Invoiced”, triggering the template of the same name in the VTEX Message Center, where you can use the variable “{{package.invoiceUrl}}” to generate a link to the invoice sent.

Example:

<a href="{{package.invoiceUrl}}">Click here to download invoice</a>

See ya!

Thanks for the solution.

1 Like