| cls | No | 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. | Y |
| segs | Yes | The flights, one way and in order, one entry per flight (1 to 8): fromCountry and toCountry, the ISO 3166 two-letter country codes of its two airports; miles, its great-circle distance in miles (1 to 12,500); optional 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 | No | Trip. ow = One way; rt = Round trip. Round trip counts the same flights back the other way. | ow |
| status | No | 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. | BL |
| creditTo | No | 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 | No | The booking class letter for creditTo, when it differs from the class question. Ignored without creditTo. | |
| creditStatus | No | Your status in the creditTo program, by its name as listed under creditTo. Defaults to the base level. Ignored without creditTo. | |
| creditFlights | No | The flights for creditTo: one entry per one-way flight, in order, with its great-circle miles (calculate_flight_distance gives them) and optionally from/to airport codes. Defaults to segs when they carry miles. | |