Skip to content

Magento 2.4.5 – get order id in transactional email html

How can I get the actual order id (not increment id) in a transactional email?
I have tried the following but none of them return the order id:

{{var order.getId()}}
{{var order.getOrderId()}}
{{var order.id()}}
{{var order_id}}
{{var $order.id}}

Thanks

Magento 2.4.5