This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Decrements quantities of multiple inventory items.
Notes::
trackQuantity
must be true
to allow for decrementing the quantity.restrictInventory: true
and the decrementData.decrementBy
amount is greater than the current quantity in stock, the request will fail with an INSUFFICIENT_INVENTORY
error.restrictInventory: false
to allow for negative quantities.preorderRequest: true
and the item is available for preorder, the item's preorderCounter
will increase and the item's quantity will stay the same.You can only call this method when authenticated as a Wix app or Wix user identity.