Rivier/ Reference/ shop

Change a variant's SKU, options, weight, tax class, cost or price floor

patch/shop/variants/{id}

Before you call

Credential
Authorization: Bearer $KEY
Scope
shop:admin
Sdk
shop.variant.update
Cli
shop variant update

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • skustring
    At most 80 characters.
  • gtinstring or null
  • mpnstring or null
  • optionsobject
  • weightGinteger
    At least 0. At most 1000000.
  • taxClassstring
    At most 40 characters.
  • costMinorinteger or null
  • priceFloorMinorinteger or null
  • positioninteger
    At least 0. At most 10000.

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