INCOMPLETE cart in the validation_issues array, or within a 422 Unprocessable Entity response in details[].business_context when the merchant could not create the cart or apply the requested updates.
Note: You can view the complete protocol reference for the Cart API and the Complete Checkout API.
Inventory and stock management errors
Inventory issues are among the most common errors in e-commerce. These examples show how to handle out-of-stock scenarios, back-orders, and discontinued products gracefully. Return a separate validation issue for each item that fails, and include thevariant_id so the AI agent can identify the affected item.