How to get a list of RBD Code/ CoS mapping to Cabins for an airline?

//ads -- adsterra.com -- native banner
?>
I'm trying to put some RBD codes into ITA matrix and look for a flight in a particular RBD code. My problem is that I can't seem to find a list of RBD Code to Cabin mapping for an airline for a specific routes. If I could get a list of all the RBDs for an airline, I'm hoping to search for the RBD which is the cheapest in the cabin that I'm trying to book a seat on.
Is it possible/Would this logic work?
Pictures about "How to get a list of RBD Code/ CoS mapping to Cabins for an airline?"



What is RBD in IATA?
RBD means the booking class of a flight, based on the Reservation Booking Designator (RBD). The RBD is the code used in reservation transactions to identify the booking class. w.What is fare basis in Amadeus?
A fare basis code (often just referred to as a fare basis) is an alphabetic or alpha-numeric code used by airlines to identify a fare type and allow airline staff and travel agents to find the rules applicable to that fare.What is class W on a flight?
W - Economy/Coach Premium. X - Economy/Coach Discounted. Y - Economy/Coach. Z - Business Class Discounted.Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: RODNAE Productions, RODNAE Productions, RODNAE Productions, RODNAE Productions