For domestic flights, it's 4 hours prior and for international flights it varies from airline to airline, however 24 hours is recommended.