Hi this is what it says on the Gov website
https://www.gov.uk/healthcare-immigrati ... eed-to-pay
However not sure how to get the number without paying
When you’ll need an IHS reference number
You still need to use the payment service to get an immigration health surcharge (IHS) reference number but you won’t need to pay if:
you’re applying for a Tier 2 (Intra-company Transfer) visa (or you’re their dependant)
you’re a child under 18 who has been taken into care by a local authority
you’re the dependant of a member of the UK’s armed forces
you’re the dependant of a member of another country’s forces who is exempt from immigration control
you’re a relevant civilian employee employed by North Atlantic Treaty Organisation (NATO) or the Australian Department of Defence in the UK (or you’re their dependant)
The service will tell you that you don’t have to pay anything and will give you your healthcare surcharge reference number for your application.
You’ll be able to use the National Health Service (NHS) even if you’re exempt from paying.