includeOutOfStock
IncludeOutOfStock is a boolean flag used in product search queries and catalog APIs to control whether items with an inventory status of out of stock are included in results. When set to true, the response may contain products that cannot be purchased immediately; when false or omitted, only in-stock items are returned.
Default behavior varies by platform, but most storefronts hide out-of-stock items to present only purchasable options.
Where it is used: includeOutOfStock appears in e-commerce platforms, product search services, and APIs that expose
Considerations: If you include out-of-stock items, ensure stock data is current to avoid misrepresentation. This flag
Implementation notes: Expose includeOutOfStock as a per-request parameter and document its default. Ensure indexing includes the
This flag supports transparent catalog exploration and advanced workflows, but should be used with clear stock