Skip to main content
POST
Create variant

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Path Parameters

id
string
required

Body

application/json
title
string
required
Required string length: 1 - 128
price
number
required

Explicit unit price; 0 is free. Null is not a price.

Required range: x >= 0
dynamic_webhook
string | null

URL Shoppex calls to deliver this option. A public https URL without a username or password, at most 2048 characters; a URL the product or one of its options already stores is accepted unchanged. Send null or an empty string for no webhook.

renewal_delivery
enum<string> | null

Subscription products: what a paid renewal of this variant delivers. new issues a new license, key, files or text each renewal; extend and first_only keep what the buyer has (the license is extended). Null: the same as the product (renewal_delivery on the product). Only subscription products accept a value. A change applies to the next renewal of every running subscription of this variant.

Available options:
extend,
new,
first_only,
null

Response

Response for status 201

data
object
required