E. Cobham Brewer 18101897. Dictionary of Phrase and Fable. 1898.
Thats the ticket or Thats the ticket for soup. Thats the right thing. The ticket to be shown in order to obtain something. Some think that the word ticket in this phrase is a corruption of etiquette.
Whats the ticket? What is the arrangement?
Well, said Bob Cross, whats the ticket, youngster? Are you to go aboard with us?Captain Marryat.