Update inventory balance
To update inventory balance, you move stock of product variants from a type of inventory to another.
For example, when 5 small size white t-shirts are sold, you move 5 of the product from the
STOREinventory to the
SOLDinventory. Then the inventory balance of the small size white t-shirt is updated.
- Make sure that authorisation is set up with the following OAuth scope using OAuth API:
- The "from" and "to" UUIDs for the inventories involved in the movement. See Fetch inventories.
- The product UUID for a specific product. See Fetch products.
- The variant UUID for which to update the balance. See Fetch products.
Use the following request to update the inventory balance for an organization. The response will only have status
204 No Content.
Example: The following example updates the inventory balance for product variants of the product with UUID
65314d7e-5f0f-11ec-bf63-0242ac130002. The variant UUIDs are
7c6be742-5f0f-11ec-bf63-0242ac130002, from inventory UUID
92646e02-5f0f-11ec-bf63-0242ac130002, with values