duffelhq / duffel-api-javascript

JavaScript client library for the Duffel API

Home Page:https://duffel.com/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multi-step search API does not return business or first class BA flights

BakerSmithA opened this issue · comments

Hi,

The Duffel best practise docs recommended using the multi-step search API. We've developed against that, however, we're not getting any business or first class flights for British Airways in the production environment (they show up in the development environment).

I've tested to see whether this is an issue with our codebase, however, the same issue is present in the Duffel dashboard:

Screenshot 2024-05-01 at 09 51 44

BA not listed in available airlines for this route:

Screenshot 2024-05-01 at 09 51 55

Business class flights are available through BA's website for this route:

I've also tested using the older single-step search API (request below), which does return business class BA flights.

curl --location 'https://api.duffel.com/air/offer_requests' \
--header 'Accept-Encoding: gzip' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Duffel-Version: v1' \
--header 'Authorization: Bearer ••••••' \
--data '{
  "data": {
    "slices" : [
      {
        "origin": "LHR",
        "destination": "CPT",
        "departure_date": "2024-05-13"
      }
    ],
    "passengers": [{ "type": "adult" }],
    "cabin_class": "business",
    "max_connections": 0
  }
}'

Hi @BakerSmithA,

Thank you for providing all the details.
Do you mind opening a support ticket with help@duffel.com as it's not a javascript client specific issue?