AliExpress rarely says exactly why a code was refused. Almost always it is one of these reasons.
The order is below the minimum
A "$8 off $45" code needs at least $45 of products after store discounts, and shipping does not count. Add something small or choose a code with a lower minimum.
The code has run out
Every code has a limited budget. The big ones are used up in the first hours of a sale, sometimes in minutes. If a code from a fresh list does not work, try the next one: smaller codes last longer.
The code is for another country
Most codes work only for the delivery country they were issued for. Check the country in your delivery address — not the one in the site's language menu — and use the codes for that country.
The code has already been used
Many codes work once per account. If you applied it to an earlier order, even one you cancelled, it may already count as used.
The product is excluded
Phones, gift cards and some brands are often excluded from general codes. Store coupons on the product page usually still work.
The quickest way out
Instead of guessing, let the ClinkSave extension try every code you added to your account. It shows the result of each one — applied, no change or refused — and leaves the best. The codes that keep failing for everybody move to the end of the list on the coupons page.