Retrieves a store variant with the provided ID.
Store variant ID. Comprised of the productId
and the variantId
, separated by a hyphen. For example, {productId}-{variantId}
.
The requested store variant.
curl -X GET \
'https: //www.wixapis.com/stores/v1/variants/0614129c-8777-9f3b-4dfe-b80a54df10d5-00000000-0000-0020-0005-a316f7c67df7' \
-H 'Authorization: <AUTH>'
{
"variant": {
"id": "0614129c-8777-9f3b-4dfe-b80a54df10d5-00000000-0000-0020-0005-a316f7c67df7",
"variantId": "00000000-0000-0020-0005-a316f7c67df7",
"productId": "0614129c-8777-9f3b-4dfe-b80a54df10d5",
"variantName": "250g | Stovetop",
"productName": "Brazilian Arabica",
"managedVariant": true,
"sku": "",
"stock": {
"trackQuantity": false,
"quantity": 0,
"inStock": true
},
"choices": {
"Weight": "250g",
"Ground for": "Stovetop"
},
"collectionIds": ["32fd0b3a-2d38-2235-7754-78a3f819274a"],
"media": {
"image": {
"id": "nsplsh_306d666a306a4a74306459~mv2_d_4517_2992_s_4_2.jpg",
"url": "https://static.wixstatic.com/media/nsplsh_306d666a306a4a74306459~mv2_d_4517_2992_s_4_2.jpg/v1/fit/w_4517,h_2992,q_90/file.jpg",
"height": 2992,
"width": 4517
}
},
"customFields": {}
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.