SMSGatewayCenter provides a Test Webhook feature to ensure your webhook configuration works as expected before saving it. Here’s how to test and verify:
Steps to Test a Webhook: #
- Set Up the Webhook: While adding a webhook (e.g., for DLR or WhatsApp MO), fill in all required fields like Product, Webhook URL, and Report Type.
- Click Test Webhook: After configuring the webhook, click the Test Webhook button.
- View the Response: The response from your webhook URL will be displayed in the Webhook Test Response section.
- If successful, you’ll see the HTTP response (e.g., 200 OK) and any returned data.
- If there’s an error, you’ll see details like “404 Not Found” or “Timeout.”
How to Verify It Works: #
- Check the response status code to confirm your endpoint is reachable (e.g., 200 indicates success).
- Ensure the payload contains the expected data (e.g., Transaction ID, Mobile Number).
- Verify that custom parameters or headers (if added) are included in the request.
Best Practices: #
- Ensure your webhook URL is active and can handle the selected send method (e.g., POST, JSON).
- Fix any errors (e.g., incorrect URL, server issues) before saving the webhook.
Testing your webhook on SMSGatewayCenter ensures seamless real-time data delivery. For assistance, contact our support team.