Add a variant to a product

post/api/v1/products/{id}/variants

Request

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

Path parameters

idstring required

Request body

namestring
skustring required
barcodestring
price_minorinteger required

VAT-inclusive price in pence

vat_rate_bps2000 | 500 | 0
cost_minorinteger
low_stock_thresholdinteger
activeboolean
idempotency_keystring

Unique per change. Repeating it returns the original result.

Response

OK

object required

Changes

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