Verify COD orders and turn order status from "on hold" to "processing" through Woocommerce API
Abhishek Chuniyana
#1
Abhishek Chuniyana
I have created a webhook inside botsailor that confirms the cod orders by Whatsapp and if the customers says confirm it adds a "order note" and if the customer cancels it then the webhook cancels the order through API in Woocommerce, but I want a solution that if the customer chooses to confirm order then the webhook should change the order status from "on hold" to "processing" in Woocommerce through API so that the shipping aggregator automatically fetches the orders that have status "processing" and ships them automatically.

This will save time and the merchant does not have to manually check ordernotes for whatsapp confirmation, if the customer has confirmed the order then it should turn from"on hold" to "processing" and will be automatically shipped o the customer.

Obviously Merchant has to set the default order status to "on hold" for COD orders or all orders for this to work and has to set up auto shipping in their shipping aggregator website like shiprocket or something else.