Updates the available inventory for a listing. Supports two actions: setting inventory to an exact value (SET_INVENTORY) or adjusting it by a delta (ADJUST_INVENTORY). If inventory reaches 0, the listing is automatically closed.
The listing ID.
Inventory update action
The inventory update operation to perform.
SET_INVENTORY — sets inventory to an exact value. Requires oldInventory and newInventory.ADJUST_INVENTORY — adjusts inventory by a delta. Requires inventoryAdjustment.SET_INVENTORY, ADJUST_INVENTORY The expected current inventory count. The update will only proceed if the listing's current inventory matches this value.
*Required if action is SET_INVENTORY
x >= 0The inventory value to set.
*Required if action is SET_INVENTORY
x >= 0The amount to add (positive) or subtract (negative) from the current inventory.
*Required if action is ADJUST_INVENTORY