Skip to main content
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

variant_id
string
required
The variant ID

Response

success
boolean
Request success status
data
object
{
  "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"
  }
}