Get Variant
curl --request GET \
--url https://api.launchmystore.io/api/v1/variants/{variant_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"id": "var_abc123",
"product_id": "prod_xyz789",
"title": "Red / Small",
"sku": "TSHIRT-RED-S",
"price": 2999,
"compare_at_price": 3999,
"inventory_quantity": 50,
"inventory_policy": "deny",
"weight": 200,
"weight_unit": "g",
"requires_shipping": true,
"taxable": true,
"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"
}
}
Variants
Get Variant
Get a single variant by ID
GET
/
api
/
v1
/
variants
/
{variant_id}
Get Variant
curl --request GET \
--url https://api.launchmystore.io/api/v1/variants/{variant_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"data": {
"id": "var_abc123",
"product_id": "prod_xyz789",
"title": "Red / Small",
"sku": "TSHIRT-RED-S",
"price": 2999,
"compare_at_price": 3999,
"inventory_quantity": 50,
"inventory_policy": "deny",
"weight": 200,
"weight_unit": "g",
"requires_shipping": true,
"taxable": true,
"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"
}
}
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 variant ID
Response
Request success status
Show variant properties
Show variant properties
Variant ID
Parent product ID
Variant title
Stock keeping unit
Price in cents
Compare at price
Current stock
”deny” or “continue”
Weight in grams
Weight unit (g, kg, lb, oz)
Requires shipping
Is taxable
{
"success": true,
"data": {
"id": "var_abc123",
"product_id": "prod_xyz789",
"title": "Red / Small",
"sku": "TSHIRT-RED-S",
"price": 2999,
"compare_at_price": 3999,
"inventory_quantity": 50,
"inventory_policy": "deny",
"weight": 200,
"weight_unit": "g",
"requires_shipping": true,
"taxable": true,
"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"
}
}
⌘I