Calculate points and status earning
Stateless, source-backed segment calculations with explained missing inputs and research coverage.
POST /v1/frequent-flyer-programs/{id}/calculate-earning accepts JSON with travelOn, tierId, flightCode and bookingClass. Depending on the rule, supply operatingAirlineId, route, fareBrand, ticket type, distance or eligible spend. Pin ?release= to reproduce a result. No Studio session is required.
Each currency returns calculated, needs-input, unresearched, manual-review or ambiguous, with rule and source IDs. Missing coverage is never a zero award. Distance and currency conversion are not guessed.
The initial researched calculator pilot covers paid SAS Light and selected Standard booking classes on CPH–LHR and LHR–CPH. Other programs have directory data and explicit earning coverage gaps.
{
"travelOn": "2026-10-16",
"tierId": "eurobonus-gold",
"flightCode": "SK501",
"bookingClass": "E",
"operatingAirlineId": "sk",
"originAirport": "CPH",
"destinationAirport": "LHR",
"fareBrand": "Light",
"ticketType": "paid"
}