You can fill it out within 72 hours before your departure. A QR code will be issued, and you show it on arrival.