Skip to main content

Documentation

SKU Errors

Error Code

Description

ERROR_CREATE_SKU_WRONG_PRODUCT_TYPE

The request tried to create an SKU, but the 'type' field of the associated product was set to 'service'. The request was rejected. Corrective action: Set 'product' to the ID of a product that has its 'type' field set to 'goods'.

ERROR_DELETE_SKU

The request tried to delete an SKU, but the SKU was not found. The request was rejected. Corrective action: Determine whether the SKU was already deleted, and why there were multiple requests to delete it.

ERROR_GET_SKU

The request tried to retrieve an SKU, but the SKU was not found. The request was rejected. Corrective action: Use a valid SKU ID.

ERROR_INVALID_SKU_ACTIVE_VALUE

The request tried to create an SKU, but the value for 'active' was not valid. The request was rejected. Corrective action: Set the 'active' field to 'true' or 'false'.

ERROR_INVALID_SKU_ID

The request attempted an operation that requires an SKU, but the SKU was not found. The request was rejected. Corrective action: Use a valid SKU ID.

INVALID_INVENTORY_QUANTITY

The request tried to create or update an SKU, but the quantity specified for the inventory was not valid. The request was rejected. Corrective action: For 'quantity' in the 'inventory' object, specify a positive integer.

INVALID_SKU_ATTRIBUTES

The request tried to create or update an SKU, but the attributes did not match the list of attributes defined in the associated product. The request was rejected. Corrective action: Define attributes that match the list of attributes defined in the associated product.

ERROR_SKU_ID_ALREADY_EXISTS

The request tried to create an SKU, but the SKU ID was already in use. The request was rejected. Corrective action: Set the 'id' field to a unique value.

INVALID_SKU_HEIGHT

The request tried to create an SKU, but the product height was not valid. The request was rejected. Corrective action: Set the 'height' field to a positive number.

INVALID_SKU_INVENTORY_QUANTITY

The request tried to create or update an SKU, but the quantity specified for the inventory was not valid. The request was rejected. Corrective action: For 'quantity' in the 'inventory' object, specify a positive integer.

INVALID_SKU_INVENTORY_TYPE

The request tried to create or update an SKU, but the 'type' field in the 'inventory' object was not recognized. The request was rejected. Corrective action: Use 'finite', 'infinite' or 'bucket'.

INVALID_SKU_LENGTH

The request tried to create an SKU, but the product length was not valid. The request was rejected. Corrective action: Set the 'length' field to a positive number.

INVALID_SKU_PRICE

The request tried to create or update an SKU, but the 'price' was not recognized. The request was rejected. Corrective action: Use a valid decimal for the price.

INVALID_SKU_PRODUCT_TOKEN

The request tried to create or update an SKU, but the product was not recognized. The request was rejected. Corrective action: For 'product', use the ID of a valid product of type 'goods'.

INVALID_SKU_WEIGHT

The request tried to create an SKU, but the product weight was not valid. The request was rejected. Corrective action: Set the 'weight' field to a positive number.

INVALID_SKU_WIDTH

The request tried to create an SKU, but the product width was not valid. The request was rejected. Corrective action: Set the 'width' field to a positive number.