accueil / serveurs / Productivité / net.cwsi/fares
net.cwsi/fares
serveur MCP (Model Context Protocol) · cwsi-net 1.0.0
Référencé dans l'annuaire. Seul le pentest comportemental fait foi, et il n'a pas encore été exécuté sur ce serveur.
Est-ce que net.cwsi/fares est sûr ?
Au dernier audit MCP Hub, le serveur MCP « net.cwsi/fares » est classé « Non encore testé ». Référencé dans l'annuaire. Seul le pentest comportemental fait foi, et il n'a pas encore été exécuté sur ce serveur. Le verdict est réévalué en continu ; consultez la fiche pour l'état à jour.
Méthode : MCP Hub analyse la description de chaque outil (couche 1) et, pour le verdict fort, exécute le serveur dans une micro-VM isolée avec leurres et réseau bloqué (couche 2). On publie des noms et des compteurs, jamais le contenu brut renvoyé par un outil.
Les 56 outils
- calculate_aegean_airlines_miles≈ 1839 tokens
Aegean Airlines Miles+Bonus tier miles and award miles for Aegean and Olympic Air flights, from Aegean's own route table: a fixed number per airport pair by fare family (fam) and booking class (cls); within Greece a flat amount, abroad a share of the distance with a minimum. A class the fare family does not list, or a route Aegean does not list, earns nothing and says so. Award miles = tier miles x 100% (Blue), 110% (Silver) or 120% (Gold), rounded; Gold adds 200 award miles from Athens within Greece and 500 from Athens to a Schengen country (needs toCountry; Aegean does not list the Intra-Schengen countries, so this uses the cwsi.net list of the Schengen area countries, without Cyprus). Progress toward Silver and Gold by tier miles in 12 months (tm: the tier miles so far); the rules from 5 November 2026 (Platinum, flight counts) are a note only. Give segs: one entry per one-way flight, in order, with from and to, the IATA codes of its two airports (required; the miles come from the table), and optionally the ISO country codes. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (10)
Paramètrestm· number · optionnel
Tier miles you have in the last 12 months (optional). Used only for the progress toward Silver and Gold.cls· string · optionnel · C | D | Z | A | Y | B | M | H
Booking class. C = C (Business); D = D (Business); Z = Z (Business); A = A (Business); Y = Y; B = B; M = M; H = H; W = W; L = L; V = V; O = O; G = G; Q = Q; K = K; J = J; S = S; F = F; E = E; U = U; T = T; P = P; I = I (earns nothing); N = N (earns nothing); R = R (earns nothing); X = X (earns nothing). The letter on your ticket. C, D, Z and A are Business; the rest Economy. I, N, R and X are not in Aegean's charts.fam· string · optionnel · LI | FX | FA | CF | SV | CO | CP | BB
Fare family. LI = Economy Light; FX = Economy Flex; FA = Economy Family; CF = Economy ComfortFlex; SV = Economy Saver (Greece, a few routes abroad); CO = Economy Comfort (a few routes); CP = Economy Comfort Plus (a few routes); BB = Business Basic; BU = Business. As shown on your booking. On international routes Saver, Comfort and Comfort Plus are listed only on a few routes from Athens (Kuwait, Dammam, Delhi, Mumbai); within Greece the chart lists Saver at the Flex numbers.segs· array · optionnel
The flights, one way and in order, one entry per flight (1 to 8): from and to, the IATA codes of its two airports (required: the earn table is keyed by the airport pair); optional fromCountry and toCountry, the ISO 3166 two-letter country codes of its two airports.trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · B | S | G
Your Miles+Bonus tier. B = Blue; S = Silver; G = Gold. Silver earns 10% more award miles and Gold 20% more (plus Gold extras from Athens). Tier miles are the same.creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of Aegean Airlines's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. The booking class is cls (or creditClass). Give the flights as creditFlights (one entry per flight with its great-circle miles).creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_aegean_airlines_miles", "arguments": {"tm": 1, "cls": "C", "fam": "LI", "segs": [], "trip": "ow", "status": "B"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_aerolineas_argentinas_miles≈ 2092 tokens
Aerolineas Argentinas Aerolineas Plus miles for Aerolineas Argentinas flights. Miles = distance x a % set by the first letter of the fare basis (fare) and the zone: Domestic (both airports in Argentina), Regional (Argentina and Bolivia, Brazil, Chile, Paraguay, Peru, Uruguay or Colombia) or International (Argentina and the US, Mexico, the Dominican Republic or Europe), from 0% to 200%, rounded down, no minimum and no elite bonus. A flight that does not touch Argentina, or a letter the zone does not list, is refused with a message. Progress toward Oro (25,000 qualifying miles or 30 segments), Platino (50,000 or 60) and Diamante (70,000 or 80) in 12 months; sm and fl are the miles and segments so far. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (10)
Paramètresfl· number · optionnel
Qualifying segments you have in the last 12 months (optional). Oro, Platino and Diamante can be reached with 30, 60 or 80 qualifying segments.sm· number · optionnel
Qualifying miles you have in the last 12 months (optional). Miles earned by fare on Aerolineas Argentinas and SkyTeam flights, without status or promotion extras.fare· string · optionnel · A | B | C | D | E | G | H | I
First letter of your fare basis. A = A (Domestic 0%, regional 25%, international 25%); B = B (Domestic 100%, regional 125%, international 125%); C = C (Domestic not listed, regional 150%, international 200%); D = D (Domestic not listed, regional 150%, international 200%); E = E (Domestic 25%, regional 25%, international 25%); G = G (Domestic 0%, regional 0%, international 0%); H = H (Domestic 75%, regional 100%, international 100%); I = I (Domestic not listed, regional 150%, international 200%); J = J (Domestic not listed, regional 150%, international 200%); K = K (Domestic 75%, regional 100%, international 100%); L = L (Domestic 75%, regional 100%, international 100%); M = M (Domestic 100%, regional 125%, international 125%); N = N (Domestic 25%, regional 25%, international 25%); Q = Q (Domestic 25%, regional 100%, international 100%); R = R (Domestic 0%, regional 25%, international 25%); S = S (Domestic 150%, regional 150%, international 150%); T = T (Domestic 25%, regional 25%, international 25%); U = U (Domestic 75%, regional 100%, international 100%); V = V (Domestic 25%, regional 25%, international 25%); W = W (Domestic 150%, regional 150%, international 150%); Y = Y (Domestic 100%, regional 125%, international 125%). Find the fare basis on your electronic ticket receipt: its first letter sets the percentage. Aerolineas does not map letters to cabins.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · CL | OR | PL | DI
Your Aerolineas Plus status. CL = Clasico; OR = Oro; PL = Platino; DI = Diamante. Used to show your next tier. Oro, Platino and Diamante members may earn extra miles, but no percentage is published, so none is added.creditTo· string · optionnel · flying-blue
Credit the flights to a partner program instead of Aerolineas Argentinas's own: flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_aerolineas_argentinas_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_aeromexico_points≈ 1308 tokens
Aeromexico Rewards points and qualifying points for a flight operated by Aeromexico. Points = 8 per US dollar of base fare (the ticket total minus taxes and fees, whole ticket), rounded down; qualifying points are the same, except Basic Economy (class V, fam BS), which earns points but no qualifying points. The level does not change the earning (the "additional accrual" Aeromexico lists by level prints no unit, so it is not added). Progress toward Silver (25,000), Gold (50,000), Platinum (80,000) and Titanium (100,000) qualifying points in a calendar year; qp is the qualifying points so far. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (8)
Paramètresqp· number · optionnel
Qualifying points you have so far this year (optional). Used only for the progress toward the next level.fam· string · optionnel · BS | CL | AP | PR
Fare family. BS = Basic Economy (class V); CL = Clasica (R N E T Q L H K U M B Y); AP = AM Plus (class W); PR = Premier or Premier One (I D C J). The fare family on your ticket. All of them earn 8 points per dollar; only Basic Economy (class V) earns no qualifying points.price· number · optionnel
Base fare in US dollars (whole ticket) in US dollars. The ticket total minus taxes and fees, for the whole ticket. If you paid in pesos, enter the equivalent in US dollars. Required unless creditTo is given.status· string · optionnel · CL | SV | GD | PL | TI
Your Aeromexico Rewards level. CL = Classic; SV = Silver; GD = Gold; PL = Platinum; TI = Titanium. Used only for the progress toward the next level. The earning is the same at every level.creditTo· string · optionnel · delta | flying-club | flying-blue
Credit the flights to a partner program instead of Aeromexico's own: delta = Delta SkyMiles (creditStatus one of: SkyMiles Member, Silver Medallion, Gold Medallion, Platinum Medallion, Diamond Medallion); flying-club = Flying Club (creditStatus one of: Red, Silver, Gold); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_aeromexico_points", "arguments": {"qp": 1, "fam": "BS", "price": 1, "status": "CL", "creditTo": "delta", "creditClass": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_air_canada_points≈ 1238 tokens
Estimate the Aeroplan points and Status Qualifying Credits (SQC) an Air Canada-ticketed (014) fare earns. Points = fare in CAD x status multiplier (Member 1 to Super Elite 6); SQC = fare x 2 (Standard), x 4 (Flex, Comfort, Latitude, Premium Economy, Business), 0 (Basic). Uses cwsi.net's calculator and the airline's published rules. Give the price in CAD, not US dollars. Unofficial.
Paramètres, retour & exemple (8)
Paramètressqc· number · optionnel
SQC you have so far this year (optional). Used only for the progress toward the next status.fare· string · optionnel · BA | ST | FL | CO | LA | PE | BU
Fare brand. BA = Basic (no SQC); ST = Standard (2 SQC per C$1); FL = Flex (4 SQC per C$1); CO = Comfort (4 SQC per C$1); LA = Latitude (4 SQC per C$1); PE = Premium Economy (4 SQC per C$1); BU = Business (4 SQC per C$1). Basic earns points but no SQC. Standard earns 2 SQC per C$1; Flex, Comfort, Latitude, Premium Economy and Business earn 4.price· number · optionnel
Fare paid for the whole ticket (CAD) in CAD. Base fare plus carrier-imposed surcharges, in Canadian dollars, without government taxes and airport fees. If you paid in another currency, Air Canada converts it to CAD at an industry-standard rate. Required unless creditTo is given.status· string · optionnel · M | 25K | 35K | 50K | 75K | SE
Your Aeroplan status when you fly. M = Member (1x points); 25K = 25K (2x points); 35K = 35K (3x points); 50K = 50K (4x points); 75K = 75K (5x points); SE = Super Elite (6x points). Your status multiplies the points (not the SQC).creditTo· string · optionnel · united
Credit the flights to a partner program instead of Air Canada's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_air_canada_points", "arguments": {"sqc": 1, "fare": "BA", "price": 1, "status": "M", "creditTo": "united", "creditClass": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_air_china_miles≈ 2045 tokens
Air China PhoenixMiles mileage (in kilometres) and qualifying segments for Air China flights. Mileage = distance in km (the great-circle miles x 1.609344; Air China uses the IATA distance) x booking-class %, at least 1,000 km in First, 800 in Business and 500 in Premium Economy and Economy; where Air China prints two rates, the first is a flight within Mainland China (both airports CN) and the second an international or regional flight (Hong Kong, Macao and Taiwan count as regional). Classes O, I, X and N earn nothing. The 25/30/50% elite bonus is a note only. Qualifying kilometres for the flight are not calculated (Air China does not say they equal the mileage earned), so the flight is not added to the progress. Cards need Silver 40,000, Gold 80,000 or Platinum 160,000 qualifying km, or 25 / 40 / 90 qualifying segments, in 12 months; qk and qs are the member's own totals so far, used only for the progress. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (10)
Paramètresqk· number · optionnel
Qualifying kilometres you have in the last 12 months (optional). Used only for the progress toward the next card; the flight is not added.qs· number · optionnel
Qualifying segments you have in the last 12 months (optional). Segments can be fractions, for example 1.1 in Y. Used only for the progress toward the next card; the flight is not added.cls· string · optionnel · F | A | J | C | D | Z | R | G
Booking class. F = F (First 300%); A = A (First 200% / 250%); J = J (Business 300% / 250%); C = C (Business 200%); D = D (Business 150%); Z = Z (Business 125%); R = R (Business 110% / 125%); G = G (Premium Economy 110%); E = E (Premium Economy 90%); Y = Y (Economy 110%); B = B (Economy 100% / 110%); M = M (Economy 100%); U = U (Economy 100% / 75%); H = H (Economy 75%); Q = Q (Economy 75%); V = V (Economy 75%); W = W (Economy 50%); S = S (Economy 50%); T = T (Economy 50%); L = L (Economy 25%); K = K (Economy 25%); P = P (Economy 25%); O = O (earns nothing); I = I (earns nothing); X = X (earns nothing); N = N (earns nothing). The letter on your Air China ticket. A class with two percentages pays the first on flights within Mainland China and the second on international and regional flights.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · NO | SI | GO | PL
Your PhoenixMiles card. NO = Not an elite member; SI = Silver (+25%); GO = Gold (+30%); PL = Platinum (+50%). Elite members earn extra mileage on Air China group flights. It is shown as a note, not added, because Air China does not say what it is a percentage of.creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of Air China's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_air_china_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_air_europa_miles≈ 1297 tokens
Air Europa Suma Miles for an Air Europa ticket, from the fare in euros (EUR: fare plus fuel surcharge, no taxes or fees, whole ticket): 5 Miles per EUR 1, plus 1 on flights to and from America (route AM) and 3 in Business (cabin J), plus a level bonus of 50% (Silver), 75% (Gold) or 100% (Platinum) of the base 5, rounded up. Premium Economy earns the Economy rate. Level Miles per flight are not published, so they are not calculated; Silver, Gold and Platinum need 18,000, 32,000 or 60,000 Level Miles, or 14, 26 or 50 flights, in 12 months (at least 4 on Air Europa). Uses cwsi.net's calculator and the airline's published rules. Give the price in EUR, not US dollars. Unofficial.
Paramètres, retour & exemple (8)
Paramètrescabin· string · optionnel · Y | W | J
Cabin. Y = Economy (Lite, Standard, Flex); W = Premium Economy (Standard, Flex); J = Business (+3 per €1). Business adds 3 Miles per €1. Premium Economy earns at the Economy rate.price· number · optionnel
Fare paid (EUR, whole ticket) in EUR. In euros: the fare plus the fuel surcharge for the whole ticket, without taxes and fees. For another currency, enter the equivalent in euros. Required unless creditTo is given.route· string · optionnel · EU | AM
Where the flight goes. EU = Spain and Europe (5 per €1); AM = America (6 per €1). Air Europa gives one rate for Spain and Europe and a higher one for America flights.status· string · optionnel · BS | SV | GD | PT
Your Suma level when you fly. BS = Suma (no bonus); SV = Silver (+50%); GD = Gold (+75%); PT = Platinum (+100%). The level bonus is a percentage of the base 5 Miles per €1.creditTo· string · optionnel · delta | flying-club | flying-blue
Credit the flights to a partner program instead of Air Europa's own: delta = Delta SkyMiles (creditStatus one of: SkyMiles Member, Silver Medallion, Gold Medallion, Platinum Medallion, Diamond Medallion); flying-club = Flying Club (creditStatus one of: Red, Silver, Gold); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_air_europa_miles", "arguments": {"cabin": "Y", "price": 1, "route": "EU", "status": "BS", "creditTo": "delta", "creditClass": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_air_india_points≈ 1434 tokens
Air India Maharaja Club Maharaja Points and Tier Points for an Air India or Air India Express (carrier IX) ticket, from the fare in Indian rupees (INR): Air India counts the base fare plus the fuel surcharge (YQ), Air India Express the base fare only, without taxes and fees. Maharaja Points = fare / 100 x 6 (Red), 8 (Silver), 9 (Gold) or 10 (Platinum), rounded down, plus 2 per INR 100 when booked directly on the Air India website or app (direct YES, Air India only); Tier Points = 6 per INR 100 at every tier. Air India converts a fare in another currency itself and does not publish the rate, so give the INR amount. Progress toward Silver (15,000), Gold (30,000) and Platinum (45,000) Tier Points in 365 days; tp is the Tier Points so far. Uses cwsi.net's calculator and the airline's published rules. Give the price in INR, not US dollars. Unofficial.
Paramètres, retour & exemple (9)
Paramètrestp· number · optionnel
Tier Points you have so far (optional). Tier Points from the last 365 days. Used only for the progress toward the next tier.price· number · optionnel
Fare paid (INR, whole ticket) in INR. In Indian rupees: the base fare plus the fuel surcharge (YQ) for Air India, or the base fare alone for Air India Express, without taxes and fees. Air India converts a fare paid in another currency itself. Required unless creditTo is given.direct· string · optionnel · NO | YES
Booked directly on the Air India website or app?. NO = No (travel agent or other); YES = Yes (+2 per INR 100). Direct bookings earn 2 bonus Maharaja Points per INR 100 on Air India flights. The bonus does not add Tier Points. Only applies to some choices of the other fields; ignored otherwise.status· string · optionnel · RD | SV | GD | PT
Your Maharaja Club tier when you fly. RD = Red (6 per INR 100); SV = Silver (8 per INR 100); GD = Gold (9 per INR 100); PT = Platinum (10 per INR 100).carrier· string · optionnel · AI | IX
Airline. AI = Air India (base fare plus YQ); IX = Air India Express (base fare only). Air India counts the base fare plus the fuel surcharge (YQ). Air India Express counts the base fare only.creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of Air India's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. The programs follow the airline in carrier (AI: united, aeroplan; IX: none). Give the booking class letter as creditClass. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_air_india_points", "arguments": {"tp": 1, "price": 1, "direct": "NO", "status": "RD", "carrier": "AI", "creditTo": "united"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_air_new_zealand_airpoints≈ 1809 tokens
Air New Zealand Koru Airpoints and Status Points for Air New Zealand flights: a fixed number per flight from Air New Zealand's own earn tables, by the directed airport pair (route group), booking class (cls) and, for Economy on domestic, Tasman and Pacific Islands flights, the fare (Seat, Seat+Bag, Flexi Change, Flexi Refund, The Works, Works Flexi). Airpoints can be decimals (for example 10.8). Classes N, I, R and X earn nothing; F earns Status Points only; a pair Air New Zealand does not list is not counted. Partner-airline flights are not calculated. The tier does not change the earning. Progress toward Silver (450), Gold (900), Platinum (1,500) and Black (3,200) Status Points in 12 months; sp is the Status Points so far. Give segs: one entry per one-way flight, in order, with from and to, the IATA codes of its two airports (required; distance and countries do not matter). Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (10)
Paramètressp· number · optionnel
Status Points you have in the last 12 months (optional). Used only for the progress toward Silver, Gold, Platinum and Black.cls· string · optionnel · C | D | Z | J | U | E | O | A
Booking class. C = C (Business); D = D (Business); Z = Z (Business); J = J (Business); U = U (Premium); E = E (Premium); O = O (Premium); A = A (Premium); Y = Y; B = B; M = M; H = H; Q = Q; V = V; W = W; T = T; L = L; S = S; G = G; K = K; P = P; F = F; X = X (earns nothing); N = N (earns nothing); I = I (earns nothing); R = R (earns nothing). The letter on your ticket. J, Z, D and C are Business Premier; A, O, E and U Premium Economy; the rest Economy.fare· string · optionnel · S | SB | FC | FR | WK
Economy fare. S = Seat; SB = Seat+Bag; FC = Flexi Change; FR = Flexi Refund; WK = The Works or Works Flexi. Domestic flights: Seat, Seat+Bag, Flexi Change or Flexi Refund. Flights to Australia and the Pacific Islands: Seat, Seat+Bag, The Works or Works Flexi. Long-haul Economy earns the same on every fare. Only applies to some choices of the other fields; ignored otherwise.segs· array · optionnel
The flights, one way and in order, one entry per flight (1 to 8): from and to, the IATA codes of its two airports (required: the earn table is keyed by the airport pair); optional fromCountry and toCountry, the ISO 3166 two-letter country codes of its two airports.trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · B | S | G | P | BK
Your Koru tier. B = Bronze; S = Silver; G = Gold; P = Platinum; BK = Black. Your tier does not change what a flight earns; it is used for the progress below.creditTo· string · optionnel · united | aeroplan | flying-club
Credit the flights to a partner program instead of Air New Zealand's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite); flying-club = Flying Club (creditStatus one of: Red, Silver, Gold). 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. The booking class is cls (or creditClass). Give the flights as creditFlights (one entry per flight with its great-circle miles).creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_air_new_zealand_airpoints", "arguments": {"sp": 1, "cls": "C", "fare": "S", "segs": [], "trip": "ow", "status": "B"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_alaska_miles≈ 1516 tokens
Estimate what a Alaska Airlines ticket earns (miles or points, and status credit where it applies), using cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (14)
Paramètrescard· string · optionnel · none | AS | SU | BU
Paying with an Atmos Rewards card. none = No; AS = Ascent (+3 per $1); SU = Summit (+3 per $1); BU = Business (+3 per $1).fare· string · optionnel · 0 | 100 | 125 | 175 | 200 | 150a | 150b
Fare. 200 = First, full fare (J); 175 = First (C); 150a = First, discount (D, I); 150b = Main, full fare (Y, B); 125 = Main (H, K); 100 = Main, discount (M, L, V, S, N, Q, O, G); 0 = Saver (X). Only applies to some choices of the other fields; ignored otherwise.kind· string · optionnel · paid | basic
Fare type. paid = Paid fare (Main, Premium, First); basic = Basic or Saver (earns 0). Only applies to some choices of the other fields; ignored otherwise.segs· integer · optionnel
Segments. Each flight (segment) earns 500 points. Only applies to some choices of the other fields; ignored otherwise.when· string · optionnel · 2026 | 2027
When do you fly?. 2026 = Through Dec 31, 2026; 2027 = From Jan 1, 2027. Members choose a method from Oct 1, 2026; it applies to flights from Jan 1, 2027.miles· number · optionnel
Miles flown. The flight distance in miles. Only applies to some choices of the other fields; ignored otherwise.price· number · optionnel
Price paid (before taxes and fees) in US dollars. Needed for your card, or for the price method from 2027. Required unless creditTo is given.legacy· string · optionnel · 0 | 1
Saver booked early or flown soon. 1 = Yes (30%); 0 = No (earns 0). Saver earns 30% when booked before Jun 11, 2026, or flown through Jul 31, 2026. Otherwise it earns 0. Only applies to some choices of the other fields; ignored otherwise.method· string · optionnel · dist | price | seg
Your earning method. dist = Distance (1 per mile); price = Price paid (5 per $1); seg = Segments (500 per segment). Only applies to some choices of the other fields; ignored otherwise.status· string · optionnel · none | SV | GD | PT | TT
Your Atmos status. none = Member (No status); SV = Silver (+25%); GD = Gold (+50%); PT = Platinum (+100%); TT = Titanium (+150%).creditTo· string · optionnel · american | ba-club
Credit the flights to a partner program instead of Alaska Airlines's own: american = American AAdvantage (creditStatus one of: AAdvantage member, AAdvantage Gold, AAdvantage Platinum, AAdvantage Platinum Pro, AAdvantage Executive Platinum); ba-club = British Airways Club (creditStatus one of: Blue, Bronze, Silver, Gold). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_alaska_miles", "arguments": {"card": "none", "fare": "0", "kind": "paid", "segs": 1, "when": "2026", "miles": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_allegiant_points≈ 528 tokens
Estimate what a Allegiant Air ticket earns (miles or points, and status credit where it applies), using cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (2)
Paramètrescard· string · optionnel · none | AV
Paying with the Allways Rewards Visa. none = No; AV = Yes (3 card points per $1).price· number · requis
Qualified spend on the itinerary (without taxes and fees) in US dollars. What you paid Allegiant for the flight package, less taxes, fees, vouchers and promo codes.
Exemple d'appel{"name": "calculate_allegiant_points", "arguments": {"price": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_american_miles≈ 1064 tokens
Estimate what a American Airlines ticket earns (miles or points, and status credit where it applies), using cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (8)
Paramètrescard· string · optionnel · none | MU | PS | GB | EX
Paying with an AAdvantage card. none = No; MU = MileUp (+2 per $1); PS = Platinum Select (+2 per $1); GB = Globe (+3 per $1); EX = Executive (+4 per $1).fare· string · optionnel · 0 | 1
Fare type. 1 = Standard (Main Cabin and above); 0 = Basic Economy.price· number · optionnel
Ticket price in US dollars. Base fare plus carrier-imposed fees, without government taxes. Required unless creditTo is given.status· string · optionnel · none | GL | PL | PP | EP
Your AAdvantage status. none = None; GL = Gold (+40%); PL = Platinum (+60%); PP = Platinum Pro (+80%); EP = Executive Platinum (+120%).creditTo· string · optionnel · alaska
Credit the flights to a partner program instead of American Airlines'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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_american_miles", "arguments": {"card": "none", "fare": "0", "price": 1, "status": "none", "creditTo": "alaska", "creditClass": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_ana_miles≈ 1848 tokens
Estimate the ANA Mileage Club miles and Premium Points for flights operated by the ANA Group. Miles = distance x booking-class rate (F/A/J 150%, C/D/Z 125%, G/E/Y/B/M 100%, P/N/U/H/Q 70%, V/W/S/T 50%, L/K 30%, O/I/R/X 0). Premium Points = distance x the same rate x route ratio (Japan domestic x2; Japan to Asia, Oceania or Vladivostok x1.5; else x1) + 400 boarding points in F A J C D Z P G E N Y B M (none on Japan domestic legs). Give segs: one entry per one-way flight with its great-circle miles (calculate_flight_distance gives them), the ISO country codes of its two airports, and from/to IATA airport codes (set from or to to VVO for Vladivostok, which shares RU with the rest of Russia). Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (11)
Paramètrespp· number · optionnel
Premium Points you have this year (optional). Used only for the progress toward the next tier.cls· string · optionnel · FA | J | CDZ | P | GE | N | YBM | UHQ
Booking class. FA = F, A (First 150%); J = J (Business 150%); CDZ = C, D, Z (Business 125%); P = P (Business 70%); GE = G, E (Premium Economy 100%); N = N (Premium Economy 70%); YBM = Y, B, M (Economy 100%); UHQ = U, H, Q (Economy 70%); VWST = V, W, S, T (Economy 50%); LK = L, K (Economy 30%); ORIX = O, R, I, X (Not eligible). The letter on your ticket. ANA earns by booking class, not by fare brand name.ppg· number · optionnel
Of those, Premium Points on ANA Group flights (optional). Each tier needs half its Premium Points on ANA Group flights. The flights here are ANA Group flights.card· string · optionnel · N | G
ANA Gold Card or ANA Card Premium?. N = No; G = Yes. Holders reach Bronze at 30,000 Premium Points without the 15,000 on ANA Group flights.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · NO | BR | PL | DI
Your ANA status. NO = None; BR = Bronze; PL = Platinum; DI = Diamond.creditTo· string · optionnel · united | aeroplan | flying-club
Credit the flights to a partner program instead of ANA's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite); flying-club = Flying Club (creditStatus one of: Red, Silver, Gold). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_ana_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_avianca_lifemiles≈ 1286 tokens
Avianca LifeMiles for a flight operated by Avianca. LifeMiles = fare in US dollars (whole ticket, without taxes, fees and extras) x rate by fare family (Basic and Light 3, Classic 6, Flex 8, Business 10), plus an Elite bonus of that base (Red Plus 10%, Silver 20%, Gold 60%, Diamond 80%, Magno 100%), rounded down. Qualifying miles = the base LifeMiles plus 1 per 20 bonus LifeMiles. Progress toward Red Plus (6,000), Silver (12,000), Gold (24,000), Diamond (45,000) and Magno (110,000) qualifying miles in a calendar year; qm is the qualifying miles so far. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (8)
Paramètresqm· number · optionnel
Qualifying miles you have so far this year (optional). Used only for the progress toward the next Elite status.fare· string · optionnel · BS | LT | CL | FX | BZ
Fare family. BS = Basic (3 per $1, domestic flights); LT = Light (3 per $1, international flights); CL = Classic (6 per $1); FX = Flex (8 per $1); BZ = Business (10 per $1, Business Classic, Business Flex, INSIGNIA). Shown on your booking. Avianca does not publish booking class letters for its fare families.price· number · optionnel
Fare paid (USD, whole ticket) in US dollars. In US dollars: the fare for the whole ticket without taxes, fees and additional services (bags, seats and other extras). Required unless creditTo is given.status· string · optionnel · NO | RP | SV | GD | DI | MG
Your LifeMiles Elite status when you fly. NO = No Elite status (no bonus); RP = Red Plus (10% bonus); SV = Silver (20% bonus); GD = Gold (60% bonus); DI = Diamond (80% bonus); MG = Magno (100% bonus).creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of Avianca's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_avianca_lifemiles", "arguments": {"qm": 1, "fare": "BS", "price": 1, "status": "NO", "creditTo": "united", "creditClass": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_breeze_points≈ 654 tokens
Estimate what a Breeze Airways ticket earns (miles or points, and status credit where it applies), using cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (4)
Paramètrescard· string · optionnel · none | BV
Paying with the Breeze Easy Visa. none = No; BV = Yes (card points).fare· string · optionnel · NF | NI | NR | NT
Bundle. NF = No Flex Fare (1 per $1); NI = Nice (2 per $1); NR = Nicer (5 per $1); NT = Nicest (5 per $1).price· number · requis
Fare and trip add-ons paid to Breeze (without taxes and fees) in US dollars. Booked with Breeze: the fare plus bags and seat selection. Government taxes and fees do not earn.status· string · optionnel · Member | Breezy 1 | Breezy 2 | Breezy 3 | Breezy Club
Your Breezy Rewards level. Member = Member; Breezy 1 = Breezy 1 (+25%); Breezy 2 = Breezy 2 (+50%); Breezy 3 = Breezy 3 (+75%); Breezy Club = Breezy Club (+100%).
Exemple d'appel{"name": "calculate_breeze_points", "arguments": {"price": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_british_airways_avios≈ 1872 tokens
Estimate what a British Airways ticket earns (miles or points, and status credit where it applies), using cwsi.net's calculator and the airline's published rules. Give the price in GBP, not US dollars. Unofficial.
Paramètres, retour & exemple (18)
Paramètrescl· string · optionnel · WT | WP | CW | FI
Cabin. WT = World Traveller (economy); WP = World Traveller Plus (premium economy); CW = Club World (business); FI = First. Only applies to some choices of the other fields; ignored otherwise.cs· string · optionnel · ET | CE
Cabin. ET = Euro Traveller (economy); CE = Club Europe (business). Only applies to some choices of the other fields; ignored otherwise.tp· number · optionnel
Tier points you have so far (optional). Used only for the progress toward the next tier.fce· string · optionnel · BU | SF | FF
Club Europe fare type. BU = Business (+175 tier points); SF = Semi-Flex (+275 tier points); FF = Fully-Flex (+375 tier points). Only applies to some choices of the other fields; ignored otherwise.fcw· string · optionnel · BU | SF | FX | FF
Club World fare type. BU = Business (+500 tier points); SF = Semi-Flex (+700 tier points); FX = Flex (+900 tier points); FF = Fully-Flex (+1,100 tier points). Only applies to some choices of the other fields; ignored otherwise.fet· string · optionnel · B | P | SF | FF
Euro Traveller fare type. B = Basic (no extra tier points); P = Plus (+75 tier points); SF = Semi-Flex (+175 tier points); FF = Fully-Flex (+275 tier points). Basic is the Basic Economy fare: it earns no extra tier points. Only applies to some choices of the other fields; ignored otherwise.ffi· string · optionnel · FI | SF | FX | FF
First fare type. FI = First (+650 tier points); SF = Semi-Flex (+850 tier points); FX = Flex (+1,050 tier points); FF = Fully-Flex (+1,250 tier points). Only applies to some choices of the other fields; ignored otherwise.fwp· string · optionnel · PE | SF | FX | FF
World Traveller Plus fare type. PE = Premium Economy (+275 tier points); SF = Semi-Flex (+375 tier points); FX = Flex (+475 tier points); FF = Fully-Flex (+575 tier points). Only applies to some choices of the other fields; ignored otherwise.fwt· string · optionnel · B | ST | SF | FX | FF
World Traveller fare type. B = Basic (no extra tier points); ST = Standard (+150 tier points); SF = Semi-Flex (+250 tier points); FX = Flex (+350 tier points); FF = Fully-Flex (+450 tier points). Basic is the Basic Economy fare: it earns no extra tier points. Only applies to some choices of the other fields; ignored otherwise.haul· string · optionnel · S | L
Short haul or long haul. S = Short haul; L = Long haul. Short haul is Euro Traveller and Club Europe; long haul is World Traveller, World Traveller Plus, Club World and First.price· number · optionnel
Fare paid (GBP, whole ticket) in GBP. In pounds: base fare plus carrier-imposed charges for the whole ticket, without government taxes and airport charges. British Airways converts other currencies at the IATA 5-day rate on the day you buy. Required unless creditTo is given.addons· number · optionnel
Add-ons (GBP, optional). Paid seats, extra bags and sustainable aviation fuel (SAF): 2 tier points per £1, and Avios at your tier rate. Tier points from SAF are capped at 2,000 a year.status· string · optionnel · BL | BR | SV | GD
Your British Airways Club tier. BL = Blue; BR = Bronze; SV = Silver; GD = Gold.flights· number · optionnel
Number of flights. Each flight earns the extra tier points: a return trip is 2 flights, and a connection adds one per leg.creditTo· string · optionnel · alaska
Credit the flights to a partner program instead of British Airways'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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_british_airways_avios", "arguments": {"cl": "WT", "cs": "ET", "tp": 1, "fce": "BU", "fcw": "BU", "fet": "B"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_cathay_pacific_miles≈ 1444 tokens
Estimate what a Cathay Pacific flight earns (miles and status points) from its distance in miles, booking class and fare type, using cwsi.net's calculator and the airline's published rules. Get the miles from calculate_flight_distance. For flights of 751 to 2,750 miles to or from Japan, Indonesia, Sri Lanka, Nepal, Bangladesh or India, set t2 to that country code (JP, ID, LK, NP, BD or IN); otherwise leave t2 out. Unofficial.
Paramètres, retour & exemple (11)
Paramètressp· number · optionnel
Status Points you have so far (optional). Used only for the progress toward the next tier.t2· string · optionnel · none | JP | ID | LK | NP | BD | IN
Japan, Indonesia, Sri Lanka, Nepal, Bangladesh or India at either end?. none = None of these; JP = Japan; ID = Indonesia; LK = Sri Lanka; NP = Nepal; BD = Bangladesh; IN = India. Short-haul flights (751 to 2,750 miles) to or from these countries are Type 2 and earn more. Pick the country when either end of the flight is in one of them. Only applies to some choices of the other fields; ignored otherwise.cls· string · optionnel · FA | JC | DP | I | WR | E | YBHK | MLV
Booking class. FA = F, A (First Flex); JC = J, C (Business Flex); DP = D, P (Business Essential); I = I (Business Light); WR = W, R (Premium Economy Flex); E = E (Premium Economy Essential); YBHK = Y, B, H, K (Economy); MLV = M, L, V (Economy); SNQO = S, N, Q, O (Economy).fare· string · optionnel · L | E | F
Economy fare type. L = Light; E = Essential; F = Flex. Economy classes are sold as Light, Essential or Flex, and each earns differently. Only applies to some choices of the other fields; ignored otherwise.trip· string · optionnel · ow | rt
Trip. ow = One way (1 flight); rt = Round trip (2 flights).miles· number · optionnel
Flight distance (miles). One flight (sector). Filled in from the airports above; you can also type it.status· string · optionnel · GR | SV | GD | DM
Your Cathay status. GR = Green; SV = Silver; GD = Gold; DM = Diamond.creditTo· string · optionnel · american | alaska | ba-club
Credit the flights to a partner program instead of Cathay Pacific's own: american = American AAdvantage (creditStatus one of: AAdvantage member, AAdvantage Gold, AAdvantage Platinum, AAdvantage Platinum Pro, AAdvantage Executive Platinum); alaska = Atmos Rewards (creditStatus one of: Atmos Rewards member, Atmos Silver, Atmos Gold, Atmos Platinum, Atmos Titanium); ba-club = British Airways Club (creditStatus one of: Blue, Bronze, Silver, Gold). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles).creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_cathay_pacific_miles", "arguments": {"sp": 1, "t2": "none", "cls": "FA", "fare": "L", "trip": "ow", "miles": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_china_airlines_miles≈ 1863 tokens
China Airlines Dynasty Flyer miles for China Airlines flights. Miles = distance x booking-class % (J 175; C 150; D, W, U 125; A 115; E, Y, B, M 100; K, V, T 80; R, Q, H, N 50; L, O, Z, X, G, S 0), rounded to the nearest mile per flight, no minimum. The Gold, Emerald and Paragon incentive (15/25/30%) is a note only. Status Points per flight are not calculated; the thresholds are Gold 360, Emerald 720 and Paragon 1,400 Status Points (sp: the Status Points you have, for the progress). Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (9)
Paramètressp· number · optionnel
Status Points you have in the last 12 months (optional). Used only for the progress toward the next tier; the flight's own Status Points are not added.cls· string · optionnel · J | C | D | W | U | A | E | Y
Booking class. J = J (Business Flex, 175%); C = C (Business Standard, 150%); D = D (Business Basic, 125%); W = W (Premium Economy Flex, 125%); U = U (Premium Economy Flex, 125%); A = A (Premium Economy Standard, 115%); E = E (Premium Economy Basic, 100%); Y = Y (Economy Flex, 100%); B = B (Economy Flex, 100%); M = M (Economy Flex, 100%); K = K (Economy Standard, 80%); V = V (Economy Standard, 80%); T = T (Economy Standard, 80%); R = R (Economy Basic, 50%); Q = Q (Economy Basic, 50%); H = H (Economy Basic, 50%); N = N (Economy Basic, 50%); L = L (Economy Discount, 0%); O = O (No miles); Z = Z (No miles); X = X (No miles); G = G (No miles); S = S (No miles). The letter on your ticket. Classes O, Z, X, G and S, and L, earn no miles.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · DY | GD | EM | PG
Your Dynasty Flyer tier. DY = Dynasty; GD = Gold; EM = Emerald; PG = Paragon. Gold, Emerald and Paragon members get incentive miles on top; the calculator shows them as a note.creditTo· string · optionnel · delta | flying-club | flying-blue
Credit the flights to a partner program instead of China Airlines's own: delta = Delta SkyMiles (creditStatus one of: SkyMiles Member, Silver Medallion, Gold Medallion, Platinum Medallion, Diamond Medallion); flying-club = Flying Club (creditStatus one of: Red, Silver, Gold); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_china_airlines_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_china_eastern_miles≈ 1387 tokens
China Eastern Eastern Miles for a China Eastern, Shanghai Airlines or China United ticket, from the fare plus the YQ fuel surcharge in yuan (CNY, whole ticket). Miles = fare x a coefficient by member level and sales channel (China Eastern app, website or 95530 / other channels: 1-star 0.264 / 0.24 up to Platinum 1.232 / 1.12), rounded down, no minimum. China Eastern does not say how a ticket in another currency is converted, so give the CNY amount. Progress toward the next level by yearly spend (2-star 3,000 up to Platinum 100,000 yuan; each level also needs qualifying segments or kilometres, named in the note); spend is the qualifying spend so far. Uses cwsi.net's calculator and the airline's published rules. Give the price in CNY, not US dollars. Unofficial.
Paramètres, retour & exemple (8)
Paramètreslevel· string · optionnel · S1 | S2 | S3 | S4 | S5 | S6 | SV | GD
Your Eastern Miles level when you fly. S1 = 1-star member (coefficient 0.264 or 0.24); S2 = 2-star member (0.44 or 0.4); S3 = 3-star member (0.66 or 0.6); S4 = 4-star member (0.792 or 0.72); S5 = 5-star member (0.88 or 0.8); S6 = 6-star member (0.968 or 0.88); SV = Silver card (SkyTeam Elite, 1.056 or 0.96); GD = Gold card (SkyTeam Elite Plus, 1.144 or 1.04); PT = Platinum card (SkyTeam Elite Plus, 1.232 or 1.12).price· number · optionnel
Fare plus YQ (CNY, whole ticket) in CNY. In yuan: the ticket price including the YQ fuel surcharge, for the whole ticket. China Eastern does not say how a ticket in another currency is converted. Required unless creditTo is given.spend· number · optionnel
Qualifying spend so far in the 12 months (CNY, optional). Used only for the progress toward the next level.channel· string · optionnel · OWN | OTH
Where the ticket was sold. OWN = China Eastern app, website or 95530 (higher coefficient); OTH = Any other channel (travel agents and other sellers). China Eastern pays a higher coefficient on its own channels.creditTo· string · optionnel · delta | flying-club | flying-blue
Credit the flights to a partner program instead of China Eastern's own: delta = Delta SkyMiles (creditStatus one of: SkyMiles Member, Silver Medallion, Gold Medallion, Platinum Medallion, Diamond Medallion); flying-club = Flying Club (creditStatus one of: Red, Silver, Gold); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_china_eastern_miles", "arguments": {"level": "S1", "price": 1, "spend": 1, "channel": "OWN", "creditTo": "delta", "creditClass": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_copa_airlines_miles≈ 1888 tokens
Copa Airlines ConnectMiles miles, qualifying miles and qualifying segments for Copa Airlines flights. Miles = distance x fare family % (Economy Basic 50, Economy Classic 100, Economy Full and Business Promo 175, Business Full 300), at least 500 per flight; qualifying miles are the same; booking classes G, I, N, P, X and Z earn nothing (noearn Y). PreferMember bonus on miles only (Silver 25%, Gold 50%, Platinum 75%, Presidential 100%). Progress toward Silver, Gold, Platinum and Presidential by qualifying miles (20,000 / 40,000 / 70,000 / 90,000) or segments in a calendar year; qm and qs are the totals so far. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (11)
Paramètresqm· number · optionnel
Qualifying miles you have this calendar year (optional). Used only for the progress toward the next PreferMember status.qs· number · optionnel
Qualifying segments you have this calendar year (optional). Economy Basic counts half a segment.fam· string · optionnel · EB | EC | EF | BP | BF
Fare family. EB = Economy Basic (Economy, 50%); EC = Economy Classic or Classic Flex (Economy, 100%); EF = Economy Full (Economy, 175%); BP = Business Promo (Business, 175%); BF = Business Full (Business, 300%). The fare family on your Copa Airlines ticket. Economy Basic earns half the distance; Business Full earns triple.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.noearn· string · optionnel · N | Y
Is your booking class G, I, N, P, X or Z?. N = No; Y = Yes (earns nothing). Copa Airlines says these classes earn no miles or segments. Choose No if you do not know.status· string · optionnel · NO | SI | GO | PL | PR
Your PreferProgram status. NO = Not a PreferMember; SI = Silver (+25%); GO = Gold (+50%); PL = Platinum (+75%); PR = Presidential (+100%). The PreferMember bonus is paid on award miles for Copa Airlines flights; it does not count toward status.creditTo· string · optionnel · united | aeroplan | flying-blue
Credit the flights to a partner program instead of Copa Airlines's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_copa_airlines_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_croatia_airlines_miles≈ 2153 tokens
Miles & More miles, Points, Qualifying Points and HON Circle Points for flights operated by Croatia Airlines (a Star Alliance member whose flights earn in Miles & More), by booking class (cls). Within Croatia (Domestic) and between two European countries (Cross-Border): fixed miles by class whatever the distance (Domestic 125 to 1,500, Cross-Border 125 to 2,000); Miles & More prints no table for other routes, so a flight outside Europe, or a domestic flight in another country, is refused with a message. I, N, R and X earn nothing. Points and Qualifying Points per flight: Economy 20, Business (C, D, Z) 40; HON Circle Points the same, in Business only. The status bonus of up to 50% more miles is not published as a rule and is not added. Algeria, Egypt, Libya, Morocco and Tunisia count as Europe; set tc to EU or AS for Turkey, Cyprus, Georgia, Armenia, Azerbaijan, Kazakhstan and Russia. Croatia flights booked through a Lufthansa Group channel earn by fare instead (calculate_lufthansa_miles). Progress toward Frequent Traveller (650 Points and 325 Qualifying Points), Senator (2,000 and 1,000) and HON Circle (6,000 HON Circle Points) in a calendar year; pts, qp and hp are the totals so far. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (12)
Paramètreshp· number · optionnel
HON Circle Points you have this year (optional). Only applies to some choices of the other fields; ignored otherwise.qp· number · optionnel
Qualifying Points you have this year (optional).tc· string · optionnel · EU | AS
Turkey, Cyprus, the Caucasus, Kazakhstan and Russia count as. EU = Europe; AS = Asia (outside Europe). These countries lie on two continents and Miles & More does not say which one it counts. Only applies to some choices of the other fields; ignored otherwise.cls· string · optionnel · C | D | Z | B | Y | M | A | F
Booking class. C = C (Business); D = D (Business); Z = Z (Business); B = B (Economy); Y = Y (Economy); M = M (Economy); A = A (Economy); F = F (Economy); H = H (Economy); J = J (Economy); G = G (Economy); O = O (Economy); Q = Q (Economy); K = K (Economy); V = V (Economy); S = S (Economy); W = W (Economy); E = E (Economy); L = L (Economy); P = P (Economy); T = T (Economy); U = U (Economy); I = I (earns nothing); N = N (earns nothing); R = R (earns nothing); X = X (earns nothing). The letter on your ticket. Business C, D and Z; the rest Economy. I, N, R and X earn nothing.pts· number · optionnel
Points you have this year (optional). Used only for the progress toward the next tier.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · MM | FT | SE | HC
Your Miles & More status. MM = Member (no status); FT = Frequent Traveller; SE = Senator; HC = HON Circle. Used for the progress toward the next tier. The bonus of up to 50% more miles for status holders is not published as a rule, so it is not added.creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of Croatia Airlines's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_croatia_airlines_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_delta_miles≈ 1109 tokens
Estimate what a Delta Air Lines ticket earns (miles or points, and status credit where it applies), using cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (8)
Paramètrescard· string · optionnel · none | BL | GO | PL | RE
Paying with a Delta Amex card. none = No; BL = Blue; GO = Gold; PL = Platinum; RE = Reserve.fare· string · optionnel · CR | EX | PB | BA
Fare type. CR = Classic (or Refundable); EX = Extra; PB = Basic (Comfort, First, Premium Select, One); BA = Main Basic (Basic Economy). Delta Comfort, First, Premium Select and Delta One earn as Classic or Extra, whichever you bought. Their Basic fares earn as Basic.price· number · optionnel
Ticket price in US dollars. Base fare plus carrier charges, without government taxes and fees (shown on your receipt). Required unless creditTo is given.status· string · optionnel · none | FO | GM | PM | DM
Your Medallion status. none = None; FO = Silver; GM = Gold; PM = Platinum; DM = Diamond.creditTo· string · optionnel · flying-club | flying-blue
Credit the flights to a partner program instead of Delta Air Lines's own: flying-club = Flying Club (creditStatus one of: Red, Silver, Gold); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_delta_miles", "arguments": {"card": "none", "fare": "CR", "price": 1, "status": "none", "creditTo": "flying-club", "creditClass": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_etihad_guest_miles≈ 2128 tokens
Etihad Guest Miles and Tier Miles for Etihad-marketed and operated flights on an Etihad ticket (number starting 607, 291 or 169; stock EY). Each route from Abu Dhabi (AUH) has a fixed base number from Etihad's own miles calculator (1,000 to 7,000, not the distance flown); a journey between two other cities is two flights via AUH, each on its own base. Guest Miles = base x fare-brand %, rounded half up: Economy (cabin Y) Basic 5% (15% if issued before 18 June 2026), Value 35, Comfort 75, Deluxe 125; Business (J) Value 100, Comfort 150 (200 if issued before 21 July 2025), Deluxe 250; First (F) Comfort 200 (300 before 21 July 2025), Deluxe 300 (issued: N from 18 Jun 2026, M 21 Jul 2025 to 17 Jun 2026, O before 21 Jul 2025). Tier bonus on paid fares: Silver 25%, Gold 50%, Platinum and Emerald 100% of the base, Guest Miles only. Tier Miles = the same share of the base, no bonus. Promo (award) seats (seat P) earn no Guest Miles; Tier Miles 0 (Value), 25% (Comfort), 50% (Deluxe). A city not on Etihad's list is refused. Other tickets (stock OT) earn by booking class and are not worked out (the message gives the table). Progress toward Silver 25,000, Gold 50,000 and Platinum 125,000 Tier Miles in 12 months (25% less from 18 March 2026 to 31 March 2027 for existing members); tm is the Tier Miles so far. Give segs: one entry per journey, in order, with from and to, the IATA codes of its two airports (required; the base numbers come from the table). Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (13)
Paramètrestm· number · optionnel
Tier Miles you have in the last 12 months (optional). Used only for the progress toward Silver, Gold and Platinum. Only applies to some choices of the other fields; ignored otherwise.seat· string · optionnel · C | P
Fare type. C = Paid fare; P = Promo seat (award). Promo seats are Etihad's award (miles) seats: no Guest Miles, Tier Miles on Comfort and Deluxe only. Only applies to some choices of the other fields; ignored otherwise.segs· array · optionnel
The flights, one way and in order, one entry per flight (1 to 4): from and to, the IATA codes of its two airports (required: the earn table is keyed by the airport pair); optional fromCountry and toCountry, the ISO 3166 two-letter country codes of its two airports.trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way. Only applies to some choices of the other fields; ignored otherwise.brand· string · optionnel · B | V | C | D
Fare brand. B = Basic; V = Value; C = Comfort; D = Deluxe. As on your booking. Basic is Economy only; First is Comfort or Deluxe. Only applies to some choices of the other fields; ignored otherwise.cabin· string · optionnel · Y | J | F
Cabin. Y = Economy; J = Business; F = First. The Residence is not a fare brand in Etihad's tables, so it is not offered. Only applies to some choices of the other fields; ignored otherwise.stock· string · optionnel · EY | OT
Ticket number starts with. EY = 607, 291 or 169 (Etihad ticket); OT = Another number (by booking class). Etihad's rates by fare brand apply to Etihad tickets (607, 291 or 169). Other tickets earn by booking class.issued· string · optionnel · N | M | O
Ticket issued. N = From 18 Jun 2026; M = 21 Jul 2025 to 17 Jun 2026; O = Before 21 Jul 2025. Economy Basic earned 15% before 18 June 2026; Business Comfort 200% and First Comfort 300% before 21 July 2025. Only applies to some choices of the other fields; ignored otherwise.status· string · optionnel · BR | SI | GO | PL | EM
Your Etihad Guest tier. BR = Bronze; SI = Silver; GO = Gold; PL = Platinum; EM = Emerald. The tier bonus adds Guest Miles (Silver 25%, Gold 50%, Platinum and Emerald 100% of the base). Tier Miles are the same for everyone. Only applies to some choices of the other fields; ignored otherwise.creditTo· string · optionnel · american | aeroplan | flying-blue
Credit the flights to a partner program instead of Etihad Airways's own: american = American AAdvantage (creditStatus one of: AAdvantage member, AAdvantage Gold, AAdvantage Platinum, AAdvantage Platinum Pro, AAdvantage Executive Platinum); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles).creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_etihad_guest_miles", "arguments": {"tm": 1, "seat": "C", "segs": [], "trip": "ow", "brand": "B", "cabin": "Y"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_eva_air_miles≈ 1787 tokens
EVA Air Infinity MileageLands Award Miles, Status Miles and qualifying flight sectors for EVA Air flights. Award Miles and Status Miles = distance x booking-class % (C 175; J 150; D, K 125; L, T 115; P, Y, B 100; M, H, Q 75; S, W, V 50; A and group tickets G 0), plus a tier bonus on Award Miles only on international flights (Silver 15%, Gold and Diamond 25%). Progress toward the next card by Status Miles or flights; sm and fl are the Status Miles and qualifying flights so far. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (10)
Paramètresfl· number · optionnel
Qualifying flights so far (optional). EVA Air and UNI Air international flights (whole flights). Used only for the progress.sm· number · optionnel
Status Miles you have so far (optional). Counted in the 12 months during your current tier. Used only for the progress.cls· string · optionnel · C | J | D | K | LT | P | YB | MHQ
Booking class. C = C (Business Up, 175%); J = J (Business Standard, 150%); D = D (Business Basic, 125%); K = K (Premium Economy Up, 125%); LT = L, T (Premium Economy Standard, 115%); P = P (Premium Economy Basic, 100%); YB = Y, B (Economy Up, 100%); MHQ = M, H, Q (Economy Standard, 75%); SWV = S, W, V (Economy Basic, 50%); A = A (Economy Discount, 0%); G = G (Group tickets, 0%). The letter on your ticket. The percentage is of the distance flown.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · GR | SI | GO | DI
Your Infinity MileageLands card. GR = Green Card; SI = Silver Card (+15% Award Miles); GO = Gold Card (+25% Award Miles); DI = Diamond Card (+25% Award Miles).creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of EVA Air's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_eva_air_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_finnair_avios≈ 1394 tokens
Finnair Plus Avios and tier points for a Finnair ticket. Both = (fare in EUR: the base fare plus any airline surcharge for the whole ticket, without taxes; plus travel extras on Finnair flights) x tier factor (Basic 6, Silver 7, Gold 8, Platinum 9, Platinum Lumo 10), rounded down. Set flt to CS for a Finnair codeshare flight (AY2501-AY7000) booked from 3 June 2025, where extras earn nothing. Progress toward Silver (15,000), Gold (45,000), Platinum (80,000) and Platinum Lumo (300,000) tier points; tp is the tier points so far. Uses cwsi.net's calculator and the airline's published rules. Give the price in EUR, not US dollars. Unofficial.
Paramètres, retour & exemple (9)
Paramètrestp· number · optionnel
Tier points you have so far (optional). Used only for the progress toward the next tier.flt· string · optionnel · AY | CS
Flight. AY = Finnair flight (AY0001-AY2000, AY7001-AY7500); CS = Codeshare flight (AY2501-AY7000, booked from 3 June 2025). The flight number on your ticket. Codeshare flights booked before 3 June 2025 earn by distance and are not covered here.price· number · optionnel
Fare paid (EUR, whole ticket) in EUR. In euros: the base fare plus any airline surcharge ("Extra fee" in the price breakdown) for the whole ticket, without taxes and airport charges. Finnair converts a fare paid in another currency to euros itself. Required unless creditTo is given.extras· number · optionnel
Travel extras (EUR, optional). The total price of travel extras bought for Finnair flights (for example bags or seats). They earn at the same rate as the fare. Only applies to some choices of the other fields; ignored otherwise.status· string · optionnel · BS | SV | GD | PT | LU
Your Finnair Plus tier when you fly. BS = Basic (6 per €1); SV = Silver (7 per €1); GD = Gold (8 per €1); PT = Platinum (9 per €1); LU = Platinum Lumo (10 per €1).creditTo· string · optionnel · american | alaska | ba-club
Credit the flights to a partner program instead of Finnair's own: american = American AAdvantage (creditStatus one of: AAdvantage member, AAdvantage Gold, AAdvantage Platinum, AAdvantage Platinum Pro, AAdvantage Executive Platinum); alaska = Atmos Rewards (creditStatus one of: Atmos Rewards member, Atmos Silver, Atmos Gold, Atmos Platinum, Atmos Titanium); ba-club = British Airways Club (creditStatus one of: Blue, Bronze, Silver, Gold). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_finnair_avios", "arguments": {"tp": 1, "flt": "AY", "price": 1, "extras": 1, "status": "BS", "creditTo": "american"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_flight_distance≈ 535 tokens
Great-circle distance in miles, nautical miles and kilometres for a route, leg by leg and in total, from cwsi.net's Great Circle Distance Calculator. Give airport codes joined by "-", e.g. ATL-SFO-ATL, with "~" between separate trips, e.g. ATL-SFO~SJC-ATL.
Paramètres, retour & exemple (1)
Paramètresroute· string · requis
Airport codes joined by "-" (spaces or commas also work), e.g. "ATL-SFO-ATL". Use "~" between separate trips, e.g. "ATL-SFO~SJC-ATL". Codes are 3 or 4 letters or digits; each trip needs 2 or more; at most 5 trips and 20 codes.
Exemple d'appel{"name": "calculate_flight_distance", "arguments": {"route": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"km": 1, "mi": 1, "nm": 1, "ok": true, "link": "texte", "trips": [], "unknown": []}} - calculate_flying_blue_miles≈ 1853 tokens
Estimate the Flying Blue Miles and XP an Air France or KLM ticket earns (set airline to KL for KLM). Miles = fare in EUR (base fare plus carrier surcharge, no taxes) x rate by level (Explorer 4, Silver 6, Gold 7, Platinum 8, Ultimate 9). XP per flight by cabin and distance band (Domestic = both airports in one country; Medium under 2,000 miles; Long 1 to 3,500; Long 2 to 5,000; Long 3 above). Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Uses cwsi.net's calculator and the airline's published rules. Give the price in EUR, not US dollars. Unofficial.
Paramètres, retour & exemple (11)
Paramètresxp· number · optionnel
XP you have so far (optional). Used only for the progress toward the next level.segs· array · requis
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 (E, P, B, F) 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way for XP. The fare above is for the whole ticket either way.cabin· string · optionnel · E | P | B | F
Cabin. E = Economy; P = Premium; B = Business; F = La Première (Air France). XP depend on the cabin and the distance band, not the booking class. La Première is Air France only.level· string · optionnel · EX | SV | GD | PL | UL
Your Flying Blue level. EX = Explorer (4 per euro); SV = Silver (6 per euro); GD = Gold (7 per euro); PL = Platinum (8 per euro); UL = Ultimate (9 per euro).price· number · optionnel
Ticket fare in euros (whole trip) in EUR. The base fare plus the carrier-imposed surcharge, without government taxes and airport charges, for the whole ticket. Enter it in euros; Flying Blue converts other currencies itself. Required unless creditTo is given.airline· string · optionnel · AF | KL
Airline. AF = Air France; KL = KLM.creditTo· string · optionnel · delta | flying-club
Credit the flights to a partner program instead of Air France's own: delta = Delta SkyMiles (creditStatus one of: SkyMiles Member, Silver Medallion, Gold Medallion, Platinum Medallion, Diamond Medallion); flying-club = Flying Club (creditStatus one of: Red, Silver, Gold). 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. The programs follow the airline in airline (AF: delta, flying-club; KL: delta, flying-club). Give the booking class letter as creditClass. The flights are segs (their miles), or creditFlights. No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_flying_blue_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_frontier_miles≈ 667 tokens
Estimate what a Frontier Airlines ticket earns (miles or points, and status credit where it applies), using cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (4)
Paramètrescard· string · optionnel · none | FC
Frontier Airlines Mastercard cardmember. none = No; FC = Yes (Cardmember rate).fare· string · optionnel · BF | EC | PR | BZ
Fare. BF = Basic Fare (basic rate); EC = Economy Bundle (bundle rate); PR = Premium Bundle (bundle rate); BZ = Business Bundle (bundle rate).price· number · requis
Amount paid to Frontier (fare, bundle, bags and seats; not taxes) in US dollars. Eligible Frontier purchases on this booking. Taxes and change or cancel fees do not earn.status· string · optionnel · Member | Elite Silver | Elite Gold | Elite Platinum | Elite Diamond
Your Frontier status. Member = Member; Elite Silver = Elite Silver; Elite Gold = Elite Gold; Elite Platinum = Elite Platinum; Elite Diamond = Elite Diamond.
Exemple d'appel{"name": "calculate_frontier_miles", "arguments": {"price": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_iberia_avios≈ 2030 tokens
Iberia 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.
Paramètres, retour & exemple (12)
Paramètresep· number · optionnel
Elite Points you have since 1 April (optional). Used only for the progress toward the next tier.fl· number · optionnel
Qualifying flights you have since 1 April (optional). Plata, Oro and Platino can also be reached with 20, 40 or 90 flights.fare· string · optionnel · B | O | C | F
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).segs· array · requis
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· string · optionnel · CL | PL | OR | PT | PP
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.trip· string · optionnel · ow | rt
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.cabin· string · optionnel · Y | W | C
Cabin. Y = Economy; W = Premium Economy (long haul); C = Business.price· number · optionnel
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· string · optionnel · alaska
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· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_iberia_avios", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_ita_airways_miles≈ 2130 tokens
Miles & More miles, Points, Qualifying Points and HON Circle Points for flights operated by ITA Airways (ITA joined Star Alliance on 1 April 2026; its Volare program ended and ITA flights earn in Miles & More), by booking class. Within one European country and between European countries: fixed miles by class (European Domestic, European Cross-Border); worldwide: distance x class factor (25% to 200%) with a minimum per class. A, F, I, O, R and X earn nothing; E, G and N (Premium Economy) are listed for worldwide flights only. Points and Qualifying Points per flight by cabin, continental or intercontinental (Economy 20/60, Premium Economy 20/80, Business 40/200; HON Circle Points in Business only). Algeria, Egypt, Libya, Morocco and Tunisia count as Europe; set tc to EU or AS for Turkey, Cyprus, Georgia, Armenia, Azerbaijan, Kazakhstan and Russia. ITA flights booked through a Lufthansa Group channel earn by fare instead (calculate_lufthansa_miles). Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (12)
Paramètreshp· number · optionnel
HON Circle Points you have this year (optional). Only applies to some choices of the other fields; ignored otherwise.qp· number · optionnel
Qualifying Points you have this year (optional).tc· string · optionnel · EU | AS
Turkey, Cyprus, the Caucasus, Kazakhstan and Russia count as. EU = Europe; AS = Asia (outside Europe). These countries lie on two continents and Miles & More does not say which one it counts. Only applies to some choices of the other fields; ignored otherwise.cls· string · optionnel · C | D | J | Z | P | E | G | N
Booking class. C = C (Business 200%); D = D (Business 200%); J = J (Business 200%); Z = Z (Business 150%); P = P (Business 100%); E = E (Premium Economy 150%); G = G (Premium Economy 150%); N = N (Premium Economy 100%); Y = Y (Economy 150%); B = B (Economy 150%); H = H (Economy 100%); M = M (Economy 100%); U = U (Economy 100%); Q = Q (Economy 50%); S = S (Economy 50%); V = V (Economy 50%); W = W (Economy 50%); K = K (Economy 25%); L = L (Economy 25%); T = T (Economy 25%); A = A (earns nothing); F = F (earns nothing); I = I (earns nothing); O = O (earns nothing); R = R (earns nothing); X = X (earns nothing). The letter on your ticket. Business C, D, J, Z, P; Premium Economy E, G, N; the rest Economy. A, F, I, O, R and X earn nothing.pts· number · optionnel
Points you have this year (optional). Used only for the progress toward the next tier.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · MM | FT | SE | HC
Your Miles & More status. MM = Member (no status); FT = Frequent Traveller; SE = Senator; HC = HON Circle. Used for the progress toward the next tier. The bonus of up to 50% more miles for status holders is not published as a rule, so it is not added.creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of ITA Airways's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_ita_airways_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_japan_airlines_miles≈ 1882 tokens
Japan Airlines (JAL Mileage Bank): the flight miles, Mile-Up Bonus and FLY ON Points a JAL-operated itinerary earns. Flight miles = distance x class rate (30% to 150%; a Japan domestic sector on an international ticket uses its own table). FLY ON Points = flight miles x 2 within Japan, x 1.5 between Japan and Asia, Oceania or Vladivostok (cwsi.net's reading; JAL publishes no country list), x 1 otherwise, plus a 400-point flight bonus in most classes. 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 (needed to spot Vladivostok, VVO, which shares RU with the rest of Russia). Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (9)
Paramètrescls· string · optionnel · F | A | J | C | D | I | X | W
Booking class. F = F (First 150%); A = A (First 150%); J = J (Business 125%); C = C (Business 125%); D = D (Business 125%); I = I (Business 125%); X = X (Business 70%); W = W (Premium Economy 100%); R = R (Premium Economy 100%); E = E (Premium Economy 70%); Y = Y (100%); B = B (100%); H = H (70%); K = K (70%); M = M (70%); L = L (50%); V = V (50%); S = S (50%); O = O (30%); Z = Z (30%); G = G (30%); Q = Q (30%); N = N (30%). The letter on your ticket. Japan domestic flights on the same ticket earn on JAL's domestic sector table, which uses other rates.fop· number · optionnel
FLY ON Points you have this year (optional). Used only for the progress toward the next level.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · NO | JG | CR | SA | JP | DI
Your JAL level. NO = None; JG = JAL Global Club (+35%); CR = Crystal (+55%); SA = Sapphire (+105%); JP = JGC Premier (+105%); DI = Diamond (+130%). Sets the Mile-Up Bonus on flight miles. It does not add FLY ON Points.creditTo· string · optionnel · american | alaska | flying-blue | ba-club
Credit the flights to a partner program instead of Japan Airlines's own: american = American AAdvantage (creditStatus one of: AAdvantage member, AAdvantage Gold, AAdvantage Platinum, AAdvantage Platinum Pro, AAdvantage Executive Platinum); alaska = Atmos Rewards (creditStatus one of: Atmos Rewards member, Atmos Silver, Atmos Gold, Atmos Platinum, Atmos Titanium); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate); ba-club = British Airways Club (creditStatus one of: Blue, Bronze, Silver, Gold). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_japan_airlines_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_jetblue_points≈ 852 tokens
Estimate what a JetBlue ticket earns (miles or points, and status credit where it applies), using cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (7)
Paramètrescard· string · optionnel · none | JB | JP | JBZ | JPR
Paying with a JetBlue card. none = No; JB = JetBlue Card (+3 per $1); JP = Plus (+6 per $1); JBZ = Business (+6 per $1); JPR = Premier (+6 per $1).fare· string · optionnel · base | standard | flex
Fare. base = Base (1 per $1); standard = Standard (3 per $1); flex = Flex (3 per $1). Only applies to some choices of the other fields; ignored otherwise.cabin· string · optionnel · main | evenmore | mint
Cabin. main = Main; evenmore = EvenMore; mint = Mint.mfare· string · optionnel · standard | flex
Fare. standard = Standard (3 per $1); flex = Flex (3 per $1). Mint is sold as Standard or Flex. No Base fare in Mint. Only applies to some choices of the other fields; ignored otherwise.price· number · requis
Fare paid (before taxes and fees) in US dollars. Points and tiles are earned on the fare before taxes and fees.direct· string · optionnel · 0 | 1
Booked on jetblue.com or the app. 1 = Yes; 0 = No (Travel agent or other site). Booking direct earns the same points again.status· string · optionnel · General Member | Mosaic 1 | Mosaic 2 | Mosaic 3 | Mosaic 4
Your TrueBlue status. General Member = General Member (No status); Mosaic 1 = Mosaic 1 (+3 per $1); Mosaic 2 = Mosaic 2 (+3 per $1); Mosaic 3 = Mosaic 3 (+4 per $1); Mosaic 4 = Mosaic 4 (+5 per $1).
Exemple d'appel{"name": "calculate_jetblue_points", "arguments": {"price": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_korean_air_miles≈ 2058 tokens
Korean Air SKYPASS miles (flight distance x booking class percentage, from Korean Air's current international fare table: Q and T 70%, V 110%, D, I, R and C 125%, J 135%, F 200%, other classes 100%) and flight points (1 per flight within Korea, 2 per international flight) for one or more Korean Air flights, with progress toward Morning Calm, Morning Calm Select, Morning Calm Premium and Million Miler. Flights within Korea earn flight points only here (the domestic mileage table is not covered). Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (11)
Paramètresmi· number · optionnel
Miles toward status so far (optional). Miles counted toward Morning Calm or Morning Calm Select in your current period. Used only for the progress. Only applies to some choices of the other fields; ignored otherwise.cls· string · optionnel · F | J | C | D | I | R | V | W
Booking class. F = F (First Class, 200%); J = J (Prestige Flex, 135%); C = C (Prestige Plus, 125%); D = D (Prestige Standard, 125%); I = I (Prestige Standard, 125%); R = R (Prestige Standard, 125%); V = V (Premium Standard, Flex, 110%); W = W (Premium Standard, Flex, 100%); Y = Y (Economy Flex, 100%); B = B (Economy Flex, 100%); M = M (Economy Flex, 100%); S = S (Economy Standard, 100%); H = H (Economy Standard, 100%); E = E (Economy Standard, 100%); K = K (Economy Standard, 100%); L = L (Economy Saver, Standard, 100%); U = U (Economy Saver, Standard, 100%); Q = Q (Economy Saver, Standard, 70%); T = T (Economy Saver, Standard, 70%). The letter on your ticket. L, U, Q and T are sold as both Saver and Standard and earn the same either way.pts· number · optionnel
Flight points so far (optional). 1 point per Korean Air flight within Korea, 2 per international flight. Used only for the progress. Only applies to some choices of the other fields; ignored otherwise.life· number · optionnel
Lifetime Korean Air miles so far (optional). Miles flown on Korean Air and SkyTeam airlines since you joined. Used only for the progress toward Morning Calm Premium and Million Miler. Only applies to some choices of the other fields; ignored otherwise.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · SK | MC | MS | MP | MM
Your SKYPASS tier. SK = SKYPASS Club; MC = Morning Calm; MS = Morning Calm Select; MP = Morning Calm Premium (Lifetime); MM = Million Miler (Lifetime).creditTo· string · optionnel · alaska | delta | flying-club | flying-blue
Credit the flights to a partner program instead of Korean Air's own: alaska = Atmos Rewards (creditStatus one of: Atmos Rewards member, Atmos Silver, Atmos Gold, Atmos Platinum, Atmos Titanium); delta = Delta SkyMiles (creditStatus one of: SkyMiles Member, Silver Medallion, Gold Medallion, Platinum Medallion, Diamond Medallion); flying-club = Flying Club (creditStatus one of: Red, Silver, Gold); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_korean_air_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_lot_polish_airlines_miles≈ 2088 tokens
Miles & More miles, Points, Qualifying Points and HON Circle Points for flights operated and ticketed by LOT Polish Airlines (ticket number 080), by booking class. Within one European country and between European countries: fixed miles by class; international: distance x class factor (25% to 200%) with a minimum per class. I, J, N and X earn nothing. Points and Qualifying Points per flight by cabin, continental or intercontinental (Economy 20/60, Premium Economy 20/80, Business 40/200; HON Circle Points in Business only). Algeria, Egypt, Libya, Morocco and Tunisia count as Europe; set tc to EU or AS for Turkey, Cyprus, Georgia, Armenia, Azerbaijan, Kazakhstan and Russia. LOT flights booked through a Lufthansa Group channel earn by fare instead (calculate_lufthansa_miles). Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (12)
Paramètreshp· number · optionnel
HON Circle Points you have this year (optional). Only applies to some choices of the other fields; ignored otherwise.qp· number · optionnel
Qualifying Points you have this year (optional).tc· string · optionnel · EU | AS
Turkey, Cyprus, the Caucasus, Kazakhstan and Russia count as. EU = Europe; AS = Asia (outside Europe). These countries lie on two continents and Miles & More does not say which one it counts. Only applies to some choices of the other fields; ignored otherwise.cls· string · optionnel · C | D | F | Z | P | A | R | Y
Booking class. C = C (Business 200%); D = D (Business 200%); F = F (Business 150%); Z = Z (Business 150%); P = P (Premium Economy 160%); A = A (Premium Economy 150%); R = R (Premium Economy 100%); Y = Y (Economy 150%); B = B (Economy 150%); M = M (Economy 100%); E = E (Economy 100%); H = H (Economy 100%); K = K (Economy 100%); Q = Q (Economy 100%); G = G (Economy 50%); S = S (Economy 50%); T = T (Economy 50%); V = V (Economy 50%); L = L (Economy 25%); O = O (Economy 25%); U = U (Economy 25%); W = W (Economy 25%); I = I (earns nothing); J = J (earns nothing); N = N (earns nothing); X = X (earns nothing). The letter on your ticket. Business C, D, F, Z; Premium Economy P, A, R; the rest Economy. I, J, N and X earn nothing.pts· number · optionnel
Points you have this year (optional). Used only for the progress toward the next tier.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · MM | FT | SE | HC
Your Miles & More status. MM = Member (no status); FT = Frequent Traveller; SE = Senator; HC = HON Circle. Used for the progress toward the next tier. The bonus of up to 25% more miles for status holders is not published as a rule, so it is not added.creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of LOT Polish Airlines's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_lot_polish_airlines_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_lufthansa_miles≈ 2058 tokens
Estimate the Miles & More award miles, Points, Qualifying Points and HON Circle Points for a Lufthansa, SWISS, Austrian or Brussels Airlines ticket. Award miles = fare in EUR x 4 (x 6 with Frequent Traveller, Senator or HON Circle status), at least 125 per flight. Points per flight by cabin: continental 20/20/40/40, intercontinental 60/80/200/400 (Economy/Premium Economy/Business/First). Give the one-way flights as segs, one entry per flight with the ISO country codes of its two airports (both on one continent = continental; Algeria, Egypt, Libya, Morocco and Tunisia count as Europe; for Turkey, Russia and other countries on two continents set kind to C or I), or give only the numbers of continental (cont) and intercontinental (icf) flights. Uses cwsi.net's calculator and the airline's published rules. Give the price in EUR, not US dollars. Unofficial.
Paramètres, retour & exemple (15)
Paramètreshp· number · optionnel
HON Circle Points you have this year (optional). Only applies to some choices of the other fields; ignored otherwise.op· string · optionnel · LH | LX | OS | SN
Operated by. LH = Lufthansa; LX = SWISS; OS = Austrian; SN = Brussels. All four earn the same with Miles & More.qp· number · optionnel
Qualifying Points you have this year (optional).icf· number · optionnel
Intercontinental flights. One way. Airports on two different continents.pts· number · optionnel
Points you have this year (optional). Used only for the progress toward the next tier.cont· number · optionnel
Continental flights. One way. Filled in from the airports above; you can also type it. Both airports on the same continent, including domestic flights.segs· array · optionnel
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; optional kind, C (continental) or I (intercontinental), which overrides the country table; 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip (same flights back). Round trip counts the same flights back. The fare above is for the whole ticket either way.cabin· string · optionnel · Y | W | C | F
Cabin. Y = Economy; W = Premium Economy; C = Business; F = First.price· number · optionnel
Fare in euros in EUR. In euros (EUR), for the whole ticket: the base fare plus the surcharges the airline adds, without government taxes and airport charges. Miles & More converts a fare in another currency to euros itself. Required unless creditTo is given.status· string · optionnel · MM | FT | SE | HC
Your Miles & More status. MM = Member (no status); FT = Frequent Traveller; SE = Senator; HC = HON Circle. Frequent Traveller, Senator and HON Circle earn 6 award miles per euro instead of 4.creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of Lufthansa's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. The programs follow the airline in op (LH: united, aeroplan; LX: united, aeroplan; OS: united, aeroplan; SN: united, aeroplan). Give the booking class letter as creditClass. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_lufthansa_miles", "arguments": {"hp": 1, "op": "LH", "qp": 1, "icf": 1, "pts": 1, "cont": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_malaysia_airlines_enrich_points≈ 2024 tokens
Malaysia Airlines Enrich Points and Elite Points for a Malaysia Airlines ticket. Enrich Points = the fare in Malaysian Ringgit (MYR: base fare plus fuel surcharge and administration charge, no government taxes, whole ticket) x tier rate (Blue 1.5, Silver 1.8, Gold 2.2, Platinum 2.5), rounded down. Malaysia Airlines converts a fare in another currency itself and does not publish the rate, so give the MYR amount. Elite Points are fixed per flight by distance zone and cabin (Economy 1 to 10, Business Class 2 to 15, Business Suite 3 to 20), worked out only for a flight to or from Kuala Lumpur (KUL): Malaysia Airlines does not say how another flight is zoned, so it is shown as not worked out. Progress toward Silver (35), Gold (70) and Platinum (140) Elite Points in a calendar year; ep is the Elite Points 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, from and to IATA airport codes (needed for Elite Points) and optionally its own cabin (Y, C or S). Uses cwsi.net's calculator and the airline's published rules. Give the price in MYR, not US dollars. Unofficial.
Paramètres, retour & exemple (10)
Paramètresep· number · optionnel
Elite Points you have this calendar year (optional). Used only for the progress toward the next tier.segs· array · requis
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, C, S) 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· string · optionnel · BL | SL | GD | PT
Your Enrich tier. BL = Blue (1.5 per MYR 1); SL = Silver (1.8 per MYR 1); GD = Gold (2.2 per MYR 1); PT = Platinum (2.5 per MYR 1). Sets the Enrich Points per MYR 1. Silver is oneworld Ruby, Gold is Sapphire and Platinum is Emerald.trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way for Elite Points. The fare above is for the whole ticket either way.cabin· string · optionnel · Y | C | S
Cabin. Y = Economy; C = Business Class; S = Business Suite. Business Suite is the A350 suite product.price· number · optionnel
Ticket fare in MYR (whole trip) in MYR. In Malaysian Ringgit: the base fare plus the fuel surcharge and administration charge, without government taxes and fees, for the whole ticket. Malaysia Airlines converts a fare paid in another currency itself and does not publish the rate. Required unless creditTo is given.creditTo· string · optionnel · american | alaska | flying-blue | ba-club
Credit the flights to a partner program instead of Malaysia Airlines's own: american = American AAdvantage (creditStatus one of: AAdvantage member, AAdvantage Gold, AAdvantage Platinum, AAdvantage Platinum Pro, AAdvantage Executive Platinum); alaska = Atmos Rewards (creditStatus one of: Atmos Rewards member, Atmos Silver, Atmos Gold, Atmos Platinum, Atmos Titanium); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate); ba-club = British Airways Club (creditStatus one of: Blue, Bronze, Silver, Gold). 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· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_malaysia_airlines_enrich_points", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_qantas_points≈ 2405 tokens
Qantas Points and Status Credits for flights marketed by Qantas (QF), from Qantas's earning tables: a fixed amount per flight by route table (or distance band) and earn category (cat; get_fare_classes for QF shows which booking classes fall in each category), plus the Status Bonus (points only) and the Minimum Points Guarantee. 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: Qantas picks its route tables (Sydney to London, Perth to Singapore, Sydney to Dallas and so on) from the airports, so without from/to a flight such as Australia to Europe falls back to the distance band. For the USA and Canada, which Qantas splits into East and West Coast tables without listing cities, set table on that flight (for example EWC or EEC); table BND forces the distance band. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (9)
Paramètressc· number · optionnel
Status Credits you have so far (optional). Used only for the progress toward the next tier.cat· string · optionnel · DE | EC | FE | DPE | PE | FPE | DB | BU
Earn category. DE = Discount Economy (E N O Q; dom. E G L M N O Q S V); EC = Economy (G K L M S V); FE = Flexible Economy (B H Y; dom. B H K Y); DPE = Discount Premium Economy (T; dom. T); PE = Premium Economy (R; dom. R); FPE = Flexible Premium Economy (W; dom. W); DB = Discount Business (I); BU = Business (D; dom. D I); FB = Flexible Business (C J; dom. C J); FI = First (A F). The fare type on your ticket. Under each: the international booking classes, then the classes on flights within Australia (dom.). On domestic flights there is no Discount Business; class I is Business.segs· array · requis
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 table, the key of a route table for that flight (ENZ, EAS, EHI, EIN, EJB, ESC, EDF, EWC, EEC, WSE, WNE, WDX, WEU, WJB, NDF, NSC, NEC, DEC, DWC, CWC, XEU, UAS, THK, BND); optional from and to, the IATA codes of its two airports, which label the breakdown and pick the route tables named by airport.trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · BR | SV | GD | PL | P1
Your Qantas Frequent Flyer tier. BR = Bronze; SV = Silver (+50% points); GD = Gold (+75% points); PL = Platinum (+100% points); P1 = Platinum One (+100% points). The Status Bonus adds Qantas Points, never Status Credits.creditTo· string · optionnel · american | alaska | flying-blue | ba-club
Credit the flights to a partner program instead of Qantas's own: american = American AAdvantage (creditStatus one of: AAdvantage member, AAdvantage Gold, AAdvantage Platinum, AAdvantage Platinum Pro, AAdvantage Executive Platinum); alaska = Atmos Rewards (creditStatus one of: Atmos Rewards member, Atmos Silver, Atmos Gold, Atmos Platinum, Atmos Titanium); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate); ba-club = British Airways Club (creditStatus one of: Blue, Bronze, Silver, Gold). 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.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_qantas_points", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_qatar_airways_avios≈ 1716 tokens
Qatar Airways Privilege Club Avios for flights Qatar Airways sells and operates. Avios = distance x booking-class % (F, A 300; C, J 200; I, D 175; R 125; P 75; H, B, Y 100; S, V, L, M, K 75; O, T, Q, N, G 50; W 25), plus a tier bonus of 25% (Silver), 75% (Gold) or 100% (Platinum) of the distance, rounded per flight. Qpoints are not calculated (Qatar Airways publishes them only in its own calculator). Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (8)
Paramètrescls· string · optionnel · FA | CJ | ID | R | P | HBY | SVLMK | OTQN
Booking class. FA = F, A (First Elite, 300%); CJ = C, J (Business Elite, 200%); ID = I, D (Business Comfort, 175%); R = R (Business Classic, 125%); P = P (Business Lite, 75%); HBY = H, B, Y (Economy Comfort, 100%); SVLMK = S, V, L, M, K (Economy Convenience, 75%); OTQN = O, T, Q, N (Economy Classic, 50%); G = G (Economy Group, 50%); W = W (Economy Lite, 25%). The letter on your ticket. The percentage is of the distance flown.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · BU | SI | GO | PL
Your Privilege Club tier. BU = Burgundy; SI = Silver (+25% flown); GO = Gold (+75% flown); PL = Platinum (+100% flown). The tier bonus is paid on flights marketed and operated by Qatar Airways.creditTo· string · optionnel · american | alaska | ba-club
Credit the flights to a partner program instead of Qatar Airways's own: american = American AAdvantage (creditStatus one of: AAdvantage member, AAdvantage Gold, AAdvantage Platinum, AAdvantage Platinum Pro, AAdvantage Executive Platinum); alaska = Atmos Rewards (creditStatus one of: Atmos Rewards member, Atmos Silver, Atmos Gold, Atmos Platinum, Atmos Titanium); ba-club = British Airways Club (creditStatus one of: Blue, Bronze, Silver, Gold). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_qatar_airways_avios", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_royal_air_maroc_miles≈ 1951 tokens
Royal Air Maroc Safar Flyer Award Miles, Status Miles and Status Flights for Royal Air Maroc flights. Award Miles = distance x fare family % (fam: Eco Essential 50, Eco Classic 100, Family Classic 100, Eco Flex 150, Biz Classic 150, Biz Flex 200), rounded down per flight; Status Miles are the same. The Silver, Gold and Platinum bonus (50%, 75%, 100%) adds Award Miles only. Royal Air Maroc publishes no minimum for short flights, so none is applied, and no fare-family weighting for Status Flights, so each flight counts as one. Set noearn to Y for an award, Cash and Miles or E-class-without-luggage ticket (earns nothing). Progress toward Silver (20,000 Status Miles or 15 Status Flights), Gold (35,000 or 30) and Platinum (75,000 or 75) in a calendar year; qm and qf are the totals so far. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (11)
Paramètresqf· number · optionnel
Status Flights you have this calendar year (optional). Each flight flown counts as one.qm· number · optionnel
Status Miles you have this calendar year (optional). Used only for the progress toward the next Safar Flyer status.fam· string · optionnel · EE | EC | FC | EF | BC | BF
Fare family. EE = Eco Essential (Economy, 50%); EC = Eco Classic (Economy, 100%); FC = Family Classic (Economy, 100%); EF = Eco Flex (Economy, 150%); BC = Biz Classic (Business, 150%); BF = Biz Flex (Business, 200%). The fare family on your Royal Air Maroc ticket. Eco Essential earns half the distance; Biz Flex earns double.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.noearn· string · optionnel · N | Y
Is it an award ticket, a Cash and Miles ticket or an E class booking without luggage?. N = No; Y = Yes (earns nothing). Royal Air Maroc says these earn no Miles. Choose No if you do not know.status· string · optionnel · BL | SI | GO | PL
Your Safar Flyer status. BL = Blue or not yet a member; SI = Silver (+50%); GO = Gold (+75%); PL = Platinum (+100%). The Silver, Gold and Platinum bonus is paid on Award Miles for Royal Air Maroc flights; it does not count toward status.creditTo· string · optionnel · american | alaska | ba-club
Credit the flights to a partner program instead of Royal Air Maroc's own: american = American AAdvantage (creditStatus one of: AAdvantage member, AAdvantage Gold, AAdvantage Platinum, AAdvantage Platinum Pro, AAdvantage Executive Platinum); alaska = Atmos Rewards (creditStatus one of: Atmos Rewards member, Atmos Silver, Atmos Gold, Atmos Platinum, Atmos Titanium); ba-club = British Airways Club (creditStatus one of: Blue, Bronze, Silver, Gold). 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.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_royal_air_maroc_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_royal_jordanian_miles≈ 1939 tokens
Royal Jordanian Royal Club Award Miles and segments for Royal Jordanian flights. Award Miles = distance x a % set by the fare family (fam: Economy Saver, Economy Plus, Economy Flexi, Business Saver, Business Plus, Business Flexi) and the tier (Bronze Sunbird 50% to 200%, up to Platinum Hawk 125% to 275%), rounded down, no minimum. Each flight counts 1 segment (0.5 between Amman and Aqaba or Tel Aviv, which needs from and to). Set noearn to Y for an award ticket or one at a 50% discount or more (earns nothing). Tier Miles are not calculated. Progress toward Silver Jay (14 segments), Gold Sparrow (30) and Platinum Hawk (46) in 12 months; qs is the segments so far. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (10)
Paramètresqs· number · optionnel
Segments you have in the last 12 months (optional). Used only for the progress toward the next Royal Club tier. Amman-Aqaba and Amman-Tel Aviv count half.fam· string · optionnel · ES | EP | EF | BS | BP | BF
Fare family. ES = Economy Saver (Economy, classes O, P, W); EP = Economy Plus (Economy, classes L, V, S, N, Q); EF = Economy Flexi (Economy, classes Y, B, H, K, M); BS = Business Saver (Business, classes I, Z); BP = Business Plus (Business, classes C, D); BF = Business Flexi (Business, classes J). The fare family on your Royal Jordanian ticket. The booking classes shown are as listed in Royal Jordanian's Tier Miles table; its Award Miles table names the families without letters, so the match is by family name (our reading).segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.noearn· string · optionnel · N | Y
Is it an award ticket or a ticket at a 50% discount or more?. N = No; Y = Yes (earns nothing). Royal Jordanian says these tickets earn no Award Miles or Tier Miles. Choose No if you do not know.status· string · optionnel · BR | SI | GO | PL
Your Royal Club tier. BR = Bronze Sunbird; SI = Silver Jay (+25 points); GO = Gold Sparrow (+50 points); PL = Platinum Hawk (+75 points). The tier is built into the percentage: each step up adds 25 points to the fare family's percentage.creditTo· string · optionnel · american | alaska | ba-club
Credit the flights to a partner program instead of Royal Jordanian's own: american = American AAdvantage (creditStatus one of: AAdvantage member, AAdvantage Gold, AAdvantage Platinum, AAdvantage Platinum Pro, AAdvantage Executive Platinum); alaska = Atmos Rewards (creditStatus one of: Atmos Rewards member, Atmos Silver, Atmos Gold, Atmos Platinum, Atmos Titanium); ba-club = British Airways Club (creditStatus one of: Blue, Bronze, Silver, Gold). 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.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_royal_jordanian_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_sas_points≈ 1888 tokens
SAS EuroBonus Level points and Bonus points for SAS flights: a fixed number per flight by route zone, ticket type (fare: Light, Standard, Flex, Premium, Premium Flex, Business, Business Flex) and booking class (cls), from SAS's tables. Zones: Domestic (both airports in one of Denmark, Norway, Sweden), Scandinavia, Europe, and three long-haul tables by city (Boston, New York, Toronto; Beijing, Atlanta, Chicago, Washington, Mumbai; Bangkok, Seoul, Tokyo, Miami, Los Angeles, San Francisco, Seattle); other long-haul routes are not priced. Silver, Gold and Diamond add 25%, 50% or 75% to Bonus points only. Progress toward Silver (20,000), Gold (45,000) and Diamond (90,000) Level points or 10 / 45 / 90 qualifying flights; lp and qf are the totals so far. Give segs: one entry per one-way flight, in order, with the ISO country codes of its two airports and from/to IATA airport codes (needed for the long-haul tables, which SAS names by city); no miles: distance does not matter on SAS. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (11)
Paramètreslp· number · optionnel
Level points you have so far (optional). Used only for the progress toward Silver, Gold and Diamond.qf· number · optionnel
Qualifying flights you have so far (optional). Used only for the qualifying flights count.cls· string · optionnel · C | D | Z | J | A | P | B | S
Booking class. C = C; D = D; Z = Z; J = J; A = A; P = P; B = B; S = S; Y = Y; E = E; H = H; M = M; Q = Q; W = W; G = G; K = K; L = L; N = N; O = O; R = R; T = T; U = U; V = V. The letter on your ticket. The same letter is sold under several ticket types, so choose both.fare· string · optionnel · L | S | F | P | PF | B | BF
Ticket type. L = Light; S = Standard; F = Flex; P = Premium; PF = Premium Flex; B = Business; BF = Business Flex. As shown on your booking. SAS's tables list Premium tickets on domestic flights, Business on flights within Scandinavia and Europe, and both on long-haul flights.segs· array · optionnel
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; 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · M | S | G | D
Your EuroBonus level. M = Member; S = Silver (+25% Bonus points); G = Gold (+50% Bonus points); D = Diamond (+75% Bonus points).creditTo· string · optionnel · delta | flying-club | flying-blue
Credit the flights to a partner program instead of SAS's own: delta = Delta SkyMiles (creditStatus one of: SkyMiles Member, Silver Medallion, Gold Medallion, Platinum Medallion, Diamond Medallion); flying-club = Flying Club (creditStatus one of: Red, Silver, Gold); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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. The booking class is cls (or creditClass). Give the flights as creditFlights (one entry per flight with its great-circle miles).creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_sas_points", "arguments": {"lp": 1, "qf": 1, "cls": "C", "fare": "L", "segs": [], "trip": "ow"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_shenzhen_airlines_miles≈ 2056 tokens
Shenzhen Airlines PhoenixMiles mileage (in kilometres) and qualifying segments for Shenzhen Airlines flights. PhoenixMiles is the Air China group programme (calculate_air_china_miles covers Air China flights). Mileage = distance in km (the great-circle miles x 1.609344; PhoenixMiles uses the IATA distance) x booking-class % (25% to 300%), at least 800 km in Business (J, C, D, Z, R) and 500 in Premium Economy and Economy; where Shenzhen prints two rates (J, R, B, U), the first is a flight within Mainland China (both airports CN) and the second an international or regional flight. Classes I, X and N earn nothing. The 25/30/50% elite bonus is a note only, and the flight is not added to the progress (PhoenixMiles does not say whether qualifying kilometres equal the mileage earned). Cards need Silver 40,000, Gold 80,000 or Platinum 160,000 qualifying km, or 25 / 40 / 90 qualifying segments, in 12 months; qk and qs are the member's own totals so far, used only for the progress. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (10)
Paramètresqk· number · optionnel
Qualifying kilometres you have in the last 12 months (optional). Used only for the progress toward the next card; the flight is not added.qs· number · optionnel
Qualifying segments you have in the last 12 months (optional). Segments can be fractions, for example 1.1 in Y. Used only for the progress toward the next card; the flight is not added.cls· string · optionnel · J | C | D | Z | R | G | E | Y
Booking class. J = J (Business 300% / 250%); C = C (Business 200%); D = D (Business 150%); Z = Z (Business 125%); R = R (Business 110% / 125%); G = G (Premium Economy 110%); E = E (Premium Economy 90%); Y = Y (Economy 110%); B = B (Economy 100% / 110%); M = M (Economy 100%); U = U (Economy 100% / 75%); H = H (Economy 75%); Q = Q (Economy 75%); V = V (Economy 75%); W = W (Economy 50%); S = S (Economy 50%); T = T (Economy 50%); L = L (Economy 25%); K = K (Economy 25%); P = P (Economy 25%); A = A (Economy 25%); I = I (earns nothing); X = X (earns nothing); N = N (earns nothing). The letter on your Shenzhen Airlines ticket. A class with two percentages pays the first on flights within Mainland China and the second on international and regional flights.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · NO | SI | GO | PL
Your PhoenixMiles card. NO = Not an elite member; SI = Silver (+25%); GO = Gold (+30%); PL = Platinum (+50%). Elite members earn extra mileage on Air China group flights. It is shown as a note, not added, because PhoenixMiles does not say what it is a percentage of.creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of Shenzhen Airlines's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_shenzhen_airlines_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_singapore_airlines_miles≈ 1742 tokens
Estimate the KrisFlyer miles and Elite miles a Singapore Airlines flight earns. Miles = great-circle miles x booking class % (F/A 200; Z/C/J 150; U, D 125; S/T 125; L/P, R 100; Y/B/E 100; M/H/W 75; Q/N, V/K, G 50). Elite miles use the same %. Elite Silver and PPS Club add 25% of miles flown (not on Q, N, V, K, G); Elite Gold gets none here, as Singapore Airlines publishes no figure for it; tier bonuses are not Elite miles. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (9)
Paramètresem· number · optionnel
Elite miles you have so far (optional). Used only for the progress toward Elite Silver and Elite Gold.cls· string · optionnel · FA | ZCJ | U | D | ST | LP | R | YBE
Booking class. FA = F, A (Suites / First, 200%); ZCJ = Z, C, J (Business Flexi, 150%); U = U (Business Standard, 125%); D = D (Business Lite, 125%); ST = S, T (Premium Economy Flexi, 125%); LP = L, P (Premium Economy Standard, 100%); R = R (Premium Economy Lite, 100%); YBE = Y, B, E (Economy Flexi, 100%); MHW = M, H, W (Economy Standard, 75%); QN = Q, N (Economy Value, 50%); VK = V, K (Economy Lite, 50%); G = G (Economy (group fares), 50%). The letter on your ticket. The percentage is of the miles flown.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · KF | ES | EG | PPS | SOL
Your KrisFlyer tier. KF = KrisFlyer; ES = Elite Silver (+25% flown); EG = Elite Gold; PPS = PPS Club (+25% flown); SOL = Solitaire PPS (+25% flown).creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of Singapore Airlines's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_singapore_airlines_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_south_african_airways_miles≈ 1094 tokens
South African Airways Voyager miles for a flight South African Airways operates, from the published base fare plus carrier-imposed fees in South African rand (ZAR, no taxes): 1 Voyager mile per R1.60, rounded down. Give the ZAR amount for the flight (Voyager pro-rates a ticket over its sectors). The class-of-service bonus and the Silver 25%, Gold 50% and Platinum 75% tier bonus are not calculated (not published as a rate on these miles); Silver, Gold and Platinum need 20,000, 45,000 and 95,000 tier miles in a calendar year. Uses cwsi.net's calculator and the airline's published rules. Give the price in ZAR, not US dollars. Unofficial.
Paramètres, retour & exemple (5)
Paramètresprice· number · optionnel
Base fare and carrier fees (ZAR) in ZAR. In rand: the published base fare plus carrier-imposed fees, without taxes. Type the amount, with R or ZAR before it if you like (R1,500). Required unless creditTo is given.creditTo· string · optionnel · united | aeroplan | flying-club
Credit the flights to a partner program instead of South African Airways's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite); flying-club = Flying Club (creditStatus one of: Red, Silver, Gold). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_south_african_airways_miles", "arguments": {"price": 1, "creditTo": "united", "creditClass": "texte", "creditStatus": "texte", "creditFlights": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_southwest_points≈ 698 tokens
Estimate what a Southwest Airlines ticket earns (miles or points, and status credit where it applies), using cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (5)
Paramètrescard· string · optionnel · none | PL | PR | PY
Paying with a Southwest card. none = No; PL = Plus (+2 per $1); PR = Premier (+3 per $1); PY = Priority (+4 per $1).fare· string · optionnel · CE | CP | CH | BA
Fare type. CE = Choice Extra (14 per $1); CP = Choice Preferred (10 per $1); CH = Choice (6 per $1); BA = Basic (2 per $1).price· number · requis
Ticket price (base fare, without taxes and fees) in US dollars. Shown on your receipt as the base fare, before taxes and fees.status· string · optionnel · Base | A-List | A-List Preferred
Your Rapid Rewards status. Base = Base (No status); A-List = A-List (+25%); A-List Preferred = A-List Preferred (+100%).flights· integer · optionnel
Flights on this ticket. A-List also needs 20 flights (A-List Preferred 40), counted in place of points.
Exemple d'appel{"name": "calculate_southwest_points", "arguments": {"price": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_srilankan_airlines_miles≈ 1805 tokens
SriLankan Airlines FlySmiLes miles for SriLankan Airlines flights. Miles = distance x booking-class % (J 225; C 200; D 175; I, Y, B, P, H 150; K, W, M, E 125; L, R, V, S 100; N, Q, O 60; G 50), rounded down, no minimum; T, U, X, Z, A and F are not listed. The 25% Platinum and 15% Gold bonus is a note only (SriLankan does not say what it is a share of), and tier miles are not calculated. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (8)
Paramètrescls· string · optionnel · J | C | D | I | Y | B | P | H
Booking class. J = J (Business Flex 225%); C = C (Business Semi Flex 200%); D = D (Business Value 175%); I = I (Business Saver 150%); Y = Y (Economy Flex 150%); B = B (Economy Flex 150%); P = P (Economy Flex 150%); H = H (Economy Flex 150%); K = K (Economy Semi Flex 125%); W = W (Economy Semi Flex 125%); M = M (Economy Semi Flex 125%); E = E (Economy Semi Flex 125%); L = L (Economy Value 100%); R = R (Economy Value 100%); V = V (Economy Value 100%); S = S (Economy Value 100%); N = N (Economy Saver 60%); Q = Q (Economy Saver 60%); O = O (Economy Saver 60%); G = G (Economy (G class) 50%). The letter on your ticket. J, C, D and I are Business; the rest are Economy. Classes FlySmiLes does not list (T, U, X, Z, A, F) are not offered.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · BL | CL | GD | PL
Your FlySmiLes tier. BL = Blue; CL = Classic; GD = Gold; PL = Platinum. Gold and Platinum get a 15% and 25% tier bonus on flights SriLankan markets and operates; it is explained below the result, not added.creditTo· string · optionnel · american | alaska | ba-club
Credit the flights to a partner program instead of SriLankan Airlines's own: american = American AAdvantage (creditStatus one of: AAdvantage member, AAdvantage Gold, AAdvantage Platinum, AAdvantage Platinum Pro, AAdvantage Executive Platinum); alaska = Atmos Rewards (creditStatus one of: Atmos Rewards member, Atmos Silver, Atmos Gold, Atmos Platinum, Atmos Titanium); ba-club = British Airways Club (creditStatus one of: Blue, Bronze, Silver, Gold). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_srilankan_airlines_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_sun_country_points≈ 608 tokens
Estimate what a Sun Country Airlines ticket earns (miles or points, and status credit where it applies), using cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (4)
Paramètrescard· string · optionnel · none | SV
Paying with the Sun Country Visa. none = No; SV = Yes (3 card points per $1).price· number · requis
Amount paid (without taxes and fees) in US dollars. Qualifying Sun Country purchases on this booking. Taxes, fees, in-flight purchases and insurance do not earn.status· string · optionnel · Member | Plus
Your status. Member = Member; Plus = Plus (+1 per $1).channel· string · optionnel · D | O
Where you booked. D = Sun Country (2 per $1); O = Third party (1 per $1).
Exemple d'appel{"name": "calculate_sun_country_points", "arguments": {"price": 1}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_tap_air_portugal_miles≈ 1942 tokens
TAP Air Portugal Miles&Go Bonus Miles for TAP flights. Bonus Miles = distance x fare % by zone, rounded down per flight, no minimum: Europe and North Africa (both airports in Europe, including Madeira, the Azores, the Canary Islands, Turkiye and Cyprus, or Morocco, Algeria, Tunisia, Libya and Egypt) Discount 20, Classic 70, Plus 100, Executive 175, Top Executive 200; Intercontinental Discount 20, Basic 50, Classic 100, Plus and Prime 150, Top Prime and Executive 175, Top Executive 200; a codeshare flown by TAP (CS) 40 or 50. The Silver and Gold status bonus is shown as a note, not added. Progress toward Silver, Gold and Navigator by TAP flights (25 / 50 / 70); fl and sm are the flights and Status Miles so far. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports (they pick the zone). Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (10)
Paramètresfl· number · optionnel
TAP flights you have flown in your annual period (optional). Silver, Gold and Navigator can be reached with 25, 50 or 70 TAP flights.sm· number · optionnel
Status Miles you have in your annual period (optional). Shown beside the Status Mile thresholds; this flight's Status Miles are not added.fare· string · optionnel · DI | BA | CL | PL | PR | TP | EX | TE
Fare. DI = Discount (Economy, Europe 20%, intercontinental 20%); BA = Basic (Economy, intercontinental only 50%); CL = Classic (Economy, Europe 70%, intercontinental 100%); PL = Plus (Economy, Europe 100%, intercontinental 150%); PR = Prime (Economy Prime, intercontinental only 150%); TP = Top Prime (Economy Prime, intercontinental only 175%); EX = Executive (Business, Europe 175%, intercontinental 175%); TE = Top Executive (Business, Europe 200%, intercontinental 200%); CS = Codeshare flown by TAP (sold by a partner, flown by TAP: 40% in Europe, 50% intercontinental). The fare name on your booking. TAP earns by fare name, not booking class letter. Basic, Prime and Top Prime are sold only on intercontinental flights.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · BS | SI | GO | NA
Your TAP Miles&Go status. BS = TAP Miles&Go; SI = Silver; GO = Gold; NA = Navigator. Silver earns 25% and Gold and Navigator 50% extra miles on TAP flights. That bonus is shown as a note, not added to the total.creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of TAP Air Portugal's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_tap_air_portugal_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_thai_airways_miles≈ 1878 tokens
Thai Airways Royal Orchid Plus miles and Qualifying Miles for THAI flights. Miles = distance x booking-class % (F 250; P 200; C, D 150; J, Z 125; A, U, Y, B, M 110; H, Q, T 100; K, S, V 75; G 50; W 25), rounded down, at least 500 miles a flight; L, O, I, X, E, N and R earn nothing. Qualifying Miles are the same without the 500-mile minimum. The Silver, Gold and Platinum tier bonus is a note only. Progress toward Silver (10,000) and Gold (50,000) Qualifying Miles in 12 months; sm is the Qualifying Miles so far. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (9)
Paramètressm· number · optionnel
Qualifying Miles you have in the last 12 months (optional). Used only for the progress toward Silver and Gold.cls· string · optionnel · F | P | C | D | J | Z | A | U
Booking class. F = F (Royal First 250%); P = P (Royal First 200%); C = C (Royal Silk 150%); D = D (Royal Silk 150%); J = J (Royal Silk 125%); Z = Z (Royal Silk 125%); A = A (Premium Economy 110%); U = U (Premium Economy 110%); Y = Y (Economy 110%); B = B (Economy 110%); M = M (Economy 110%); H = H (Economy 100%); Q = Q (Economy 100%); T = T (Economy 100%); K = K (Economy 75%); S = S (Economy 75%); V = V (Economy 75%); G = G (Economy 50%); W = W (Economy 25%); L = L (earns nothing); O = O (earns nothing); I = I (earns nothing); X = X (earns nothing); E = E (earns nothing); N = N (earns nothing); R = R (earns nothing). The letter on your ticket. Classes L, O, I, X, E, N and R earn no miles. Z is Royal Silk (and Premium Economy Plus); A is Premium Economy for flights on or after 1 July 2026.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · RO | SV | GD | PL
Your Royal Orchid Plus tier. RO = Member; SV = Silver; GD = Gold; PL = Platinum. Silver, Gold and Platinum get a 5%, 10% or 20% tier bonus on THAI international flights; it is explained below the result, not added. Your tier decides which tiers the progress bars show.creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of Thai Airways's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_thai_airways_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_turkish_airlines_miles≈ 1828 tokens
Turkish Airlines Miles&Smiles Miles and Status Miles. International flights: Miles = distance x booking-class rate with a minimum per class (Economy 25% to 125%; Business 135% or 150% on the Classic card, 160% or 175% on Classic Plus, Elite and Elite Plus); flights within Turkiye (both airports TR) earn fixed Miles by class. Status Miles = the same flights at the Classic card rate. Progress toward Classic Plus (25,000), Elite (40,000) and Elite Plus (80,000) Status Miles in 12 months; sm is the Status Miles so far. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (9)
Paramètressm· number · optionnel
Status Miles you have in the last 12 months (optional). Used only for the progress toward the next tier.cls· string · optionnel · C | D | K | J | Z | Y | B | M
Booking class. C = C (Business 150% (175%)); D = D (Business 150% (175%)); K = K (Business 135% (160%)); J = J (Business 135% (160%)); Z = Z (Business 135% (160%)); Y = Y (Economy 125%); B = B (Economy 125%); M = M (Economy 100%); H = H (Economy 100%); S = S (Economy 100%); E = E (Economy 100%); Q = Q (Economy 100%); A = A (Economy 100%); O = O (Economy 100%); T = T (Economy 50%); L = L (Economy 50%); V = V (Economy 50%); G = G (Economy 50%); W = W (Economy 25%); P = P (Economy 25%); F = F (Economy 25%); U = U (Economy 25%). The letter on your ticket. Turkish Airlines has no First class: F is an Economy class here. Business shows the Classic rate, then the Classic Plus and higher rate.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · CL | CP | EL | EP
Your Turkish Airlines tier. CL = Classic; CP = Classic Plus; EL = Elite; EP = Elite Plus. Classic Plus, Elite and Elite Plus earn more in Business. Economy earns the same on every card.creditTo· string · optionnel · united | aeroplan
Credit the flights to a partner program instead of Turkish Airlines's own: united = United MileagePlus (creditStatus one of: General member, Premier Silver, Premier Gold, Premier Platinum, Premier 1K); aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_turkish_airlines_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_united_miles≈ 1136 tokens
Estimate what a United Airlines ticket earns (miles or points, and status credit where it applies), using cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (9)
Paramètrescard· string · optionnel · none | CM | EX | QU | CL | GW | DB
Paying with a United card. none = No; CM = Cardmember (+3 per $1); EX = Explorer (+6 per $1); QU = Quest (+7 per $1); CL = Club (+8 per $1); GW = Gateway (+5 per $1); DB = Gateway Debit (+4 per $1). Cardmember is a United card that you are not paying with.fare· string · optionnel · ST | BE
Fare type. ST = Standard (Economy and above); BE = Basic Economy.price· number · optionnel
Ticket price (fare plus carrier-imposed charges, without government taxes) in US dollars. Shown on your receipt as the fare plus carrier-imposed charges. Required unless creditTo is given.status· string · optionnel · none | PS | PG | PP | 1K
Your MileagePlus status. none = General (No status); PS = Silver; PG = Gold; PP = Platinum; 1K = 1K.flights· integer · optionnel
Flights on this ticket. Each flight (segment) earns 1 PQF. Basic Economy earns none.creditTo· string · optionnel · aeroplan
Credit the flights to a partner program instead of United Airlines's own: aeroplan = Aeroplan (creditStatus one of: Aeroplan Member, 25K, 35K, 50K, 75K, Super Elite). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_united_miles", "arguments": {"card": "none", "fare": "ST", "price": 1, "status": "none", "flights": 1, "creditTo": "aeroplan"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_vietnam_airlines_miles≈ 1962 tokens
Vietnam Airlines Lotusmiles award miles, tier miles and tier segments for Vietnam Airlines flights (rates from 26 August 2026). Award miles = distance x fare family rate (fam: Business Flex 200%, Business Classic 150, Premium Economy Flex 130, Premium Economy Classic 120, Economy Flex 110, Economy Classic 80 within Vietnam and 65 abroad, Economy Lite 60 and 25, Economy Super Lite 10), rounded down per flight; Vietnam Airlines prints the rates as decimals (2.00), read as multipliers of the miles flown. Tier miles are the award miles without the tier bonus (Economy Super Lite earns none); tier segments per flight by fare family and distance band. The Titanium 30%, Gold 50% and Platinum or Million Miler 100% bonus adds award miles only. Progress toward Titanium (15,000 tier miles or 20 segments), Gold (30,000 or 30) and Platinum (50,000 or 50) in 12 months; tm and ts are the totals so far. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports (both VN = domestic rate). Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (10)
Paramètrestm· number · optionnel
Tier miles you have in your 12-month period (optional). Used only for the progress toward the next tier.ts· number · optionnel
Tier segments you have in your 12-month period (optional). Some fares count half a segment.fam· string · optionnel · BF | BC | PF | PC | EF | EC | EL | ES
Fare family. BF = Business Flex (Business, J, C); BC = Business Classic (Business, D, I); PF = Premium Economy Flex (Premium Economy, W); PC = Premium Economy Classic (Premium Economy, Z, U); EF = Economy Flex (Economy, Y, M, B); EC = Economy Classic (Economy, S, H, K, L); EL = Economy Lite (Economy, Q, N, R, T, E); ES = Economy Super Lite (Economy, A, P, G). The fare family on your ticket, or its booking class in brackets. Booking class Q on routes between Vietnam and Europe, Australia, the United States or China counts as Economy Classic.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · NO | SI | TI | GO | PL | MM
Your Lotusmiles tier. NO = Registration; SI = Silver; TI = Titanium (+30%); GO = Gold (+50%); PL = Platinum (+100%); MM = Million Miler (+100%). The tier bonus is paid on award miles for Vietnam Airlines flights; it does not count toward tier miles or segments.creditTo· string · optionnel · delta | flying-club | flying-blue
Credit the flights to a partner program instead of Vietnam Airlines's own: delta = Delta SkyMiles (creditStatus one of: SkyMiles Member, Silver Medallion, Gold Medallion, Platinum Medallion, Diamond Medallion); flying-club = Flying Club (creditStatus one of: Red, Silver, Gold); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_vietnam_airlines_miles", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_virgin_atlantic_points≈ 1767 tokens
Virgin Atlantic Flying Club Virgin Points and Tier Points for Virgin Atlantic flights. Virgin Points = distance x booking-class % (J, C, D 500; I, Z 300; W, S 250; H, K 175; V, Y, B, R 150; L, U, M 100; Q, X, N, O 50; T 25) x tier (Red 1, Silver 1.3, Gold 1.6), rounded per flight; Tier Points are fixed per flight by class (25 to 200). The reward-only classes G, P and A, and E (no published rate), are not offered. Progress toward Silver (400) and Gold (1,000) Tier Points; tp is the Tier Points so far. Give segs: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and the ISO country codes of its two airports. Takes no price. Uses cwsi.net's calculator and the airline's published rules. Unofficial.
Paramètres, retour & exemple (9)
Paramètrestp· number · optionnel
Tier Points you have so far (optional). Used only for the progress toward Silver and Gold.cls· string · optionnel · JCD | I | Z | WS | HK | V | YBR | LUM
Booking class. JCD = J, C, D (Upper Class, 500%, 200 Tier Points); I = I (Upper Class, 300%, 200 Tier Points); Z = Z (Upper Class, 300%, 100 Tier Points); WS = W, S (Premium, 250%, 100 Tier Points); HK = H, K (Premium, 175%, 50 Tier Points); V = V (Economy Delight, 150%, 50 Tier Points); YBR = Y, B, R (Economy Classic, 150%, 50 Tier Points); LUM = L, U, M (Economy Classic, 100%, 50 Tier Points); QXNO = Q, X, N, O (Economy Classic, 50%, 25 Tier Points); T = T (Economy Light, 25%, 25 Tier Points). The letter on your ticket. The percentage is of the distance flown. Reward-only classes (G, P, A) and E are not listed.segs· array · requis
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 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).trip· string · optionnel · ow | rt
Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way.status· string · optionnel · R | S | G
Your Flying Club tier. R = Red; S = Silver (+30% Virgin Points); G = Gold (+60% Virgin Points).creditTo· string · optionnel · delta | flying-blue
Credit the flights to a partner program instead of Virgin Atlantic's own: delta = Delta SkyMiles (creditStatus one of: SkyMiles Member, Silver Medallion, Gold Medallion, Platinum Medallion, Diamond Medallion); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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. The booking class is cls (or creditClass). The flights are segs (their miles), or creditFlights.creditClass· string · optionnel
The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_virgin_atlantic_points", "arguments": {"segs": []}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - calculate_xiamen_airlines_miles≈ 1413 tokens
Xiamen Airlines Egret Miles for a Xiamen Airlines, Hebei Airlines or Jiangxi Airlines flight ticketed on Xiamen stock (ticket numbers starting 731, 836 or 989), from the base fare plus fuel surcharge for that flight in yuan (CNY; other charges left out). Egret Miles = fare x (category multiplier + tier multiplier), rounded up, no minimum. Category (cat): 1.0 for First or Business (FB), Economy Y or W (YW) and Economy H on a China domestic route (HD); 0.7 for Economy H on an international, Hong Kong, Macao or Taiwan route (HI) and other Economy classes (EO). Tier: Egret Silver 0.2, Gold 0.3, Platinum 0.4, Diamond 0.5, none 0. Qualifying points for the flight are not calculated (the guide does not say whether its +1 counts per ticket or per segment); the tiers need 20, 40, 70 and 120 qualifying points in a calendar year. Give the CNY amount (Xiamen converts other currencies at the IATA rate on the issue date), one flight at a time. Uses cwsi.net's calculator and the airline's published rules. Give the price in CNY, not US dollars. Unofficial.
Paramètres, retour & exemple (7)
Paramètrescat· string · optionnel · FB | YW | HD | HI | EO
Cabin and booking class. FB = First or Business (category 1.0); YW = Economy Y or W (category 1.0); HD = Economy H, China domestic route (category 1.0); HI = Economy H, international, Hong Kong, Macao or Taiwan (category 0.7); EO = Other Economy classes (category 0.7). The category multiplier is 1.0 for First, Business and Economy Y, H, W and 0.7 for other Economy. H counts 1.0 on China domestic routes only.tier· string · optionnel · N | SI | GO | PL | DI
Your Egret Miles tier when you fly. N = No tier (no bonus); SI = Egret Silver (+0.2); GO = Egret Gold (+0.3); PL = Egret Platinum (+0.4); DI = Egret Diamond (+0.5). The tier multiplier is added to the category multiplier.price· number · optionnel
Base fare plus fuel surcharge (CNY, the flight) in CNY. In yuan: the base fare plus the fuel surcharge for the flight, without airport fees and other charges. For another currency, enter the equivalent in yuan. Required unless creditTo is given.creditTo· string · optionnel · delta | flying-club | flying-blue
Credit the flights to a partner program instead of Xiamen Airlines's own: delta = Delta SkyMiles (creditStatus one of: SkyMiles Member, Silver Medallion, Gold Medallion, Platinum Medallion, Diamond Medallion); flying-club = Flying Club (creditStatus one of: Red, Silver, Gold); flying-blue = Flying Blue (creditStatus one of: Explorer, Silver, Gold, Platinum, Ultimate). 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. Give the flights as creditFlights (one entry per flight with its great-circle miles). No price is needed with creditTo.creditClass· string · optionnel
The booking class letter on the ticket, for creditTo (required with creditTo). Ignored without creditTo.creditStatus· string · optionnel
Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo.creditFlights· array · optionnel
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.
Exemple d'appel{"name": "calculate_xiamen_airlines_miles", "arguments": {"cat": "FB", "tier": "N", "price": 1, "creditTo": "delta", "creditClass": "texte", "creditStatus": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "notes": [], "inputs": {}, "airline": "texte", "headline": [], "progress": {}, "breakdown": [], "calculator": "texte"}} - compare_fare_classes≈ 641 tokens
Side-by-side comparison of two fare classes, e.g. Delta K vs United M, from cwsi.net's fare charts. Covers American, Alaska, Delta, Southwest and United.
Paramètres, retour & exemple (4)
Paramètresfare_a· string · requis
Fare letter (or Southwest fare name) on the first airline.fare_b· string · requis
Fare letter (or Southwest fare name) on the second airline.airline_a· string · requis
First airline: AA/American, AS/Alaska, DL/Delta, WN/Southwest or UA/United.airline_b· string · requis
Second airline: AA/American, AS/Alaska, DL/Delta, WN/Southwest or UA/United.
Exemple d'appel{"name": "compare_fare_classes", "arguments": {"fare_a": "texte", "fare_b": "texte", "airline_a": "texte", "airline_b": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"a": {}, "b": {}, "link": "texte"}} - get_airport_lounges≈ 406 tokens
Airport lounges at an airport, grouped by terminal, from cwsi.net's Lounge Finder: name, brand, concourse or gate, hours and access rules. Give a 3-letter IATA code such as ATL. Covers about 87 airports in the US, Canada, Mexico, Europe, the Middle East, Asia, Oceania and Latin America.
Paramètres, retour & exemple (1)
Paramètresairport· string · requis
A 3-letter IATA airport code such as ATL (case-insensitive).
Exemple d'appel{"name": "get_airport_lounges", "arguments": {"airport": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"city": "texte", "code": "texte", "link": "texte", "name": "texte", "state": "texte", "region": "texte", "country": "texte", "lounges": []}} - get_fare_classes≈ 822 tokens
What an airline fare class (booking code) means and what it earns, from cwsi.net's fare charts. Give a fare letter (e.g. Delta K) or a Southwest fare name, or leave fare_class out to list them all. Covers Aegean Airlines, Aerolineas Argentinas, Aeromexico, Air Canada, Air China, Air Europa, Air France, Air India, Air New Zealand, Alaska, Allegiant, American, ANA, Avianca, Breeze, British Airways, Cathay Pacific, China Airlines, China Eastern, Copa Airlines, Croatia Airlines, Delta, Ethiopian Airlines, Etihad Airways, EVA Air, Finnair, Frontier, Hawaiian, Iberia, ITA Airways, Japan Airlines, JetBlue, KLM, Korean Air, LOT Polish Airlines, Lufthansa, Malaysia Airlines, Qantas, Qatar Airways, Royal Air Maroc, Royal Jordanian, SAS, Shenzhen Airlines, Singapore Airlines, South African Airways, Southwest, SriLankan Airlines, Sun Country, TAP Air Portugal, Thai Airways, Turkish Airlines, United, Vietnam Airlines, Virgin Atlantic and Xiamen Airlines.
Paramètres, retour & exemple (2)
Paramètresairline· string · requis
Airline code or name: A3/Aegean Airlines, AR/Aerolineas Argentinas, AM/Aeromexico, AC/Air Canada, CA/Air China, UX/Air Europa, AF/Air France, AI/Air India, NZ/Air New Zealand, AS/Alaska, G4/Allegiant, AA/American, NH/ANA, AV/Avianca, MX/Breeze, BA/British Airways, CX/Cathay Pacific, CI/China Airlines, MU/China Eastern, CM/Copa Airlines, OU/Croatia Airlines, DL/Delta, ET/Ethiopian Airlines, EY/Etihad Airways, BR/EVA Air, AY/Finnair, F9/Frontier, HA/Hawaiian, IB/Iberia, AZ/ITA Airways, JL/Japan Airlines, B6/JetBlue, KL/KLM, KE/Korean Air, LO/LOT Polish Airlines, LH/Lufthansa, MH/Malaysia Airlines, QF/Qantas, QR/Qatar Airways, AT/Royal Air Maroc, RJ/Royal Jordanian, SK/SAS, ZH/Shenzhen Airlines, SQ/Singapore Airlines, SA/South African Airways, WN/Southwest, UL/SriLankan Airlines, SY/Sun Country, TP/TAP Air Portugal, TG/Thai Airways, TK/Turkish Airlines, UA/United, VN/Vietnam Airlines, VS/Virgin Atlantic, MF/Xiamen Airlines.fare_class· string · optionnel
A fare letter such as "K", or a Southwest fare name such as "Choice". Leave out to list every fare class.
Exemple d'appel{"name": "get_fare_classes", "arguments": {"airline": "texte"}}Exemple de retour{"content": [{"type": "text", "text": "…"}], "structuredContent": {"link": "texte", "fares": [], "airline": "texte", "columns": [], "airline_name": "texte"}}
C'est votre serveur ?
Revendiquez-le sur l'espace créateur (preuve GitHub, domaine ou npm) pour afficher le badge « propriétaire vérifié » et lancer un pentest comportemental à la demande afin d'obtenir le badge « Vérifié ».