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.
Anchor to FieldsFields
- •OBJECT
An error that occurs during the execution of
.