FlyerTalk Forums

FlyerTalk Forums (https://www.flyertalk.com/forum/index.php)
-   Mileage Run Discussion (https://www.flyertalk.com/forum/mileage-run-discussion-627/)
-   -   How to specify the booking code on ITA (https://www.flyertalk.com/forum/mileage-run-discussion/327261-how-specify-booking-code-ita.html)

CalVol Feb 10, 2010 10:50 pm

This is a VERY helpful thread. Thanks^

CV

Romelle Feb 11, 2010 7:58 am

Well, as usual, when I post something I end up learning also. I really thought the space between the airport code and the double colon was necessary. I'd found something that worked, and just stuck to it.

dstan and mrredskin - thanks!

Guess you can teach an old dog new tricks!

Romelle

straightahead Oct 16, 2010 8:14 am

Thanks for the info. One of the most valuable threads!

igopogo Sep 20, 2011 7:48 am

Bah, I know I've done this before...but how do I combine this with the alliance tag?

txrandom Sep 20, 2011 8:52 am


Originally Posted by igopogo (Post 17140171)
Bah, I know I've done this before...but how do I combine this with the alliance tag?

/alliance skyteam|star-alliance|oneworld

Choose one!

igopogo Sep 20, 2011 9:57 am


Originally Posted by txrandom (Post 17140524)
/alliance skyteam|star-alliance|oneworld

Choose one!

Yes, got that...but when I try to combine this with the booking code, I always get an error. Can you give me a combined code?

txrandom Sep 20, 2011 10:08 am


Originally Posted by igopogo (Post 17140889)
Yes, got that...but when I try to combine this with the booking code, I always get an error. Can you give me a combined code?

Ahh, I'm not sure how to do that...sorry. I'm curious now if it's possible.

ITA Hacker Sep 20, 2011 8:49 pm


Originally Posted by igopogo (Post 17140171)
Bah, I know I've done this before...but how do I combine this with the alliance tag?

Just separate the commands with a semicolon:

/ f bc=y; alliance oneworld

igopogo Sep 21, 2011 7:23 am


Originally Posted by ITA Hacker (Post 17144508)
Just separate the commands with a semicolon:

/ f bc=y; alliance oneworld

Thank you, excellent!

ozon78 Dec 3, 2011 6:56 am

mixed class booking: advice
 
hi all: thanks for helpful tips; followed various suggestions/'formulas' on here but still having difficulties finding a mixed booking BCN-GRU on SQ in C; second sector GRU-EZE on JJ in Y
Use multi-city and enter:

From BCN :: sq+ / f bc=C|bc=D|bc=I|bc=R
To: GRU

From GRU :: jj+ / f bc=Y|bc=B|bc=M|bc=H|bc=Q|bc=X|bc=N|bc=V|bc=W
To: EZE

Result: 'no flights found' although when searching separately - flights are available (C on SQ and M on JJ) - any advice?

sadiqhassan Dec 3, 2011 1:59 pm

It's possible that the 2 fares you are finding (the SQ and the JJ fares) are not combinable on one ticket. If they are, try:



From BCN :: sq+ / f bc=C|bc=D|bc=I|bc=R
To: GRU

From GRU :: JJ+
To: EZE

and select class as economy.

bucktown5 Dec 4, 2011 7:48 pm


Originally Posted by CalVol (Post 13368716)
This is a VERY helpful thread. Thanks^

CV

Outstanding.....know more now than ever before about ITA^

dcpdxtrans Dec 5, 2011 4:55 pm

I'm sure others have noticed but ITA software shows tickets that I cannot find anywhere else at discounted prices. Last Aug, purchased ticket PDX-LAX-GRU-FLN-GRU-IAD-PDX for a little over $2k. Today, I was looking at PDX-FLN and could not find anything less than $1300 with UA around $1800. Looked at ITA and found ticket for $1067. Haven't seen it that cheap in years. Gave it to a travel agent and voilla. Wondering if others have had the same experience??

stdatwmu Dec 6, 2011 7:36 am


Originally Posted by dcpdxtrans (Post 17572402)
I'm sure others have noticed but ITA software shows tickets that I cannot find anywhere else at discounted prices. Last Aug, purchased ticket PDX-LAX-GRU-FLN-GRU-IAD-PDX for a little over $2k. Today, I was looking at PDX-FLN and could not find anything less than $1300 with UA around $1800. Looked at ITA and found ticket for $1067. Haven't seen it that cheap in years. Gave it to a travel agent and voilla. Wondering if others have had the same experience??

I've used CheapAir.com to snag routings I've found on ITA before, especially if they're multi-airline.

jackal Dec 10, 2011 4:08 am


Originally Posted by stdatwmu (Post 17575504)
I've used CheapAir.com to snag routings I've found on ITA before, especially if they're multi-airline.

Yeah, I've seen them come up with some decent results. Seems like their fare search engine does some pretty in-depth searches for some creative route/fare combinations.

Their downside appears to be the booking fee, but if it's the only site that will allow ticketing a particular fare combination, it's probably be worth it.

Not talked about a ton on FT, but this thread touches on it: http://www.flyertalk.com/forum/onlin...ine-sites.html

serfty Dec 20, 2011 9:57 pm


Originally Posted by JanoSicek (Post 11162324)
Another good shortcut is using negation
Instead of /f bc=X|bc=Y

if you wish just to EXCLUDE cheap booking classes, you can do this:

/f ~bc=W&~bc=V&~bc=N

and then you get no W,V,N in your results

Most used by me, as those classes earn me just 50%

I'm trying to do similar with Matrix-2

"/f ~bc=O" works to exclude O class but I want to exclude several.


/ f ~bc=O&~bc=N~&bc=Q&~bc=E
returns an error:

"The search failed with QPX Warning. Illegal faring spec: missing Boolean connective"

What is the correct syntax?

[edit]
I see this, but it really does not help:

Originally Posted by ITAGiRL (Post 16558930)
In response to TrayFlowInUK's question dated June 13, 2011, there is a way to complete the same types of inquiries using our advanced routing codes. The reason it did not work for him the first time is because the syntax has changed from that which the original user posted in 2004. To complete these types of searches, please use the following:

To constrain results to return YUP fares only
Using BOS as your Departing from point, enter the following syntax in the advanced routing code field "/ f ..yup" (without the quotes). Using LAX as your Destination point, enter the following syntax in the advanced routing code field "/ f ..yup" (without the quotes). Enter your preferred dates, times, number of travelers, etc. and hit search. Results should appear shortly.

To constrain results to return either YUP or F fares on any airline and between any points
Using BOS as your Departing from point, enter the following syntax in the advanced routing code field "/ f (.bos+lax.)|(..yup|..f)" (without the quotes). Using LAX as your Destination point, enter the following syntax in the advanced routing code field "/ f (.bos+lax.)|(..yup|..f)" (without the quotes). Enter your preferred dates, times, number of travelers, etc. and hit search. Results should appear shortly.

[/EDIT]

ITA Hacker Dec 21, 2011 4:28 am


Originally Posted by serfty (Post 17665444)
I'm trying to do similar with Matrix-2

"/f ~bc=O" works to exclude O class but I want to exclude several.


/ f ~bc=O&~bc=N~&bc=Q&~bc=E
returns an error:

"The search failed with QPX Warning. Illegal faring spec: missing Boolean connective"

What is the correct syntax?

[edit]
I see this, but it really does not help:
[/EDIT]

Looks like a simple typo, after the "N" you have the "~" and the "&" reversed. If you swap those two characters it works as desired.

serfty Dec 21, 2011 5:40 am

Thanks for that. :doh: !!!

MatthewLAX Aug 7, 2012 7:45 am

Trying to search for a Delta M fare--used just do DL+ f / bc=m on line two but now I get an error. Am I doing something wrong?

I so miss Matrix1.

CokeandTaco Aug 7, 2012 9:20 am


Originally Posted by MatthewLAX (Post 19074616)
Trying to search for a Delta M fare--used just do DL+ f / bc=m on line two but now I get an error. Am I doing something wrong?

I so miss Matrix1.

The forward slash belongs in front of the f

DL+ / f bc=m

MatthewLAX Aug 7, 2012 4:17 pm


Originally Posted by CokeandTaco (Post 19075148)
The forward slash belongs in front of the f

DL+ / f bc=m

Duh. Thanks! :)

DevilsX Aug 13, 2012 3:19 am

Ooops wrong thread.

zencat Sep 1, 2012 8:50 am

The ITA wiki shows how to specify booking code/airline pairs, as follows:
Code:

/f lh..f,aa..y
But this syntax is rejected. I'm not surprised, it's very strange to have two dots like that.

What's the correct way to do this?

ITA Hacker Sep 1, 2012 12:02 pm


Originally Posted by zencat (Post 19234500)
The ITA wiki shows how to specify booking code/airline pairs, as follows:
Code:

/f lh..f,aa..y
But this syntax is rejected. I'm not surprised, it's very strange to have two dots like that.

What's the correct way to do this?

I guess we don't support the comma anymore, but this works if you replace the comma with a vertical bar:

Code:

/f lh..f|aa..y

zencat Sep 1, 2012 1:43 pm


Originally Posted by ITA Hacker (Post 19235340)
I guess we don't support the comma anymore, but this works if you replace the comma with a vertical bar:
Code:

/f lh..f|aa..y

Thanks. That's accepted - and also I can replace the bar with an ampersand to logically AND them. Although it does not seem to be getting correct results. E.g. The AA classes: G,Q,N,O,S are only worth half the miles traveled, so I tried excluding them:
Code:

LHR :: o:aa,ba+ / f ~aa..o&~aa..g&~aa..q&~aa..n&~aa..s
JFK

ITA accepted this syntax, but then it still shows flights with booking code "O" anyway. (edit: my mistake.. AA class O flights appeared, but they were not operated by AA, so it looks correct).

Edit again (sorry).. It's really not working. I tried the following:
Code:

FRA :: f+ / f ~ua..M&~ua..E&~ua..U&~ua..H&~ua..Q&~ua..V&~ua..W&~ua..S&~ua..T&~ua..L&~ua..K&~ua..G&~ua..N
ORD :: f+ / f ~ua..M&~ua..E&~ua..U&~ua..H&~ua..Q&~ua..V&~ua..W&~ua..S&~ua..T&~ua..L&~ua..K&~ua..G&~ua..N

That should eliminate all the UA booking codes that award 100% of the miles (so only flights that award 125-200% should be found). However, this results in "K" class flights that are operated by United. Why didn't "~ua..k" work?

Thinking that the ampersand doesn't work, I simplified the query:
Code:

FRA :: f+ / f ~ua..K
ORD :: f+ / f ~ua..K

Still, class K United flights are found despite the negation.

ITA Hacker Sep 1, 2012 2:38 pm


Originally Posted by zencat (Post 19235793)
Code:

FRA :: f+ / f ~ua..M&~ua..E&~ua..U&~ua..H&~ua..Q&~ua..V&~ua..W&~ua..S&~ua..T&~ua..L&~ua..K&~ua..G&~ua..N
ORD :: f+ / f ~ua..M&~ua..E&~ua..U&~ua..H&~ua..Q&~ua..V&~ua..W&~ua..S&~ua..T&~ua..L&~ua..K&~ua..G&~ua..N

That should eliminate all the UA booking codes that award 100% of the miles (so only flights that award 125-200% should be found). However, this results in "K" class flights that are operated by United. Why didn't "~ua..k" work?

These are the fare basis codes, not the booking codes. So you're prohibiting fares called "N" and "K" and so forth, which actually don't exist, so the restriction doesn't do anything.

If you want to control booking classes, you want something more like "/f !bc=M&!bc=E..."

You can also use wildcarded fare basis codes; the industry uses a dash to indicate "any sequence of characters", and usually (but not always) the first letter of the fare basis corresponds to the booking code that will be used: "/f !ua..M-&!ua..E-&..."

zencat Sep 1, 2012 2:45 pm


Originally Posted by ITA Hacker (Post 19236056)
These are the fare basis codes, not the booking codes. So you're prohibiting fares called "N" and "K" and so forth, which actually don't exist, so the restriction doesn't do anything.

If you want to control booking classes, you want something more like "/f !bc=M&!bc=E..."

Ah, thanks for pointing that out. I don't know the difference, but it seems it's booking codes that are of interest.

What you're suggesting would seem to negate booking code "M" and "E" for all airlines. But they have different meanings for each airline. E.g. class K on UA is worth 100% of the mileage, but class K on LH is only worth 50%.

So suppose I want the search to be open to all airlines, but I want it to exclude the booking codes M and E of LH, but allow M and E for all other airlines. How would that be written?

(edit) I'm quite confused about the difference between "fare basis codes" and "booking codes". The UA link in my post calls them "fare classes", and shows fare class M and E as being worth 100% mileage credit. "Booking code" is not in the FT glossary, but "fare basis" is, and fare basis is described as what I thought a booking code was.

joespo Oct 19, 2013 6:41 pm


Originally Posted by zencat (Post 19236088)
What you're suggesting would seem to negate booking code "M" and "E" for all airlines. But they have different meanings for each airline. E.g. class K on UA is worth 100% of the mileage, but class K on LH is only worth 50%.

So suppose I want the search to be open to all airlines, but I want it to exclude the booking codes M and E of LH, but allow M and E for all other airlines. How would that be written?

I don't think this is possible... I'd like to do the same thing, e.g.

Airlines: Air China OR United Airlines
Booking Class: Exclude N from Air China, but allow N for United Airlines ...

Slitty Nov 11, 2013 9:17 pm


Originally Posted by zencat (Post 19236088)
(edit) I'm quite confused about the difference between "fare basis codes" and "booking codes". The UA link in my post calls them "fare classes", and shows fare class M and E as being worth 100% mileage credit. "Booking code" is not in the FT glossary, but "fare basis" is, and fare basis is described as what I thought a booking code was.

I only have a surface understanding of these matters, but will share what little knowledge is at my disposal. An example if probably the best way to illustrate the difference:

Suppose we search a one-way itinerary between Vancouver (YVR) and Xiamen (XMN) on December 11th, 2013. One of the itineraries available to us is AC3 to Tokyo (NRT), followed by NH935. The fare basis for this itinerary is T7HXCNO. This is Air Canada's rules and restrictions governing this fare - since they are the carrier effectively selling you passage between YVR and XMN. As generally is the case, the first letter of the fare basis code corresponds to the booking class for flight AC3: T. However, the booking class for the NH935 leg is K. And as far as frequent flyer programs are concerned, it is the booking class that matters. So in determining how many miles you would be awarded for flying this itinerary, you would consider YVR->NRT on AC booking class T and NRT->XMN on NH booking class K.

sokolov Feb 16, 2015 3:00 am

How do I exclude a booking class from a specific multi-leg-itinerary?

I know I want to fly from ORD on UA with two stops to ATL, and I want to exclude booking class N.

If I search with "UA UA UA", I get the required routings, but many includes a leg in N. If I search with "/ f ~bc=N" I only get direct and one-stop routings.

How do I combine the two restrictions? I've tried many variations, but all result in "bad specification" error messages. TNX

hillrider Feb 16, 2015 3:19 am

I am not sure what you're entering, but specifying "UA UA UA / f ~bc=N" returns exactly what you're looking for when I use it.

BigWilly Feb 18, 2015 5:42 pm

searching in fare rules?
 
Is it possible with ITA to search on the textual contents of the fare rules? fi if i'm looking for flights for add-ons i'd need something like "add-ons permitted" in cat 10..

Category 10: Combinability
FARES MAY BE COMBINED ON A HALF ROUND TRIP BASIS WITH ANY
FARE FOR ANY CARRIER IN ANY RULE AND TARIFF TO FORM
SINGLE/DOUBLE OPEN JAWS/ROUND TRIPS/CIRCLE TRIPS.
ADD-ONS PERMITTED.

sokolov Feb 19, 2015 2:41 pm


Originally Posted by hillrider (Post 24359002)
I am not sure what you're entering, but specifying "UA UA UA / f ~bc=N" returns exactly what you're looking for when I use it.

Ah! Thank you. According to the official descriptions, "F" specifies a single flight. I don't want a single flight, so I tried without the F. And that didn't work.

LHR*G Sep 20, 2015 12:58 pm

Syntax for multiple airlines
 
Hello

I think this should work, but it doesn't:

/ f os..y|os..b|os..m|os..u|os..h|os..q|os..g|ca..y|ca ..b|ca..m|ca..h|ca..k|ca..w|ca..l

(I am wanting to restrict to 100% earning on OS or CA - but no results are returned - not an error)

Any ideas?

Thanks

LHR*G

CabinCaptive Sep 21, 2015 8:03 am

Is it worth making this thread into a WikiPost? There is a lot of useful stuff in here, but it's rather difficult to pull it all out. It also seems that ITA doesn't really keep their own page updated correctly...

Llaskay Nov 1, 2015 7:36 pm


Originally Posted by SeattleFred (Post 2894353)
I've already asked him to add a same-day-roundtrip option to the month-long search feature. I've also asked him for a lowest-fare-to-anywhere search, with an option to specify the minimum distance. He replied that these were on the ITA to-do list, but he would not provide a timeframe for completion.

I willl pass on further requests, but let's first come up with a priority list.

As for your particular requests, you might be interested in CoMETS, the cross platform standalone database application that I've been developing. It's approaching beta release; for a preview, I've posted some screen shots. If you have feature requests for CoMETS, this would be a great time to let me know. Please also let me know if you'd be interested in beta testing CoMETS.
---------
CoMETS update (18 Feb 2005): CoMETS Beta 1 is now available for both Mac OS X (password: ftcomets) and for Windows (no password required). When I find a little time, I will post a short movie demonstrating CoMETS' functionality and ease of use. When I find a little more time, I will release Beta 2. FWIW, I've been using Beta 1 for several months on my PowerBook and it has been rock-solid.

UPDATE: The CoMETS Movie is finally here. Check it out to see how CoMETS will give you maximum info for minimum effort.


moorw003 Nov 14, 2016 8:03 am

. wrong thread

Fitch Apr 19, 2017 7:18 am

I have a query about ITA Matrix switch parameters, hope this is the best place for it !

I have formulated my query as follows:

Cairo International, Egypt (CAI)

LHR MIA LAX / alliance oneworld; f ~bc=Y

HNL

LAX MIA LHR / alliance oneworld; f ~bc=Y

Business Class or higher


which returns a ton of flights, but the cheapest ones are all BA Y for the first and last sectors (LHR-CAI-LHR) even though I specified "~bc=Y"

Does negation not work for booking class ? Is my syntax wrong ? Is the code wrong ?

Answers on a postcard please :)

flylonghaul Apr 19, 2017 7:36 am


Originally Posted by Fitch (Post 28199908)
I have a query about ITA Matrix switch parameters, hope this is the best place for it !

I have formulated my query as follows:

Cairo International, Egypt (CAI)

LHR MIA LAX / alliance oneworld; f ~bc=Y

HNL

LAX MIA LHR / alliance oneworld; f ~bc=Y

Business Class or higher


which returns a ton of flights, but the cheapest ones are all BA Y for the first and last sectors (LHR-CAI-LHR) even though I specified "~bc=Y"

Does negation not work for booking class ? Is my syntax wrong ? Is the code wrong ?

Answers on a postcard please :)

Likely an availability issue for the dates that you are searching for.
When there is no availability in I class (assuming thats the deal you are searching for) it will revert to Y class to maintain the price, if it bumps to J or C etc the price will increase.

Fitch Apr 19, 2017 7:47 am

Thanks for the explanation, but it seems rather silly to me - the reason I excluded Y is because I don't want to buy a Y ticket :)

Ergo, "maintaining the price" by frigging the booking class is more likely to result in revenue of £0 for the airline, rather than £x ... :rolleyes:


All times are GMT -6. The time now is 10:34 am.


This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.