Rivier/ Reference/ bookings

Add a cancellation policy

post/bookings/policies

Before you call

Credential
Authorization: Bearer $KEY
Scope
bookings:admin
Sdk
bookings.policy.create
Cli
bookings policy create

Request bodyapplication/json, required

  • namestringrequired
    At most 120 characters.
  • kindstring
    One of: standard, dated_leisure. Default: standard.
  • tierslist of object
    Default: [].
    • hoursBeforenumberrequired
      At least 0. At most 8760.
    • refundPercentnumberrequired
      At least 0. At most 100.
    • feeMinorinteger
      Default: 0. At least 0. At most 9007199254740991.
  • noShowobject
    Default: {}.
    • feePercentnumber
      Default: 0. At least 0. At most 100.
    • feeMinorinteger
      Default: 0. At least 0. At most 9007199254740991.
  • textstring
    Default: . At most 4000 characters.

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