I want to upload my app to testflight. when I upload the app Xcode shows this error:
your account does not have permission to create ios distribution
Every thing was good with my account, no permission changed as already it was same email id used to purchase the account. I fixed this problem by removing the account from Xcode preferences and again added it. What i did was immediately added credentials in Xcode preferences right after purchasing the account. I should have to wait for Apple to process the order.
Based on your comment "Yes, we have a developer account for Team" I am guessing that what you have is an Enterprise Developer account. If you have a Enterprise DA you cannot upload to the apple store/test-flight. You will need to create a personal developer account for that. Enterprise accounts are only good for in house testing and not for external. That's why you are getting this error.
Perhaps your iTunes Connect account does not have the correct role?