FlyerTalk Forums - View Single Post - A Fix for the New "Elevated" Award Booking Engine
Old Sep 8, 2022 | 5:32 am
  #46  
jaytw
10 Countries Visited20 Countries Visited30 Countries Visited15 Years on Site
 
Join Date: Apr 2010
Location: Taipei, Taiwan
Programs: IHG Diamond Ambassador, Accor Plus Platinum, Caesar's Diamond, Hilton Gold, Marriott Gold,
Posts: 124
Originally Posted by Fly Me To The Moon
Passenger details entered, and the 140,000 Asia Miles and taxes were calculated for the two seats. Then, the next step was supposed to be "seat selection", but the error message popped up at that point.
So I've had time to take a look at the code again, and it turns out the API actually returns bookable=true for those flights as well. In fact, there is no difference in the response between those flights and the actually bookable T+353 flights, so I have no way of telling them apart in the code. I don't think there's anything I can do on the script end short of just hardcoding it to ignore flights after 353 days, but on the other hand, it seems it might be handy to be able to see in advance seats that might open up in the next week. I'll probably add a message somewhere to alert the user that those flights may not be bookable yet.
jaytw is offline