Sounds like you found your own answer.
That's one way - call up the carrier and tell them your exact itinerary and ask for those fare codes if that's important. Otherwise - just look go to the website and ask for the lowest price.
Most people are concerned about Fare Basis for (changines, flexibility, ugradeability, elite perks, etc) otherwise other people want lowest price.
Welcome to FT!