Skip to main content
PATCH
Update variant

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Path Parameters

id
string
required
variantId
string
required

Body

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

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 new value must be a public https URL without a username or password, at most 2048 characters. A URL the option, its product or another of its options already stores is accepted unchanged, so an http URL read from the API can be sent back. Send null or an empty string to remove the 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 200

data
object
required