0 votes


how is it possible to add the invoice ID to the email subject? Which variable identifier {{ VARIABLE }} is the correct one to output the invoice id?
I cant find the identifier in the list of the variables when I change the title in the editor.

Thank you.

asked by Rolf FISCHBACHER (120 points)

1 Answer

0 votes

You can access all the variables on the completion via the TWIG Syntax

So for the invoice id you have the following options:

  1. {{ completion.lineItemVersion.transaction.merchantReference }} will provide you with the merchant reference
  2. {{ completion.lineItemVersion.transaction.invoiceMerchantReference }} will provide you the invoice reference

Pleas note this is only available if you have set them on the transaction object.

If you want to have this as email subject you will then have to set this in the Email Configuration (Email Setup > Create New Template). In the subject line you can use the TWIG syntax mentioned above.

answered by Patricius THUINER (1.3k points)