GET

Get Store Variant


Retrieves a store variant with the provided ID.

Permissions
Manage Stores - all permissions
Read Stores - all read permissions
Manage Orders
Manage Products
Read Products
Manage Restaurants - all permissions
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/stores-reader/v1/variants/{id}

Path Params
idstringRequired

Store variant ID. Comprised of the productId and the variantId, separated by a hyphen. For example, {productId}-{variantId}.

Response Object
variantVariant

The requested store variant.

Get Store Variant Example 1
Request
cURL
curl -X GET \ 'https: //www.wixapis.com/stores/v1/variants/0614129c-8777-9f3b-4dfe-b80a54df10d5-00000000-0000-0020-0005-a316f7c67df7' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "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": {} } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?