There are special requirements regarding the format of the authorization code. Please consider the following restrictions, if you want to assign a new authorization code to a .COM domain:
Minimum 8 characters
having at least one (1) numeric,
one (1) alphabetic, and
one (1) special character
You may generate a valid random auth code by adding this parameter to the ModifyDomain command: