Skip to main content
POST
Error

Path Parameters

product_id
string
required

Product ID

app_slug
string
required

App slug

team_slug
string
required

Team slug

Body

application/json

Variant data

stock
object[]
required

Stock level of the variant

variant_name
string
required

VariantName of the variant

variant_number
string
required

Number of the variant

custom_fields
object
purchase_price
object
status
enum<string>

Status of the product

Available options:
active,
draft,
inactive,
archived
validate_stock
boolean
variant_dimensions
object
variant_group_id
string

Response

Variant created successfully

data
object
details
string[]

Additional contextual information about the response. Used to provide supplementary details beyond the main data payload, such as validation warnings or processing notes

success
boolean