SMSGatewayCenter allows you to set up a webhook to receive real-time Delivery Receipts (DLRs) for SMS and WhatsApp messages. Here’s how to do it:
Steps to Add a Webhook for DLR: #
- Log In: Access your SMSGatewayCenter account.
- Navigate to Webhooks: Go to the Webhooks section in your dashboard.
- Add a New Webhook: Click Add Webhook and fill in the form:
- Product: Select the product (e.g., SMS, WhatsApp).
- Webhook Server Send Method: Choose the HTTP method (e.g., POST, GET, JSON, XML).
- Webhook Report Type: Select DLR to receive delivery receipts.
- Waba Number (WhatsApp only): Choose a WhatsApp Business API (WABA) number from the list (not applicable for SMS).
- Webhook (URL Endpoint): Enter the URL where you want to receive the DLR data (e.g., https://yourapp.com/webhook).
- Set Required Parameters: Specify parameter names for:
- Transaction ID
- Message ID
- Error Code
- Mobile Number
- Received Time
- Delivered Time
- Set Additional Parameters (if applicable): For WhatsApp, include:
- Read Time
- Status
- Add Custom Parameters/Headers (Optional): Enable the checkboxes to add custom parameters or headers, and click Add More to include multiple entries.
- Test the Webhook: Click Test Webhook to send a test request and preview the response.
- Save: Click Save to create the webhook.
Best Practices: #
- Ensure your webhook URL is secure (use HTTPS) and can handle HTTP POST requests.
- Test the webhook thoroughly to confirm your system processes the DLR data correctly.
Setting up a DLR webhook on SMSGatewayCenter ensures you receive real-time delivery updates for your messages. For assistance, contact our support team.