---
title: "Returns the Air Raw Fare Rules for a Segment or Pnr"
method: POST
path: "/v2/air/fare-rules/fetch"
tags: ["Air"]
---

# Returns the Air Raw Fare Rules for a Segment or Pnr

`POST /v2/air/fare-rules/fetch`

## Request body

- FetchAirFareRuleRequest
  - `searchId` string — 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.
  - `rateOptionId` string — The unique ID identifying the selected flights in the previous leg's response.
  - `pnrId` string — The unique Spotnana PNR ID against which flights are booked.
  - `userId` string, uuid — Unique ID of the user.

## Response `200`

OK

- FetchAirFareRuleResponse
  - `legRuleInfos` LegRuleInfo[]
    - `origin` string
    - `destination` string
    - `travelDate` DateTimeLocal — Local date and time in ISO 8601 format.
      - `iso8601` string, required
    - `flights` FlightInLegRule[]
      - `origin` string
      - `destination` string
      - `departureDateTime` DateTimeLocal — Local date and time in ISO 8601 format.
        - `iso8601` string, required
      - `flightId` string
    - `fareBasisRules` FareBasisRule[]
      - `fareBasisCode` string
      - `rules` RuleDetail[]
        - `title` string
        - `text` string

## Other responses

- `204` — No Content
- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — The specified resource was not found.

---

[API](https://skmtc.net/spotnana/apis/air-api.md) · [All operations](https://skmtc.net/spotnana/apis/air-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spotnana/air-api/versions/3009937ca024/schema)
