Although federal regulations specify that these tickets must be purchased at least seven days in advance to be eligible for a refund, some airlines will allow you to cancel within 24 hours even if your travel dates are closer. Be aware that these rules apply when purchasing your ticket directly from an airline only.