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"
}
]
}
}
Variants
List Variants
Get all variants for a product
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
The product ID
Response
Request success status
Show properties
Show properties
Show variant object
Show variant object
Variant ID
Parent product ID
Variant title (e.g., “Red / Large”)
Stock keeping unit
Price in cents
Compare at price in cents
Stock quantity
Weight in grams
First option value
Second option value
Third option value
Barcode (UPC, EAN, etc.)
Associated image ID
Display position
Creation timestamp
Last update timestamp
{
"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"
}
]
}
}
⌘I