Discount codes must be presented at checkout to be valid.  Discount codes are not valid on previous purchases.  Only one discount per customer per transaction.  Store credits cannot be combined with discounts.