Skip to main content
GET
/
api
/
v1
/
products
/
{product_id}
/
variants
List Variants
curl --request GET \
  --url https://api.launchmystore.io/api/v1/products/{product_id}/variants \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "variants": [
      {
        "id": "var_abc123",
        "product_id": "prod_xyz789",
        "title": "Red / Small",
        "sku": "TSHIRT-RED-S",
        "price": 2999,
        "compare_at_price": 3999,
        "inventory_quantity": 50,
        "weight": 200,
        "option1": "Red",
        "option2": "Small",
        "option3": null,
        "barcode": "123456789012",
        "image_id": "img_def456",
        "position": 1,
        "created_at": "2024-01-15T10:30:00Z",
        "updated_at": "2024-01-15T10:30:00Z"
      },
      {
        "id": "var_abc124",
        "product_id": "prod_xyz789",
        "title": "Red / Medium",
        "sku": "TSHIRT-RED-M",
        "price": 2999,
        "compare_at_price": 3999,
        "inventory_quantity": 75,
        "weight": 220,
        "option1": "Red",
        "option2": "Medium",
        "option3": null,
        "barcode": "123456789013",
        "image_id": "img_def456",
        "position": 2,
        "created_at": "2024-01-15T10:30:00Z",
        "updated_at": "2024-01-15T10:30:00Z"
      }
    ]
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.launchmystore.io/llms.txt

Use this file to discover all available pages before exploring further.

Path Parameters

product_id
string
required
The product ID

Response

success
boolean
Request success status
data
object
{
  "success": true,
  "data": {
    "variants": [
      {
        "id": "var_abc123",
        "product_id": "prod_xyz789",
        "title": "Red / Small",
        "sku": "TSHIRT-RED-S",
        "price": 2999,
        "compare_at_price": 3999,
        "inventory_quantity": 50,
        "weight": 200,
        "option1": "Red",
        "option2": "Small",
        "option3": null,
        "barcode": "123456789012",
        "image_id": "img_def456",
        "position": 1,
        "created_at": "2024-01-15T10:30:00Z",
        "updated_at": "2024-01-15T10:30:00Z"
      },
      {
        "id": "var_abc124",
        "product_id": "prod_xyz789",
        "title": "Red / Medium",
        "sku": "TSHIRT-RED-M",
        "price": 2999,
        "compare_at_price": 3999,
        "inventory_quantity": 75,
        "weight": 220,
        "option1": "Red",
        "option2": "Medium",
        "option3": null,
        "barcode": "123456789013",
        "image_id": "img_def456",
        "position": 2,
        "created_at": "2024-01-15T10:30:00Z",
        "updated_at": "2024-01-15T10:30:00Z"
      }
    ]
  }
}