Find the answer to your question
Sellers now have the ability to keep their GTC (Good 'Til Cancelled) items alive, even when the quantity goes down to zero. This enables sellers to replenish stock for the same ItemID, without the need to relist when the item is back in stock.
Add out of stock control feature
API for variations:
Checking item status and setting it back in stock:
API Doc: OutOfStockControl Flag