Skip to main content
POST
/
dev
/
v1
/
products
/
{id}
/
variants
Create product variant
curl --request POST \
  --url https://api.shoppex.io/dev/v1/products/{id}/variants \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "New",
  "description": null,
  "price": 9,
  "price_modifier": null,
  "stock": 3,
  "stock_delimiter": null,
  "license_period": null,
  "option_values": {
    "region": "eu"
  },
  "is_default": false,
  "sort_order": 0
}
'
{
  "data": {}
}

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Path Parameters

id
string
required

Body

application/json

The body is of type object.

Response

Successful response

data
object