POST

Get Inventory Variants


Permissions
Manage Stores - all permissions
Read Stores - all read permissions
Manage Products
Read Products
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/stores-reader/v2/inventoryItems/{inventoryId}/getVariants

Body Params
variantIdsArray <string>

Variant IDs to query for this inventory item (optional).


One Of
Choose one of the following parameters

inventoryIdstring

Inventory item ID.


externalIdstringdeprecated

Deprecated (use productID instead).


productIdstring

Product ID.

Response Object
inventoryItemInventoryItem

Inventory item.

Get Inventory Variants Example 1
Request
cURL
Response
JSON
Errors

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

Did this help?