When using v3 with opaque callback data or quick reply
buttons, you will receive more detailed webhook events.
{
"object": "whatsapp_business_account",
"entry": [
{
"id": "1147896940776789",
"changes": [
{
"field": "messages",
"value": {
"messaging_product": "whatsapp",
"metadata": {
"display_phone_number": "919724509724",
"phone_number_id": "838463922683351"
},
"statuses": [
{
"id": "wamid.HBgMOTE4ODY2MjMwNjYzFQIAERgSNzc2RUEzMEQwQUQ1NzhGNjZCAA==",
"status": "sent",
"timestamp": "1771854964",
"recipient_id": "918866230663",
"biz_opaque_callback_data": "{\"type\":\"zaple_api_call\",\"user_id\":\"56\",\"extra\":{\"send_to\":\"918866230663\",\"appointment_id\":\"52\",\"message_id\":\"528\"}}",
"pricing": {
"billable": false,
"pricing_model": "PMP",
"category": "utility",
"type": "free_customer_service"
}
}
]
}
}
]
}
]
}
Received when the user taps on your quick reply button.
Includes the button payload originally passed in the
send request.
{
"object": "whatsapp_business_account",
"entry": [
{
"id": "1147896940776789",
"changes": [
{
"field": "messages",
"value": {
"messaging_product": "whatsapp",
"metadata": {
"display_phone_number": "919724509724",
"phone_number_id": "838463922683351"
},
"contacts": [
{
"profile": {
"name": "~smit"
},
"wa_id": "918866230663"
}
],
"messages": [
{
"context": {
"from": "919724509724",
"id": "wamid.HBgMOTE4ODY2MjMwNjYzFQIAERgSNzc2RUEzMEQwQUQ1NzhGNjZCAA=="
},
"from": "918866230663",
"id": "wamid.HBgMOTE4ODY2MjMwNjYzFQIAEhgWM0VCMEM3MDk5RTEyQkMyRDMwMjE5NAA=",
"timestamp": "1771855045",
"type": "button",
"button": {
"payload": "approve_67_schedule",
"text": "Approve"
}
}
]
}
}
]
}
]
}