Rivier/ Reference/ shop

Cancel a reservation

post/payments/reservations/{id}/cancel

Cancel a reservation. A held one is withdrawn. A paid one gives money back by the offering's rules: everything when the business cancels or the guest cancels early enough, a percentage after that. Giving money back that an agent asks for waits for the owner's approval.

Before you call

Credential
Authorization: Bearer $KEY
Scope
shop:write
Mcp
rivier_payments_cancel_reservation
Graphql
Mutation.shopReservationCancel
Sdk
shop.reservation.cancel
Cli
shop reservation cancel

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • bystring
    One of: guest, business. Default: guest.

Responses

  • 200application/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