Rivier/ Reference/ shop

Say that a supplier sells a variant, at a unit cost

post/shop/supplied

Before you call

Credential
Authorization: Bearer $KEY
Scope
shop:write
Mcp
rivier_shop_supplier_link
Sdk
shop.supplied.create
Cli
shop supplied create

Request bodyapplication/json, required

  • supplierIdstringrequired
    At most 80 characters.
  • variantIdstring (uuid)required
  • skustring
    At most 100 characters.
  • unitCostobjectrequired
    • amountMinorintegerrequired
      At least 0.
    • currencystringrequired
      At most 3 characters.
  • leadTimeDaysinteger
    At least 0. At most 365.
  • packSizeinteger
    Default: 1. At least 1.

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