Get Order ID from Previously Sent Message to confirm order

I am trying to confirm WooCommerce orders via WhatsApp.

- When a new order is placed, the customer receives a whatsApp message to Confirm/Cancel the order. (Workflow-1)
1683016900787.png




- After this, when a customer clicks on confirm/cancel order buttons, I get this response (Workflow-2)
1683016995981.png


- This response is not having the Order ID. The order ID is needed to update the order status to confirmed/cancelled in WooCommerce.
 
P

Pabblymember11

Guest
Hey @Deepanshu Patidar

It doesn't look like the WhatsApp Cloud API trigger event will provide the order ID since it's a webhook-based trigger event that only captures the trigger event once send by the application and perhaps the Cloud API doesn't send the Order ID if the users select Confirm/Cancel the order.
 

Hicham

Member
Hey @Deepanshu Patidar

It doesn't look like the WhatsApp Cloud API trigger event will provide the order ID since it's a webhook-based trigger event that only captures the trigger event once send by the application and perhaps the Cloud API doesn't send the Order ID if the users select Confirm/Cancel the order.
Hello i have the same request How it can be done with pably , it will be great if you give us a hint to know how it could be done thanks !
 
Top