Q. Does taking a shot for travel invalidate a fast?
A. No.
Taking a shot for any reason upon the body would not invalidate the fast.
The consequences of taking a shot in the mouth may cause bleeding. The bleeding may go down the throat, thus necessitating a makeup.
Allah Certainly knows Best.