Rivier/ Reference/ shop

Set a price

post/shop/prices

Set a price. It goes into the price history; it may not go under the floor, and a previous price must be the lowest of the last 30 days.

Before you call

Credential
Authorization: Bearer $KEY
Scope
shop:admin
Mcp
rivier_shop_price_set
Sdk
shop.price.set
Cli
shop price set

Request bodyapplication/json, required

  • variantIdstring (uuid)required
  • currencystringrequired
    Pattern: ^[a-z]{3}$.
  • amountMinorintegerrequired
    At least 0. At most 9007199254740991.
  • compareAtMinorinteger or null
  • minQtyinteger
    Default: 1. At least 1. At most 100000.
  • channelstring
    Default: . At most 40 characters.
  • countrystring
    Default: .
  • validFromstring (date-time) or null
  • validTostring (date-time) or null
  • reasonstring
    Default: . At most 200 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