The problem is providing the apple id Directly. You need to id number of apple id.
xcrun altool --list-apps -u ${APP_STORE_USERNAME} -p ${pwd}
After running the command you will get the following data.
provide the apple id from that result matches with the bundle id.