Required Request Fields and Units
A platform-owned calculation contract should identify the activity, its source booking record, the selected methodology, and the unit basis before transforming data into any provider-specific request. Minimum common fields include a stable activity identifier, travel mode, service date or reporting period, geographic context, quantity and unit, passenger or occupancy basis where applicable, and a calculation status. Each provider adapter can then enforce its additional mandatory fields.
Air adapters should retain flight-leg identifiers, operating rather than merely marketing carrier, departure date, booked cabin, and passenger count. Rail adapters should retain station-level locations where available, service or train category if supported, and distance origin. Road adapters should distinguish vehicle-kilometres from passenger-kilometres, fuel or energy use from estimated travel distance, and vehicle characteristics from assumptions. Accommodation adapters should distinguish nights, rooms, guests, property location, and the unit actually accepted by the chosen factor.
Never infer a request's measurement unit from its numeric value. A factor expressed per passenger-kilometre cannot be multiplied by vehicle-kilometres without an occupancy allocation. Similarly, fuel litres, electricity kilowatt-hours, monetary expenditure, and hotel nights require different factor families. Normalize measurement units in the internal record, but preserve original supplier input so transformation errors can be traced.


