Order status webhooks
1.
order.completed
- this is triggered when the order is completed, i.e. the contact's payment has been captured by Payment Gateway{
"type": "order.completed",
"data": {
"id": "wa_ord_1234abcd",
"reference_id": "<your_order_id OR wa_ord_1234abcd>",
"status": "completed",
"contact": {
"id": 1,
"account_id": 1,
"name": "John Doe",
"phone_number": "+919988776655",
"first_name": "John",
"last_name": "Doe",
"country_code": "91",
"language": "en",
"email": "johndoe@example.com"
}
}
}
2.
order.canceled
- this is triggered when the order is canceled by the business before the order gets paid by the contact{
"type": "order.canceled",
"data": {
"id": "wa_ord_1234abcd",
"reference_id": "<your_order_id OR wa_ord_1234abcd>",
"status": "canceled",
"contact": {
"id": 1,
"account_id": 1,
"name": "John Doe",
"phone_number": "+919988776655",
"first_name": "John",
"last_name": "Doe",
"country_code": "91",
"language": "en",
"email": "johndoe@example.com"
}
}
}