{"section":"troubleshooting","requestedLocale":"en","requestedSlug":"product-remains-available-in-stock-after-the-order-has-been-invoiced","locale":"en","slug":"product-remains-available-in-stock-after-the-order-has-been-invoiced","path":"docs/en/troubleshooting/orders-and-fulfillment/product-remains-available-in-stock-after-the-order-has-been-invoiced.md","branch":"main","content":"Reservations are an essential feature that ensures the product sold is not made available to another customer until the order has been fully processed. However, a common question among merchants is why the reservation remains active even after the order has been invoiced.\n\nAfter a product is sold, it undergoes the following statuses in the store inventory, reflecting the order's progress:\n\n1. [Authorized reservation](/en/docs/tutorials/how-does-reservation-work#reserva-autorizada): Occurs immediately after the order is completed and created.\n\n2. [Confirmed reservation](/en/docs/tutorials/how-does-reservation-work#confirmed-reservation): Status reached once the order payment has been approved.\n\n3. [Acknowledged reservation](/en/docs/tutorials/how-does-reservation-work): The order goes into the \"Awaiting fulfillment\" status, indicating that the product is about to be shipped.\n\nProducts are only withdrawn from inventory when the order reaches the **Awaiting fulfillment** status. The [removal from inventory](/en/docs/tutorials/how-does-reservation-work#removal-from-inventory), which updates the number of available items, can be done manually by the merchant or automatically through the ERP. This process is carried out via [inventory management](/en/docs/tutorials/managing-stock-items) or the endpoint [Update inventory by SKU and warehouse](https://developers.vtex.com/docs/api-reference/logistics-api#put-/api/logistics/pvt/inventory/skus/-skuId-/warehouses/-warehouseId-).\n\n## Solutions\n\nConsider the following processes for updating the inventory when orders are in the **Awaiting fulfillment** status:\n\n- [Update inventory manually](#updating-inventory-manually): Adjust the number of in-stock items manually to reflect the actual available and reserved products, if applicable.\n\n- [Configure ERP](#configuring-your-erp-to-update-inventory): Make sure ERP is configured to update the inventory automatically when the order status changes, removing reserved items.\n\n### Updating inventory manually\n\nTo manually update the inventory count, follow the steps below:\n\n1. In the VTEX Admin, go to **Catalog > Inventory > Inventory Management**, or type **Inventory Management** in the search bar at the top of the page.\n\n2. Click **Inventory Management**.\n\n3. Search for the desired SKU.\n\n4. In the **Update Count** column, enter the correct number of items in stock, considering the sum of the available items plus the reserved ones.\n\n5. Click **Save**.\n\n### Configuring your ERP to update inventory\n\nWhen an order reaches the **Awaiting fulfillment** status, it's essential that the inventory system updates the product, removing it from reserved status and adjusting the available quantity. To do this, the ERP must synchronize the number of products in stock, deducting the number of products reserved for orders in progress.\n\nMerchants must configure and integrate their ERP. This process can be automated through the [Update inventory by SKU and warehouse](https://developers.vtex.com/docs/api-reference/logistics-api#put-/api/logistics/pvt/inventory/skus/-skuId-/warehouses/-warehouseId-) endpoint, which allows communication between the ERP system and the store inventory, ensuring the information is always up to date."}