GET Orders API filter (not completed
-
Is there a bulletproof way to get orders without using the column “completed”?
We have code in ERP system, where we get orders from Woocommerce, to invoice them in ERP system. Web shop guy says, that we cannot use the “completed” column for this, since the shop has been running for years without completing orders. He’s afraid to set the completed flag, since that would trigger the mail logic etc. that runs when an order is completed.For now we have been getting orders with logic like this: …orders?status=’processing’?after=AFTER&before=BEFORE
Where AFTER is timestamp for last time we retrieved orders and BEFORE is now().
But this way is not bulletproof, because it seems this uses the creation date. If customer is modified while we get orders we would not get that order.How would we fix this? Thanks!
- The topic ‘GET Orders API filter (not completed’ is closed to new replies.