Skip to main content
GET
/
dev
/
v1
/
products
/
{id}
/
variants
List product variants
curl --request GET \
  --url https://api.shoppex.io/dev/v1/products/{id}/variants \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "id": "variant_1",
      "uniqid": "variant_1",
      "product_uniqid": "prod_1",
      "title": "Gold",
      "description": null,
      "price": 12,
      "price_modifier": null,
      "stock": 5,
      "stock_delimiter": null,
      "license_period": null,
      "option_values": {
        "region": "eu"
      },
      "is_default": true,
      "sort_order": 0,
      "created_at": 1711953600,
      "updated_at": 1711953900
    }
  ],
  "pagination": {
    "next_cursor": null,
    "has_more": false
  }
}

Authorizations

Authorization
string
header
required

Use your Shoppex API key in the Authorization header.

Path Parameters

id
string
required

Response

200 - application/json

Successful response

data
object