Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Retrieve a paginated list of a product’s variants.
curl 'http://localhost:9000/admin/products/prod_01HXYZABCDEF/variants?limit=20' \ -H 'Authorization: Bearer <token>'
const { variants, count } = await client.admin.products.$id.variants.query({ $id: "prod_01HXYZABCDEF", limit: 20, })
{ "variants": [ { "id": "variant_01HXYZABCDEF", "title": "M", "sku": "LS-M", "product_id": "prod_01HXYZABCDEF", "manage_inventory": false, "allow_backorder": false, "variant_rank": 0 } ], "count": 1, "offset": 0, "limit": 20 }
-
+
Show properties