Skip to main content

Update Rates

The updateRateSetUp mutation allows you tu update any propert of an already added rate to a hotel in 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

Mutation Inputs

When creating your updateRatesSetUp mutation, you have 1 input to fill based on your specific needs:

  1. Input

1. Input

Mandatory input

  • clientCode
  • supplierCode
  • hotelCode
  • rates
    • code

Optional input

  • contextCode
  • rates
    • 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

Requests Examples

Update properties from a rate

With the following mutation, we are going to update the meal plan included in a rate and its cancel policies.

note

The possible values for mealPlanIncluded can be retrieved using the query Mealplans.