VMASS icon

VMASS

VMASS POS System Integration - Quản lý đơn hàng, sản phẩm, kho, khách hàng

Inventory → Update Quantity

AI-generated

Summary

Update the quantity of an existing inventory item by adding, subtracting, or setting a specific amount.

Inputs

  • Inventory ID (required) — Numeric ID of the inventory item to update.
  • Quantity (required) — The quantity number to be applied in the update.
  • Operation Type (required) — The operation to perform on the quantity: add to, subtract from, or set the amount.

Output shape

A single record containing the updated inventory item's details as returned by the VMASS API.

The response data is extracted from the 'data' property of the API response. Errors on update are thrown unless 'Continue On Fail' is enabled, in which case an error object is returned per item.

Links

Discussion