Account Id

Blizzard uses an Battle.net Account Id to uniquely identify a particular user within a particular partition, and is a 64 bit unsigned integer.

You should use the accountId to link users into your applications wherever possible, as all other data associated with an account can change, including email addresses and battletags.