Rivier/ Reference/ shop

List something the business offers, as a draft

post/payments/offerings

List something the business offers, as a draft: its shape (nights, session, ticket, hire), title, one price in one currency, capacity, whether it is paid online or on arrival, and how much comes back on a cancellation (free until some hours before the start, then a percentage). Nobody can reserve a draft.

Before you call

Credential
Authorization: Bearer $KEY
Scope
shop:write
Mcp
rivier_payments_offering_save
Graphql
Mutation.shopOfferingCreate
Sdk
shop.offering.create
Cli
shop offering create

Request bodyapplication/json, required

  • shapestringrequired
    One of: nights, session, ticket, hire.
  • titlestringrequired
    At most 160 characters.
  • descriptionstring
    At most 2000 characters.
  • placeNamestring
    At most 160 characters.
  • currencystringrequired
    Pattern: ^[A-Za-z]{3}$.
  • priceMinorintegerrequired
    At least 0. At most 99999999.
  • capacityinteger
    Default: 1. At least 1. At most 100000.
  • durationMinutesinteger
    At least 5. At most 43200.
  • paystring
    One of: online, on_arrival. Default: online.
  • freeCancelHoursinteger
    Default: 48. At least 0. At most 8760.
  • lateRefundPercentinteger
    Default: 0. At least 0. At most 100.
  • visibilitystring
    One of: apps, public. Default: apps.

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