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
STORE
inventory to the SOLD
inventory. 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:
WRITE:PRODUCT
- 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 78194842-5f0f-11ec-bf63-0242ac130002
and 7c6be742-5f0f-11ec-bf63-0242ac130002
, from inventory UUID 89ac1e4a-5f0f-11ec-bf63-0242ac130002
to inventory 92646e02-5f0f-11ec-bf63-0242ac130002
, with values 42
and 1337
.Request
Request body