Skip to main content
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

string
required
Your API key for authenticationExample: sk_live_1234567890abcdef
string
required
Your organization UUIDExample: a8315ef3-dd50-43f8-b7ce-d839e68d51fa

Path Parameters

string
required
The unique identifier (UUID) of the hotel stay recordExample: 550e8400-e29b-41d4-a716-446655440000

Response

The response contains the full step-by-step calculation breakdown as used by the Dcycle kernel.
number
Total CO2e in kg across all periods
array
Calculation periods, one per date range

Calculation Methodology

CO2e is computed as:
Where:
  • nights = check_out_date − check_in_date in days
  • EF = DEFRA hotel room-night emission factor for the stay’s country (from the defra_hotel_stays kernel activity, HOTEL_STAYS category)
One 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 key

403 Forbidden

Cause: The authenticated user is not a member of the organization

404 Not Found

Cause: The hotel stay ID does not exist or belongs to a different organization.

Get Hotel Stay

Retrieve full stay details

List Hotel Stays

Browse all stays for the organization