Hotel Stay Impact Calculation
Hotel Stay Impact Calculation
Get a step-by-step CO2e breakdown for a specific hotel stay
GET
Hotel Stay Impact Calculation
Hotel Stay Impact Calculation
Returns the step-by-step emission calculation for a specific hotel stay, showing exactly how the CO2e figure was derived from the DEFRA room-night emission factor.Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
a8315ef3-dd50-43f8-b7ce-d839e68d51faPath Parameters
The unique identifier (UUID) of the hotel stay recordExample:
550e8400-e29b-41d4-a716-446655440000Response
The response contains the full step-by-step calculation breakdown as used by the Dcycle kernel.Total CO2e in kg across all periods
Calculation periods, one per date range
Calculation Methodology
CO2e is computed as:- nights =
check_out_date − check_in_datein days - EF = DEFRA hotel room-night emission factor for the stay’s country (from the
defra_hotel_stayskernel activity,HOTEL_STAYScategory)
total_impacts row is written per night so that partial-period exports and dashboards pro-rate correctly.
Example
Successful Response
Common Errors
401 Unauthorized
Cause: Missing or invalid API key403 Forbidden
Cause: The authenticated user is not a member of the organization404 Not Found
Cause: The hotel stay ID does not exist or belongs to a different organization.Related Endpoints
Get Hotel Stay
Retrieve full stay details
List Hotel Stays
Browse all stays for the organization