{"section":"known-issues","requestedLocale":"en","requestedSlug":"checkout-allows-adding-sku-quantities-above-available-stock-when-external-seller-simulation-returns-0-as-quantity","locale":"en","slug":"checkout-allows-adding-sku-quantities-above-available-stock-when-external-seller-simulation-returns-0-as-quantity","path":"docs/en/known-issues/Checkout/checkout-allows-adding-sku-quantities-above-available-stock-when-external-seller-simulation-returns-0-as-quantity.md","branch":"main","content":"## Summary\n\n\nWhen an external seller returns quantity 0 in the simulation payload, the checkout system proceeds as if any requested quantity is available. The visible symptom is that carts and simulations accept quantities greater than the SKU’s real stock (e.g., adding 20 or 30 units when only 4 are available).\n\nThis affects marketplace scenarios with external sellers whose simulation endpoint responds with 0 instead of the requested quantity or the stock-capped quantity.\n\nHowever, if the stock balance and quantity are sent as 0, our API returns `withoutStock`.\n\n\n#### Simulation\n\n\n\n- Prerequisites: An account integrated with an external seller whose simulation endpoint consistently returns 0 for the quantity field, regardless of the requested quantity or stock.\n- Call the Checkout simulation API with an item from the external seller, requesting a quantity higher than the seller’s real stock. Note that the simulation accepts the requested quantity instead of capping at the stock level.\n\n\n\n#### Workaround\n\n\nAsk the external seller to adjust their simulation response. The seller must return the exact quantity requested only when it is equal to or lower than the product’s current stock."}