Webhook Notification Payload Examples

Example JSON Payloads for Message Handling

Received Messages (Incoming Payload Example)

This is an example of a JSON payload for a message received from a customer:

Copy to Clipboard

Note: A fromMe value of false indicates an incoming message.

Send Messages (Outgoing Payload Example)
Below is an example of a JSON payload for a message that you send to a customer:
Copy to Clipboard

Note: A `fromMe` value of `true` indicates an outgoing message.

Below is the PHP example of how received data

This is a simple example to save message data to text file

Copy to Clipboard

Below is the PHP example of how received data and insert to database

This is a simple example query to create a table

Copy to Clipboard

This is a simple example to insert message data to database 

Copy to Clipboard
Now time to test your webhook endpoint

This is a simple example of curl to text your webhook endpoint Note: please replace the webhook URL before testing the webhook

Copy to Clipboard
Online REST & SOAP API Testing Tool
reqbin.com
Webhook Integration Confirmation and Next Steps

Congratulations! Your webhook has responded with a 200 OK status and has successfully saved the necessary data. You are now ready to proceed to the next step, which involves integrating your webhook with the Business Management System (BMS).

Please follow these instructions:
  1. Share the finalized webhook URL with the BMS technical team.
  2. Coordinate with the team members to have your webhook added to the system.

Important Notice: The webhook payload system is an advanced feature that is not included in the basic BMS subscription. To enable this functionality, please consult with our BMS support team for detailed pricing information and to activate the add-on service.

We look forward to enhancing your BMS experience with this webhook integration.

Click to WhatsApp