Connect affiliate link to custom domain bought from Cloudflare

Hi guys. I purchased a domain from Cloudflare and I’m having the hardest time connecting my affiliate link to my custom domain and have it reflect the custom domain. I keep getting error 522 and then 1000.

If I can use CF as hosting and it already has the DNS set why does it keep failing? also not sure what IP address from Cloudflare I’m suppose to use.

Please help.