> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.kitionz.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.kitionz.com/_mcp/server.

# Fare rules

GET https://sandbox-api.kitionz.com/v1/flights/fare-rules

**Get fare rules for an offer.**

**Only Kitionz Test Air supports this today.** With your Live suppliers this call is refused, so build it in Test but do not depend on it in Live yet.


**What:** the cancellation / change penalties + conditions for a specific offer.

**When:** before `/book`, to show the traveller what they’re committing to.


**Gotcha:** availability is **per offer**: check `eligibility.fareRulesAvailable` on the fare quote.

**Send** `offerId`: the offer’s `offerId` from `/search` (`supplierOfferRef` is the old name, accepted until the next release). Any other parameter → `400 VALIDATION_ERROR`.

Reference: https://docs.kitionz.com/flights/fare-rules

## Authentication

- `Authorization` header (bearer token, required) — Your Kitionz API key, sent as `Authorization: Bearer keyId:secret`. Create a Test key at sandbox.kitionz.com → **API keys**, a Live key at kitionz.com → **API → API keys**.

## Servers

- `https://sandbox-api.kitionz.com` (Test, default)
- `https://api.kitionz.com` (Live)

## Request

### Query parameters

- `offerId` (string, required) — Required (or its old name supplierOfferRef; send one, null is refused): the id of the offer you chose in /search — the offer's offerId (floffer_…, 30 characters).
- `supplierCode` (string, optional) — Leave it out: the offer id already names the supplier. Only an organisation shown suppliers before booking may send it, and it must then match the offer; for everyone else it is refused with SOURCE_CODE_NOT_ACCEPTED.

## Response

### 200

Default Response

- `success` (boolean, required)
- `statusCode` (double, required)
- `data` (FlightFareRulesResponse, required) — Time-banded fare rules for an offer (+ resolved sourceCode).
- `meta` (V1FlightsFareRulesGetResponsesContentApplicationJsonSchemaMeta, required)

## Types

### FlightFareRulesResponse

Time-banded fare rules for an offer (+ resolved sourceCode).

- `cancellation` (FlightFareRulesResponseCancellation, optional)
- `changes` (FlightFareRulesResponseChanges, optional)
- `noShow` (FlightFareRulesResponseNoShow, optional)
- `rawText` (string, optional)
- `components` (list of FlightFareRulesResponseComponentsItems, optional)
- `sourceCode` (string, optional) — Present only when your organisation is shown suppliers before booking; otherwise omitted (the supplier is named on the booking).

### V1FlightsFareRulesGetResponsesContentApplicationJsonSchemaMeta

- `requestId` (string, required)
- `timestamp` (datetime, required)
- `path` (string, required)
- `method` (string, required)
- `responseTime` (double, optional)
- `pagination` (V1FlightsFareRulesGetResponsesContentApplicationJsonSchemaMetaPagination, optional)

### FlightFareRulesResponseCancellation

- `refundable` (boolean, required)
- `bands` (list of FlightFareRulesResponseCancellationBandsItems, required)

### FlightFareRulesResponseChanges

- `allowed` (boolean, required)
- `bands` (list of FlightFareRulesResponseChangesBandsItems, required)

### FlightFareRulesResponseNoShow

- `amount` (double, optional)
- `pct` (double, optional)

### FlightFareRulesResponseComponentsItems

- `code` (string, required)
- `amount` (double, required)
- `label` (string, optional)
- `applicability` (enum, optional)
  - Allowed values: `PER_BOOKING`, `PER_PAX`, `PER_SEGMENT`

### V1FlightsFareRulesGetResponsesContentApplicationJsonSchemaMetaPagination

- `page` (double, optional)
- `limit` (double, optional)
- `total` (double, optional)
- `totalPages` (double, optional)
- `hasNext` (boolean, optional)
- `hasPrev` (boolean, optional)

### FlightFareRulesResponseCancellationBandsItems

- `fromHoursBeforeDep` (double, optional)
- `toHoursBeforeDep` (double, optional)
- `amount` (double, optional)
- `pct` (double, optional)
- `label` (string, optional)

### FlightFareRulesResponseChangesBandsItems

- `fromHoursBeforeDep` (double, optional)
- `toHoursBeforeDep` (double, optional)
- `amount` (double, optional)
- `pct` (double, optional)
- `label` (string, optional)

## Examples

**Response**

```json
{
  "success": true,
  "statusCode": 200,
  "data": {
    "rawText": "Kitionz Test Air — simulated. The seller states no cancellation or change rules for this fare, as series suppliers do: treat them as not stated, and read the offer’s policy."
  },
  "meta": {
    "requestId": "req_034nVJSG6SDuzLWy7X0G52",
    "timestamp": "2026-10-28T02:02:18.641Z",
    "path": "/v1/flights/fare-rules?offerId=floffer_034nVJS2qOr2Vqu1qfPu9c",
    "method": "GET"
  }
}
```

**SDK Code**

```python
import requests

url = "https://sandbox-api.kitionz.com/v1/flights/fare-rules"

querystring = {"offerId":"floffer_034nVJS2qOr2Vqu1qfPu9c"}

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())
```

```javascript
const url = 'https://sandbox-api.kitionz.com/v1/flights/fare-rules?offerId=floffer_034nVJS2qOr2Vqu1qfPu9c';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://sandbox-api.kitionz.com/v1/flights/fare-rules?offerId=floffer_034nVJS2qOr2Vqu1qfPu9c"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://sandbox-api.kitionz.com/v1/flights/fare-rules?offerId=floffer_034nVJS2qOr2Vqu1qfPu9c")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://sandbox-api.kitionz.com/v1/flights/fare-rules?offerId=floffer_034nVJS2qOr2Vqu1qfPu9c")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://sandbox-api.kitionz.com/v1/flights/fare-rules?offerId=floffer_034nVJS2qOr2Vqu1qfPu9c', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://sandbox-api.kitionz.com/v1/flights/fare-rules?offerId=floffer_034nVJS2qOr2Vqu1qfPu9c");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://sandbox-api.kitionz.com/v1/flights/fare-rules?offerId=floffer_034nVJS2qOr2Vqu1qfPu9c")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```