{{var order.getShippingAddress().getVatId()}}
How to show the VAT number in transactional emails?
You can use the direct call to print the VAT number in any place you want within the transactional email: