This does work with a individiual account but not for Enterprise account. as @mauidev wrote, the login mask has been changed and it looks like the login mask of individual accounts. Doing the same exact thing on both works for individual but not for enterprise accounts.
I´m getting:
There was an error while trying to log in: Provide a properiy
configured and signed bearer token, and make sure that it
has not expired. Learn more about Generating Tokens for
API Requests https://developer.apple.com/go/?id=api-
generating-tokens