When you cast a spell as a Bonus Action, and you take the Cast a Spell action (either as a primary action, or an Action Surge action), that spell can only be a Cantrip with a casting time of 1 Action. When casting a spell as a Reaction, that limitation does not apply.