Chances are the code is working just fine.  Some codes have "Rules".  Make sure you are following the rules for the sale.  The rules will be in the email or Social Media post where you found the code.