v1

latestOpenAPI 3.1.02026-08-0624539313.1 KB
Air

Returns the Air Raw Fare Rules for a Segment or Pnr

post/v2/air/fare-rules/fetch

Request body

searchIdstring

The unique ID (identifying the current workflow) returned by the backend in the air search results response (AirSearchResponse.searchId) of the previous leg. If set, the rateOptionId and userId must also be specified.

rateOptionIdstring

The unique ID identifying the selected flights in the previous leg's response.

pnrIdstring

The unique Spotnana PNR ID against which flights are booked.

userIdstring uuid

Unique ID of the user.

Example request

{
  "pnrId": "1213124111",
  "userId": "4974a66b-7493-4f41-908c-58ba81093947"
}

Response

OK

Example response

{
  "legRuleInfos": [
    {
      "travelDate": {
        "iso8601": "2017-07-21T17:32"
      },
      "flights": [
        {
          "departureDateTime": {
            "iso8601": "2017-07-21T17:32"
          }
        }
      ]
    }
  ]
}