Update Item Inventory

PATCH

Updates the current inventory levels for a particular SKU item.

Updates may be given in one or two methods, absolutely or incrementally.

  • Absolute updates are done by setting quantity directly.
  • Incremental updates are by specifying the inventory delta in updateQuantity which is then added to the quantity stored on the server.

Required scope | ecommerce:write

Path parameters

collection_idstringRequired

Unique identifier for a Collection

item_idstringRequired

Unique identifier for an Item

Request

This endpoint expects an object.
inventoryType"infinite" or "finite"Required
Allowed values: infinitefinite

infinite or finite

updateQuantitydoubleOptional

Adds this quantity to currently store quantity. Can be negative.

quantitydoubleOptional

Immediately sets quantity to this value.

Response

Request was successful

idstringOptional

Unique identifier for a SKU item

quantitydoubleOptional

Total quantity of items remaining in inventory (if inventoryType is finite)

inventoryType"infinite" or "finite"Optional
Allowed values: infinitefinite

infinite or finite

Errors