GET
/
catalog
/
products
/
{id}
/
variants
curl --request GET \
  --url https://services.commercengine.dev/api/v1/x2yh61zw4k/admin/catalog/products/{id}/variants \
  --header 'Authorization: Bearer <token>'
{
  "message": "<string>",
  "success": true,
  "content": {
    "variants": [
      {
        "id": "<string>",
        "name": "<string>",
        "active": true,
        "short_description": "<string>",
        "metadata": [
          {
            "key": "<string>",
            "value": "<string>"
          }
        ],
        "associated_options": {},
        "sku": "<string>",
        "images": [
          {
            "id": 123,
            "title": "<string>",
            "alternate_text": "<string>",
            "sort_order": 123,
            "url_tiny": "<string>",
            "url_thumbnail": "<string>",
            "url_standard": "<string>",
            "url_zoom": "<string>",
            "other_details": {}
          }
        ],
        "pricing": [
          {
            "id": 123,
            "customer_group_id": "<string>",
            "cost_price": 123,
            "listing_price": 123,
            "selling_price": 123,
            "min_order_quantity": 123,
            "max_order_quantity": 123,
            "incremental_quantity": 123,
            "tax_type": "<string>",
            "tax_rate": 123
          }
        ],
        "seo": {
          "meta_title": "<string>",
          "meta_description": "<string>",
          "meta_keywords": [
            "<string>"
          ],
          "slug": "<string>"
        }
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

product id

Response

200 - application/json
OK
message
string
success
boolean
content
object