This article presents possible use cases and corresponding sample flows that you can support. This can be a helpful jumping off point as you plan your implementation.
After adding a new product to your catalog using the Create Product endpoint, you need to set up inventory tracking. This is a common scenario when expanding your product catalog and preparing items for sale.
Note: Alternatively, you can use Create Product With Inventory to create both the product and its inventory items in a single call.
To create inventory for a new product in the default location:
productId and variantId(s) from the response.productId and variantId, along with the initial quantity or tracking method. When you don't specify a locationId, the inventory item is created in the default location.You want to add a new inventory item to a specific location in your Wix store. This is useful when you have new stock arriving at a particular warehouse or store location and need to update your inventory system accordingly.
To create an inventory item in a specific location:
variantId, productId, and any other relevant information. Specify the location by including the locationId in your request.When you receive additional stock for a specific variant of a product, or when a customer wants to return or refund an item, you need to update the inventory quantity in your system. This ensures that your stock levels are accurate and customers can see the correct availability.
To increment the inventory of a variant:
variantId for this step.IncrementData.variantId and IncrementData.locationId to update the inventory quantity for the specified variant in a specific location.You want to change the inventory tracking method for a specific product to "In Stock". This is useful when you don't manage stock levels for products that are not physically stored or have continuous inventory.
To change the inventory items tracking method to "In Stock" for a specific product:
inventoryItem.inStock field to true.filter with the product ID, for example: {"productId": "f54bc047-ea9d-4910-afa0-a9bea33af481"}.You want to retrieve a list of all products that are currently in stock at a specific location. This is useful for managing inventory, ensuring stock levels are adequate, and making informed business decisions.
To find in-stock products at a specific location:
locationId and availabilityStatus in the filter parameter of your request to retrieve inventory items based on their availability status at a specific location: