Skip to main content
POST
Create a variant

Authorizations

x-api-key
string
header
required

Your Store API key (pk_live_...). Create it in Developers › API keys.

x-store-hash
string
header
required

The ID of the store the request is for. Shown in Developers › API keys.

Headers

Idempotency-Key
string

Unique key (for example a UUID) that makes retries safe. The first response is stored for 24 hours and replayed for retries with the same key and body.

Maximum string length: 255

Path Parameters

id
string
required

Product hash ID (numeric ID also accepted).

Example:

"AbC123xyz789"

Body

application/json
name
string
required
slug
string
delivery_type
enum<string>

Digital products only.

Available options:
file,
license
price_cents
integer
discount_percent
number
stock_quantity
integer | null

null = unlimited. Not for license variants.

is_default
boolean
active
boolean
sort_order
integer
image_url
string
sku
string

Physical only.

barcode
string
weight_grams
integer
compare_at_cents
integer
track_inventory
boolean
allow_backorder
boolean
low_stock_threshold
integer
option_values
string[]

Physical only. Must match the product's options.

Response

Created

success
boolean
required
Example:

true

variant
object