Skip to content

PATCH AccommodationRateDates

PATCH/api/accommodations/{accommodationId}/rate_dates/

Updates one or multiple AccommodationRateDate entities for a specific accommodation.

Each update can either set an absolute rate amount or apply an index-based adjustment (percentage or fixed amount increase/decrease) to the existing rate. All changes are recorded under a new version for audit purposes, enabling historical rate tracking. After updating the specified rate dates, derived rates that depend on the modified rate specifications are automatically scheduled for recalculation.

  • accommodationIdstringrequired
Required
Yes
Content type
  • application/json
  • AccommodationRateDatePatchRequestPayload2[]
    Show array — 7 properties
    • accommodationRateSpecificationobjectrequired
      Show 1 property
      • idnumberoptional
    • datestringrequired
    • amountstringrequired
    • typestringrequired
      Allowed values: index, overwrite

      The type of update that should be performed (overwrite or index)

    • methodstringoptional
      Allowed values: absolute, percentage

      The method that should be performed in case of indexing (absolute or percentage)

    • adjustmentstringoptional
      Allowed values: increase, decrease

      The adjustment that should be performed in case of indexing (increase or decrease)

    • roundingstringoptional
      Allowed values: rounding-two-decimals, rounding-one-decimal, rounding-whole, rounding-nearest-five, rounding-nearest-half

      How the amount is rounded. Falls back to the organization rounding setting when omitted.