API changelog
Changes to requests, responses, allowed values and error codes of the SQUAKE API, newest first, with a short note on what each one means for your integration.
Optional sustainability labels on hotel travel data
Hotel activities accept the sustainability labels or certifications the hotel holds. The field is optional, so existing integrations need no change. See Create travel data items.
trips[].activities[hotel].eco_labels, an array of strings such as ["eu_ecolabel", "green_key"]. SQUAKE trims each label and drops blank and duplicate entries.Green Travel Pledge is now Green Travel Data
The Rail Delivery Group renamed the train methodology. Send GREEN-TRAVEL-DATA from now on. GREEN-TRAVEL-PLEDGE is still accepted and calculates the same way. See Green Travel Pledge Is Now Green Travel Data for details.
items[train].methodology value GREEN-TRAVEL-DATAitems[train].methodology value GREEN-TRAVEL-PLEDGE, still accepteditems[train].origin and destination must be CRS codes of GB National Rail stations, such as KGXgreen_travel_pledge_emission_not_found is now green_travel_data_emission_not_foundOne status vocabulary for travel data trips
Trip status is no longer echoed as sent. SQUAKE maps whatever wording the source uses onto five values, and the trip's dates decide the value where they can.
status in responses is one of planned, confirmed, in_progress, completed, canceled or nullstatus in requests is still free text, mapped on ingestion; common wordings such as booked and cancelled are recognisedInvitations endpoints
Invite users to one of your sub-clients and read an invitation back. Re-inviting the same email address for the same sub-client is safe and sends the email again.
POST /v2/invitations and GET /v2/invitations/{id}client_not_invitable (403) when client_id isn't one of your sub-clientsREM commuter and urban rail train types
Two new train types for the REM methodology. Existing train types are unchanged.
items[train].train_type values commuter and urban_railFlight schema no longer declares a discriminator
The API accepts the same flight payloads as before. Only the OpenAPI description changed: clients generated from it may change shape, so regenerate typed clients and check how they handle flight items.
Flight schema: the methodology discriminator