Skip to main content
GET
/
admin
/
products
/
{id}
/
variants
/
{variant_id}
curl 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/variants/variant_01HXYZABCDEF' \
  -H 'Authorization: Bearer <token>'
{
  "variant": {
    "id": "variant_01HXYZABCDEF",
    "title": "M",
    "sku": "LS-M",
    "product_id": "prod_01HXYZABCDEF",
    "manage_inventory": false,
    "allow_backorder": false,
    "variant_rank": 0
  }
}
Returns one variant scoped to the given product.

Path parameters

id
string
required
The product’s ID.
variant_id
string
required
The variant’s ID.

Query parameters

fields
string
Comma-separated list of fields to include, prefix with +/- to add or remove from defaults.

Response

variant
object
curl 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/variants/variant_01HXYZABCDEF' \
  -H 'Authorization: Bearer <token>'
{
  "variant": {
    "id": "variant_01HXYZABCDEF",
    "title": "M",
    "sku": "LS-M",
    "product_id": "prod_01HXYZABCDEF",
    "manage_inventory": false,
    "allow_backorder": false,
    "variant_rank": 0
  }
}