# SyncStockLevelRefusal enum


Why [`syncStockLevels`](/chameleoon-max/mutation/sync-stock-levels) refused an item.

## Values

### NO_EXTERNAL_REF

No variant carries an external reference with this `externalId` in the external source that
manages the warehouse.

### SET_NOT_SYNCABLE

The variant is a set sold as its components (`setMode` `EXPLODED`).

### NOT_STOCKABLE

The variant is a service or a non-stock product.

### STALE_SNAPSHOT

`asOf` is not newer than the `asOf` last judged for the variant in the warehouse (an item that
was `APPLIED` or `UNCHANGED`).

### LOCATION_NOT_FOUND

The warehouse has no bin in use with this `locationCode`.

### LOCATION_AMBIGUOUS

Several bins in use in the warehouse have this `locationCode`, in different zones.

### LOCATION_REQUIRED

The warehouse keeps stock by bin, and the position has no `locationCode`.

### LOT_REQUIRED

The product tracks batches, expiries or serial numbers, and the position lacks the one it needs.

### LOT_MODE_MISMATCH

The position names a batch or serial number of a kind the product does not track, or any batch,
expiry or serial number for a product that tracks none.

### EXPIRY_MISMATCH

The batch is known in MAX with another expiry date.

### SERIAL_QUANTITY

A serial number would have a quantity above 1.

### SERIAL_ELSEWHERE

The serial number is on hand in another warehouse.

### RESERVED_IN_PICKING

The change would take goods that a consignment being picked, picked or packed holds.

### WAREHOUSE_UNDER_STOCKTAKE

A stocktake is counting the warehouse. Every item of the call is refused.

### VARIANT_TWICE

Another item of the call names the same variant through another id.

### POSITION_TWICE

Two positions of the item are one stock position in MAX, for example two expiries of a product
that tracks batches only.

### TOO_MANY_POSITIONS

The item would write more positions than one call may.

## Used by

- [`SyncStockLevelItemResult`](/chameleoon-max/type/sync-stock-level-item-result)
