Configure your systems to consume webhook response by assigning appropriate fields based on your self-serve configurations.
Feature-set
Use this response structure if your feature enabled numbers are under process configurations -> Feature-sets.
i.e This response structure is for customers which are on the new self-serve console.
Payload - Call Me Back
#For Customers without Slot Picker
Copy // For Customers without Slot Picker
{
"event_id": "91584c0f-32a8-11ef-a9e4-5a5798f0",
"client_account_id": "9b7f9343-12a5-4271-b560-6daa163",
"event_type": "cmb",
"created_at": "1719288504",
"cmb_payload": {
"business_number": "0806951XXXX",
"feature_set": "cmb",
"client_number": "08047360",
"requested_at": "1719288504",
"requested_date": "26 June 2024",
"requested_slot": "tomorrow",
"preferred_from_time": null,
"preferred_to_time": null,
"is_interested": true,
}
}
#For Customers with Slot Picker
Copy // For Customers with Slot Picker
{
"event_id": "91584c0f-32a8-11ef-a9e4-5a5798f0",
"client_account_id": "9b7f9343-12a5-4271-b560-6daa163",
"event_type": "cmb",
"created_at": "1719288504",
"cmb_payload": {
"business_number": "0806951XXXX",
"feature_set": "cmb",
"client_number": "08047360",
"requested_at": "1719288504",
"requested_date": "26 June 2024",
"requested_slot": "tomorrow",
"preferred_from_time": "1719288504",
"preferred_to_time": "1719288504",
"is_interested": true,
}
}
#For Customers with Not Interested
Copy // For Customers who are Not Interested
{
"event_id": "91584c0f-32a8-11ef-a9e4-5a5798f0",
"client_account_id": "9b7f9343-12a5-4271-b560-6daa163",
"event_type": "cmb",
"created_at": "1719288504",
"cmb_payload": {
"business_number": "0806951XXXX",
"feature_set": "cmb",
"client_number": "08047360",
"requested_at": "1719288504",
"requested_date": "",
"requested_slot": "",
"preferred_from_time": null,
"preferred_to_time": null,
"is_interested": false,
}
}
Payload - User Feedback
Copy {
"event_id": "d9f0c752-32a8-11ef-af53-3e643cc47",
"client_account_id": "9b7f9343-12a5-4271-b560-6daa1638",
"event_type": "user_feedback",
"created_at": "1719288626",
"survey_payload": {
"business_number": "080698XXXXXX",
"feature_set": "user_feedback_numbers",
"client_number": "0804736XXXX",
"requested_at": "1719288626",
"user_responses": [
{
"question": "Did you find our services helpful?",
"response": "Yes, very helpful!"
}
]
}
}
Number Groups
Use this response structure if your feature configurations are tied to number groups . i.e This response structure is for customers which are on the old self-serve console.
Payload - Call Me Back
#For Customers without Slot Picker
Copy // For Customers without Slot Picker
{
"event_id": "91584c0f-32a8-11ef-a9e4-5a5798f0",
"client_account_id": "9b7f9343-12a5-4271-b560-6daa163",
"event_type": "cmb",
"created_at": "1719288504",
"cmb_payload": {
"business_number": "0806951XXXX",
"number_group": "Capital City - Support",
"client_number": "08047360",
"requested_at": "1719288504",
"requested_date": "26 June 2024",
"requested_slot": "tomorrow",
"preferred_from_time": null,
"preferred_to_time": null,
"is_interested": true,
}
}
#For Customers without Slot Picker
Copy // For Customers with Slot Picker
{
"event_id": "91584c0f-32a8-11ef-a9e4-5a5798f0",
"client_account_id": "9b7f9343-12a5-4271-b560-6daa163",
"event_type": "cmb",
"created_at": "1719288504",
"cmb_payload": {
"business_number": "0806951XXXX",
"number_group": "Sales cmb",
"client_number": "08047360",
"requested_at": "1719288504",
"requested_date": "26 June 2024",
"requested_slot": "tomorrow",
"preferred_from_time": "1719288504",
"preferred_to_time": "1719288504",
"is_interested": true,
}
}
#For Customers with Not Interested
Copy // For Customers who are Not Interested
{
"event_id": "91584c0f-32a8-11ef-a9e4-5a5798f0",
"client_account_id": "9b7f9343-12a5-4271-b560-6daa163",
"event_type": "cmb",
"created_at": "1719288504",
"cmb_payload": {
"business_number": "0806951XXXX",
"number_group": "cmb",
"client_number": "08047360",
"requested_at": "1719288504",
"requested_date": "",
"requested_slot": "",
"preferred_from_time": null,
"preferred_to_time": null,
"is_interested": false,
}
}
Payload - User Feedback
Copy {
"event_id": "8140e293-c8e0-4102-bed4-5553c94f",
"client_account_id": "11f288fa-9e83-4aa5-968b-28df7ca53",
"event_type": "user_feedback",
"created_at": "1711709820631",
"survey_payload": {
"name": "webhook_survey ",
"business_number": "+91903571XXXX",
"number_group": "Capital City - Support numbers",
"client_number": "+9190190XXXXX",
"user_responses": [
{
"question": "Did you find our support response helpful?",
"response": "Yes, somewhat helpful."
}
]
}
}