Interactive- Address Message
Interactive - Address Message allows user to share address information with the Brand.
Prerequisites
- An active WhatsApp plan on Kaleyra platform.
- An active WhatsApp for Business API plan that includes:
- A WhatsApp business number.
- An associated profile with the business number.
- A WhatsApp verified and approved profile.
- A WABA ID onboarded on Kaleyra WhatsApp API V2.
- You must have the callback registered in the WhatsApp channel for the phone numbers.
{
"meta_object": {
"value": {
"messaging_product": "whatsapp",
"metadata": {
"display_phone_number": "91XXXXXXXXXX",
"phone_number_id": "177XXXXXXXXXX45"
},
"contacts": [
{
"profile": {
"name": "Sam"
},
"wa_id": "91XXXXXXXXXX"
}
],
"messages": [
{
"context": {
"from": "918XXXXXXXX0",
"id": "wamid.HBgMOTE5NzQwNzc2NTA1FXXXXXXXXQIAERgSODIxRTc1MzNGRTQ2AA=="
},
"from": "919XXXXXXXX7",
"id": "wamid.HBgMOTE5NzQwNzc2NTA1FQIAEhXXXXXXXXXXggMTMxMzY4RjUwM4MkZBNzk3RDkwRkJCMTAA",
"timestamp": "17XXXXXXXX",
"type": "interactive",
"interactive": {
"type": "nfm_reply",
"nfm_reply": {
"response_json": "{\"values\":{\"in_pin_code\":\"666666\",\"landmark_area\":\"Bangalore\",\"address\":\"01 Manoj estate\",\"city\":\"Bangalore\",\"name\":\"CUSTOMER_NAME\",\"phone_number\":\"+91XXXXXXXXXX\",\"state\":\"Karnataka\"}}",
"body": "CUSTOMER_NAME\n+91XXXXXXXXXX\n666666, 01 Manoj estate, Bangalore, Bangalore, Karnataka",
"name": "address_message"
}
}
}
]
},
"field": "messages"
},
"extra_info": {
"media_url": "",
"ref": "Hello This will be my reference id - 123",
"ref1": "shoes campaign",
"ref2": "summer sale campaign",
"reply_to": "48c38d78-4ec5-XXXX-abee-03XXXXXX6c85",
"trace_id": "cb94fee2-3e70-XXXX-944a-2a4XXXXdb90a",
"waba_id": "347XXXXXXXXXX69"
}
}The extra_info object contains additional metadata related to end-user message or reply. These fields help in tracking message context, references, and internal identifiers.
The following describes each field within the extra_info object:
Parameter | Data Type | Description | Example |
|---|---|---|---|
| URL | Contains the URL of the media (image, video, document, and many more) shared by the end user, if applicable. | |
| String | A reference parameter provided by the brand during the original message send request.
This value appears in | shoes campaign |
| String | This field represents the parent message ID (the original message to which the end-user is replying) in the following scenarios: | 48c38d78-4ec5-XXXX-abee-03XXXXXX6c85 |
| String | An internal Kaleyra-generated identifier used for message tracing and debugging. | cb94fee2-3e70-XXXX-944a-2a4XXXXdb90a |
| String | The WhatsApp Business Account (WABA) ID associated with the message. | 347XXXXXXXXXX69 |
Updated 1 day ago
