v1

latestSwagger 2.02026-07-14214688.6 KB
Codes

Get a list of codes for the specified hotel either filtered by type or code.

With this call you can find codes for a hotel by type or code. By default and without any filter criteria defined it will return you all available codes.

get/api/hotel/v0/hotels/{hotelId}/codes

Path parameters

hotelIdinteger required

The hotel id you are trying to find codes for.

Query parameters

codestring

Return all results matching the specified code. A code is unique in combination with the type which means when you query for a code you could get multiple results each for a different type

type'GuestRequest' | 'RequestDietary' | 'VIPStatus' | 'ReasonForRateChange' | 'Regrets' | 'MarketSegments' | 'SourceOfBusiness' | 'LoyaltyProgram' | 'CancellationReason' | 'AccountType' | 'AccountRank' | 'VIPLevel' | 'Title' | 'ContactFunction' | 'Territory' | 'CorrespondenceType' | 'ExternalProgramType' | 'RevenueBucket' | 'AdditionalRevenueBucket' | 'AdditionalStatisticsBuckets' | 'MealPeriod' | 'BillingCycle' | 'ReminderCycle' | 'MajorMarketSegments' | 'DocumentType' | 'ActivityType' | 'ReservationLabels'

Return all codes for the specified type

Headers

App-Idstring required

Application identifier

App-Keystring required

Application key.

Response

A list of codes for a requested hotel matching the filter criteria.