Skip to main content
POST
Create Variant

Authorizations

Authorization
string
header
required

API Key. Example: sk_live_xxxxx or pk_live_xxxxx

Path Parameters

id
string
required

Resource ID

Body

application/json
price
object
required
sku
string
barcode
string
compare_at_price
object
cost_price
object
weight
integer
options
object

Option name to value mapping. Example: { "Size": "M", "Color": "Black" }

metadata
object

Response

201 - application/json

Created

id
string
product_id
string
sku
string
barcode
string
price
object
compare_at_price
object
cost_price
object
weight
integer

grams

is_active
boolean
option_values
object[]
images
object[]
inventory
object
metadata
object
created_at
string<date-time>
updated_at
string<date-time>