Iberia Club Avios and Elite Points Calculator
calculate_iberia_aviosIberia Club Avios and Elite Points for an Iberia (IB) ticket. Avios = fare in EUR (fare plus carrier charges, no taxes, whole ticket) x tier factor (Clasica 5, Plata 6, Oro 7, Platino 8, Platino Prime 9; one more per euro when every flight is on the Madrid-Barcelona Air Shuttle, two more to or from Latin America). Elite Points = 1 per euro plus Extra Elite Points per flight by cabin, fare (Basic none; Optimal, Comfort, Flexible) and distance (up to or over 3,000 miles), with progress toward Plata, Oro, Platino and Platino Prime (ep and fl: Elite Points and flights so far). Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them), the ISO country codes of its two airports, and from/to IATA airport codes: Iberia needs them to spot the Madrid-Barcelona Air Shuttle (MAD-BCN), which earns its own Avios and Extra Elite Points; without them that flight counts as an ordinary short flight. Uses cwsi.net's calculator and the airline's published rules. Give the price in EUR, not US dollars. Unofficial.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"segs": "<segs>"
},
"name": "calculate_iberia_avios"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ep | No | Elite Points you have since 1 April (optional). Used only for the progress toward the next tier. | |
| fl | No | Qualifying flights you have since 1 April (optional). Plata, Oro and Platino can also be reached with 20, 40 or 90 flights. | |
| fare | No | Fare. B = Basic; O = Optimal; C = Comfort; F = Flexible. The fare brand on your booking. Basic earns no Extra Elite Points and is Economy only. On the Madrid-Barcelona Air Shuttle choose Comfort or Flexible. Executive is left out: Iberia's Extra Elite Points table does not list it (choose Basic to see the spend alone). | O |
| segs | Yes | The flights, one way and in order, one entry per flight (1 to 8): fromCountry and toCountry, the ISO 3166 two-letter country codes of its two airports; miles, its great-circle distance in miles (1 to 12,500); optional cabin (Y, W, C) for a flight in another cabin than the ticket's; optional from and to, the IATA codes of its two airports, which label the breakdown; some airlines also use them (Vladivostok, VVO, on JAL and ANA; the Madrid-Barcelona Air Shuttle, MAD-BCN, on Iberia; the long-haul tables named by city on SAS). | |
| tier | No | Your Iberia Club tier. CL = Clásica (5 per euro); PL = Plata (6 per euro); OR = Oro (7 per euro); PT = Platino (8 per euro); PP = Platino Prime (9 per euro). Sets the Avios per euro. Infinita and Infinita Prime are not offered: Iberia does not publish their Avios rate. | CL |
| trip | No | Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way for Extra Elite Points. The fare above is for the whole ticket either way. | ow |
| cabin | No | Cabin. Y = Economy; W = Premium Economy (long haul); C = Business. | Y |
| price | No | Ticket fare in euros (whole trip) in EUR. The fare and carrier charges, without taxes and fees, for the whole ticket. Enter it in euros; Iberia converts a fare in another currency at the IATA rate on the day the ticket is issued. Required unless creditTo is given. | |
| creditTo | No | Credit the flights to a partner program instead of Iberia's own: alaska = Atmos Rewards (creditStatus one of: Atmos Rewards member, Atmos Silver, Atmos Gold, Atmos Platinum, Atmos Titanium). Earns by each flight's distance and the booking class at the program's published partner rates; leave creditTo out for the airline's own program. Give the booking class letter as creditClass. The flights are segs (their miles), or creditFlights. No price is needed with creditTo. | |
| creditClass | No | The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo. | |
| creditStatus | No | Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo. | |
| creditFlights | No | The flights for creditTo: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and optionally from/to airport codes. Defaults to segs when they carry miles. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| link | Yes | ||
| notes | Yes | ||
| inputs | Yes | ||
| airline | Yes | ||
| headline | Yes | ||
| progress | No | ||
| breakdown | Yes | ||
| calculator | Yes |