How can I sell domains online, automatically?

You will need to upgrade your eNom reseller account to the API version. This will provide you with Registry Rocket which automatically registers domain names.