Important: Recommendations AI has migrated to the Retail API, which is now generally available.

The Recommendations AI API (service endpoint https://recommendationengine.googleapis.com) and this documentation set remain available, but they will no longer be updated. We recommend migrating your recommendations to the Retail API (service endpoint https://retail.googleapis.com). See the new documentation:

StockState

Item stock state. If this field is unspecified, the item is assumed to be in stock.

Enums
STOCK_STATE_UNSPECIFIED Default item stock status. Should never be used.
IN_STOCK Item in stock.
OUT_OF_STOCK Item out of stock.
PREORDER Item that is in pre-order state.
BACKORDER Item that is back-ordered (i.e. temporarily out of stock).