Skip to main content

Rates

Query Overview

The ratesSetUp query returns the rates added to a hotel for a specific client-seller relation in Inventory. The returned fields include:

  • code
  • name
  • hotelCode
  • active
  • mealPlanIncluded
  • agePolicies
    • maxAgeChildren
    • maxAgeInfants
    • freeInfants
    • freeChildren
  • paymentPolicies
    • currency
    • commission
    • priceIsBinding
    • acceptedPayments
      • type
      • cardTypes
  • bookingRules
    • bookingWindow
      • start
      • end
    • markets
      • included
      • excluded
    • rateRule
    • seniorRule
  • cancelPolicies
    • baseCancelPolicy
      • refundable
      • cancelPenalties
        • daysBeforeArrival
        • penaltyType
        • value
    • cancelPoliciesByDate
      • start
      • end
      • cancelPolicy
        • refundable
        • cancelPenalties
          • daysBeforeArrival
          • penaltyType
          • value
  • surcharges
    • chargeType
    • taxType
    • value
    • applyType
    • perNight
    • perPax
  • rooms
    • code
    • master
      • id
      • code
      • name
    • active
    • externalCode
    • standard
    • uses
      • numberOfGuests
      • minAge
      • maxAge
      • paxType

1. Criteria

When building your query, you need to provide the following input fields:

Mandatory Input

  • clientCode
  • supplierCode
  • hotelCode

Optional Input

  • contextCode
  • rateCodes

2. Settings

Ensure that all required fields are properly set and match existing hotel rate configurations.

Response Considerations

The query returns a collection of rates along with success status and possible advise messages.

RatesRs (OBJECT)

  • rates (InventoryRateSetup) - A collection of retrieved rates.
    • code (String) - The rate code.
    • name (String) - The name of the rate.
    • active (Boolean) - Indicates if the rate is active.
    • mealPlanIncluded (Int) - Indicates if a meal plan is included.
    • hotelCode (String) - The hotel code associated with the rate.
    • agePolicies (Object) - Age restrictions and free child policies.
    • paymentPolicies (Object) - Payment conditions including accepted payment methods.
    • bookingRules (Object) - Booking window, market restrictions, and special rate rules.
    • cancelPolicies (Object) - Refundability and penalty details.
    • surcharges (Object) - Additional charges and their application types.
    • rooms (Object) - Room associations for the rate.
  • success (Boolean) - Indicates if the operation was successful.
  • adviseMessages (AdviseMessage) - Messages related to the operation.

Query Inputs

InventoryRatesSetupFilterInput (INPUT_OBJECT)
Rates setup filter input.

hotelCode  *  (String)
Hotel codes of the rooms to retrieve.

clientCode  *  (String)
Client code.

supplierCode  *  (String)
Travelgate Supplier/Channel code.

contextCode (String)
Travelgate Supplier/Channel context code.

rateCodes (String)
Rate codes.

Returned Fields

RatesRs (OBJECT)
Represents the response object for rates setup operations.

adviseMessages (AdviseMessage)
Collection of advise messages.

code  *  (ID)
AM code: The following codes can be returned:

description  *  (String)
Error description

level  *  (Enum of AdviseMessageLevel)
Indicates the level of importance of the message. Possible values: ERROR, WARN, INFO.
Possible values:
WARN
ERROR
INFO

external (ExternalMessage)
Specify the external message.

code (String)
External code.

message  *  (String)
External message.

correlationID  *  (ID)
Identifier to investigate the cause of the error.

rates (InventoryRateSetup)
Collection of rate output objects.

code (String)
Code associated with the rate.

name (String)
Name of the rate.

active  *  (Boolean)
Indicates whether the rate is active.

mealPlanIncluded  *  (Int)
Indicates if the meal plan included in the rate.

baseCode (String)
Base rate code associated with the rate.

agePolicies (InventoryAgePolicies)
Age policies associated with the rate.

maxAgeInfants  *  (Int)
Max age baby not inclusive

freeInfants  *  (Boolean)
If true the babies are free of charge

maxAgeChildren  *  (Int)
Max age child not inclusive

freeChildren  *  (Boolean)
If true children are free of charge

paymentPolicies (InventoryPaymentPolicies)
Payment policies associated with the rate.

currency  *  (Currency)
Currency of the rate

commission  *  (Float)
Commission applied for all rooms in this rate, leave value 0 for net price. Only Informative.

priceIsBinding  *  (Boolean)
Indicates whether the prices are binding prices, meaning they cannot be sold for a lower price. This information is for informative purposes only.

acceptedPayments (AcceptedPayment)
Accepted payment methods for the rate. If not informed, it defaults to MerchantPay.

type  *  (Enum of PaymentType)

Possible values:
MERCHANT
DIRECT
CARD_BOOKING
CARD_CHECK_IN

cardTypes  *  (Enum of PaymentCardType)

Possible values:
VI
AX
BC
CA
CB
CU
DS
DC
T
R
N
L
E
JC
TO
S
EC
EU
TP
OP
ER
XS
O

bookingRules (InventoryBookingRules)
Booking rules associated with the rate.

bookingWindow (InventoryBookingWindow)
Booking Dates for which the rate will be available. Do not send it if you want the rate available for all dates.

start  *  (DateTime)
Start date of the booking window.

end  *  (DateTime)
End date of the booking window.

markets (InventoryMarkets)
Markets included or excluded. Do not send if the rate is available for all markets. Only informative.

included (String)
Included markets.

excluded (String)
Excluded markets.

rateRule (Enum of RatePlanType)
"NoRatePlanType" indicates absence of a specific rate plan. "LargeFamily" and "PublicServant" denote rates tailored for those groups. "Negotiated" and "Package" signify negotiated rates and package deals, respectively. "CanaryResident" and "BalearicResident" are special rates for residents of the Canary Islands and the Balearic Islands, respectively. Lastly, "HoneyMoon" designates rates intended for honeymooners or couples celebrating their honeymoon.
Possible values:
NO_RATE_PLAN_TYPE
LARGE_FAMILY
PUBLIC_SERVANT
NEGOTIATED
PACKAGE
CANARY_RESIDENT
BALEARIC_RESIDENT
HONEY_MOON

seniorRule (Enum of SeniorRate)
"NoSeniorRate" indicates the absence of a senior rate. "SeniorRate_55", "SeniorRate_60", and "SeniorRate_65" denote rates applicable to individuals aged 55, 60, and 65, respectively. These rates are typically offered to seniors as a special discount or incentive.
Possible values:
NO_SENIOR_RATE
SENIOR_RATE_55
SENIOR_RATE_60
SENIOR_RATE_65

cancelPolicies (InventoryCancelPoliciesRate)
Cancel policies associated with the rate.

baseCancelPolicy (InventoryCancelPolicy)
Defines the base cancel policies. Only Informative.

refundable  *  (Boolean)
Indicates if the rate is refundable.

cancelPenalties (InventoryCancelPenalty)
List of penalties applicable for the rate. See CancelPenalty.

daysBeforeArrival  *  (Int)
Number of days prior to arrival day in which this Cancellation policy applies.

penaltyType  *  (Enum of PenaltyType)
Penalty type. See PenaltyType.
Possible values:
AMOUNT
NIGHTS
PERCENTAGE

value  *  (Float)
Penalty value.

cancelPoliciesByDate (InventoryCancelPolicyByDate)
This defines a calendar of cancel policies, serving as informational data. If base cancel policies exist for a particular day, the CancelPoliciesByDate take precedence.

start  *  (DateTime)
Start date where the cancel policy must apply.

end  *  (DateTime)
End date where the cancel policy must apply.

cancelPolicy  *  (undefined)
Cancel policy. See CancelPolicy.

surcharges (InventorySurcharge)
Surcharges associated with the rate.

chargeType  *  (Enum of InventoryChargeType)
Indicates if the surcharge is included or not in the price.
Possible values:
INCLUDED
EXCLUDED

taxType  *  (Enum of InventoryTaxType)
The type of tax applied to the surcharge.
Possible values:
CITY
LOCAL
RESORT_FEE
SUPPLEMENT_TO_BE_PAID_ON_SPOT

value  *  (Float)
The value of the surcharge.

applyType  *  (Enum of InventoryApplyType)
The type of application for the surcharge.
Possible values:
PERCENTAGE
AMOUNT

perNight  *  (Boolean)
Indicates whether the surcharge is applied per night.

perPax  *  (Boolean)
Indicates whether the surcharge is applied per person.

rooms (InventoryRoomSetUp)
Rooms associated with the rate.

code (String)
Code associated with the room.

master (InventoryMasterRoom)
Master of the room.

id  *  (Int)
Id associated with the room master.

code (String)
Code associated with the room.

name (String)
Name associated with the room.

active  *  (Boolean)
Indicates whether the room is active.

externalCode (String)
External code associated with the room.

standard  *  (Int)
Standard of the room. Typically the number of guests.

uses  *  (InventoryRoomUse)
List of uses associated with the room.

numberOfGuests  *  (Int)
Gets or sets the number of guests allowed in the room.

minAge  *  (Int)
Gets or sets the minimum age allowed for guests in the room.

maxAge  *  (Int)
Gets or sets the maximum age allowed for guests in the room.

paxType  *  (Enum of InventoryPaxType)
Gets or sets the type of guests allowed in the room. PaxType
Possible values:
INFANT
CHILD
ADULT

hotelCode (String)
Hotel code associated with the rate.

success  *  (Boolean)
Indicates whether the operation was successful based on the absence of advise messages.

Examples

Retrieve all rates from a hotel

Retrieve specific rates from a hotel