The PNR = [Passenger Name Record] = [entry in the computer's database corresponding to your ticket] will surely contain the fare basis. The Record Locator, the 6- or 7-character sequence used to identify your PNR (and often itself refered to as the PNR) eg. T1Z4FQ will not itself contain the fare basis code.