Rivier/ Reference/ bookings

Add an extra or a fee; a mandatory fee is added to every stay

post/lodging/extras

Before you call

Credential
Authorization: Bearer $KEY
Scope
bookings:admin
Mcp
rivier_lodging_extra_create
Sdk
bookings.extra.create
Cli
bookings extra create

Request bodyapplication/json, required

  • propertyIdstring (uuid)required
  • codestringrequired
    Pattern: ^[A-Za-z0-9_-]{1,24}$.
  • namestringrequired
    At most 120 characters.
  • kindstring
    One of: extra, fee. Default: extra.
  • priceMinorintegerrequired
    At least 0. At most 9007199254740991.
  • perstring
    One of: stay, night, person, person_night. Default: stay.
  • taxstring
    One of: accommodation, ancillary, none. Default: ancillary.
  • mandatoryboolean
    Default: false.
  • maxQuantityinteger
    Default: 1. At least 1. At most 50.
  • roomTypeIdslist of string (uuid)
    Default: [].
  • contentobject
    Default: {}.
  • positioninteger
    Default: 0. At least 0. At most 10000.
  • publishedboolean
    Default: true.

Responses

  • 201application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown