You can buy online tickets up to a few minutes before first using them. The one exception is when you buy a new KeyCard, which is sent out by post. This must be done at least five days before the validity period of the ticket begins.