Selling movie codes and if it is legal is a bit complicated. In theory, according to the doctrine of the first sale, you should not sell a DVD for profit, but movie codes generally work differently. Since digital movie codes are found in the DVD case, you could sell these as they are separate items to the DVD disk itself. Therefore, you would not technically be breaking any laws by selling movie codes.