Usually, you will need to enter the bonus or promo code at the point of making your first deposit or registering your personal details. It is made quite clear, but do double check your entry for accuracy, as you do not want to miss out because you have placed a letter or number in the wrong place.
An online casino will inform you if you have entered an incorrect or invalid promo code in most cases.