Skip to main content
POST
Add a variant to a product

Authorizations

X-Juo-Admin-Api-Key
string
header
required

Long-lived Admin API key issued from the Juo merchant portal. Pass as the X-Juo-Admin-Api-Key header.

Headers

X-Tenant-ID
string
required

Unique identifier of the tenant in the system (usually a store identifier)

Path Parameters

productId
string
required

The product identifier

Minimum string length: 1

Body

application/json
price
number
required
compareAtPrice
number
sku
string
barcode
string
optionValues
object[]

Response

Default Response

id
string
required
Minimum string length: 1
title
string
required
Minimum string length: 1
image
null | object
required
price
number
required
purchaseOptions
object[]
required
product
required

Product id when not expanded, or the full Product object when the field name is included in the expand query parameter.

Minimum string length: 1
planGroups
string[]
required

Subscription plan group IDs associated with this variant

Minimum string length: 1