Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to InventorySetOnHandQuantitiesUserErrorCode

InventorySetOnHandQuantitiesUserErrorCode

enum

Possible error codes that can be returned by InventorySetOnHandQuantitiesUserError.

Anchor to INVALID_INVENTORY_ITEMINVALID_INVENTORY_ITEM
•

The specified inventory item could not be found.

•

The specified location could not be found.

Anchor to INVALID_QUANTITY_NEGATIVEINVALID_QUANTITY_NEGATIVE
•

The quantity can't be negative.

Anchor to INVALID_QUANTITY_TOO_HIGHINVALID_QUANTITY_TOO_HIGH
•

The total quantity can't be higher than 1,000,000,000.

•

The specified reason is invalid.

Anchor to INVALID_REFERENCE_DOCUMENTINVALID_REFERENCE_DOCUMENT
•

The specified reference document is invalid.

Anchor to ITEM_NOT_STOCKED_AT_LOCATIONITEM_NOT_STOCKED_AT_LOCATION
•

The inventory item is not stocked at the location.

Anchor to NON_MUTABLE_INVENTORY_ITEMNON_MUTABLE_INVENTORY_ITEM
•

The specified inventory item is not allowed to be adjusted via API. Example: if the inventory item is a parent bundle.

Anchor to SET_ON_HAND_QUANTITIES_FAILEDSET_ON_HAND_QUANTITIES_FAILED
•

The on-hand quantities couldn't be set. Try again.


Was this section helpful?