Udemy does have an affiliate program. Here is some information to help you get started as a Udemy Affiliate.
I personally use Teachable for Ballen Academy where my courses are. I chose teachable because of it’s generous affiliate program and the fact that it includes an affiliate program for my students where they handle the payouts. Here are some details about the Teachable affiliate program.