Rivier/ Reference/ bookings

Add a promotion

post/lodging/promotions

Add a promotion. The best one that applies is taken off the nights; promotions do not stack.

Before you call

Credential
Authorization: Bearer $KEY
Scope
bookings:admin
Mcp
rivier_lodging_promotion_create
Sdk
bookings.promotion.create
Cli
bookings promotion create

Request bodyapplication/json, required

  • propertyIdstring (uuid)required
  • namestringrequired
    At most 120 characters.
  • codestring or null
  • kindstringrequired
    One of: percent, amount.
  • valuenumberrequired
    At most 1000000000.
  • bookFromstring or null
  • bookTostring or null
  • stayFromstring or null
  • stayTostring or null
  • minNightsinteger or null
  • roomTypeIdslist of string (uuid)
    Default: [].
  • ratePlanIdslist of string (uuid)
    Default: [].
  • contentobject
    Default: {}.

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