NikkiThompson A few things to check beyond the obvious ones. First — is the discount scoped to a specific customer group or individual customers? If so, make sure the customer account you're testing with is actually in that group. The "invalid code" message can show up when the code exists but the logged-in customer doesn't meet the eligibility criteria.
Also check the "Available In" settings if it's a product-level discount — if the discount is restricted to specific products or categories and your cart doesn't contain any of those items, it'll show as invalid even though the code itself is correct.