Account Id

Blizzard uses a Blizzard 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 BattleTag.