Inventory Set Quantities User Error Code
Possible error codes that can be returned by .
Anchor to Valid valuesValid values
- Anchor to COMPARE_QUANTITY_REQUIREDCOMPARE_QUANTITY_REQUIRED
The compareQuantity argument must be given to each quantity or ignored using ignoreCompareQuantity.
- Anchor to COMPARE_QUANTITY_STALECOMPARE_QUANTITY_STALE
The compareQuantity value does not match persisted value.
- Anchor to INVALID_INVENTORY_ITEMINVALID_INVENTORY_ITEM
The specified inventory item could not be found.
- Anchor to INVALID_LOCATIONINVALID_LOCATION
The specified location could not be found.
- Anchor to INVALID_NAMEINVALID_NAME
The quantity name must be either 'available' or 'on_hand'.
- 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.
- Anchor to INVALID_QUANTITY_TOO_LOWINVALID_QUANTITY_TOO_LOW
The total quantity can't be lower than -1,000,000,000.
- Anchor to INVALID_REASONINVALID_REASON
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 specified inventory item is not stocked at the location.
- Anchor to NO_DUPLICATE_INVENTORY_ITEM_ID_GROUP_ID_PAIRNO_DUPLICATE_INVENTORY_ITEM_ID_GROUP_ID_PAIR
The combination of inventoryItemId and locationId must be unique.
- 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.