I have software written that APIs Big Commerce and gets order info check to see if the order has processed and makes edits to our POS system which handles our inventory in our warehouse. The issue is larger orders, or if BigCommerce's API is running slow and it times out the order number will be recorded and the next time the cron job runs it doesn't process the order since it only references the order number. I need to get the software looking at each order number and the products in that order, to insure that all the products in every order has been adjusted in our pos/inventory system. Most of the software is written, and I already have it recording each order number and product in that order. Just need the program to reference the data to decide what needs to run... if an order times out in the middle. Right now it doesn't continue to process and just skips it if it runs into a order number that has been recorded, even if all items in that order was not processed.