Update a variant (price, VAT rate, cost, codes, low-stock threshold, active). Send expected_version

patch/api/v1/product-variants/{id}

Request

  • Base URL: http://127.0.0.1:4310
  • URL: http://127.0.0.1:4310/api/v1/product-variants/{id}
  • Auth: one of:
    • HTTP bearer
    • API key in cookie sfb_session

Path parameters

idstring required

Request body

namestring
skustring
barcodestring
price_minorinteger

VAT-inclusive price in pence

vat_rate_bps2000 | 500 | 0
cost_minorinteger
low_stock_thresholdinteger
activeboolean
expected_versioninteger

Response

OK

object required

Changes

No recorded changes to this operation across all 4 revisions of this API.