Vai al contenuto principale
POST
Create Variant

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parametri del percorso

product_id
string<uuid>
obbligatorio

Corpo

application/json
sku
string
obbligatorio
price
obbligatorio
name
string | null
compare_at_price
sale_price
sale_start
string<date-time> | null
sale_end
string<date-time> | null
stock
integer
predefinito:0
track_inventory
boolean
predefinito:true
allow_backorder
boolean
predefinito:false
weight
barcode
string | null
attributes
Attributes · object | null
is_active
boolean
predefinito:true

Risposta

Successful Response

data
ProductVariantOut · object | null
meta
PaginationMeta · object | null
error
string | null
error_code
string | null