That tag is not supported. If you want, we you can submit a support ticket sending us super admin account of your site. I will ask my dev to modify code to support that tag for yiu
Or if you know basic coding, you can modify it yourself :
1. Open components/com_osmembership/helper/helper.php
2. Find the function generateInvoice
3. Inside that function, you will see code like this:
Code:
$replaces['phone'] = $row->phone;
4. Add the follwing line of code after that line:
$replaces = $row->membership_id;
After that, you can use [MEMBERSHIP_ID] tag in the invoice
Tuan