Skip to main content
Webhooks enable systems to get notified when some action(s) are performed in the Way application. This is extremely helpful in order to get the data from Way as soon as the event occurs in the application. Brands need to configure the URL of their application and listen to the available events. When these events occur, Way will send an HTTP request with POST method along with the payload to the configured URLs.

Adding a Webhook

The easiest way to configure a Webhook is through the Way dashboard. Click on “Add webhook”, and specify the URL in which you have an endpoint ready to receive HTTP POST requests. Enter a secret key (optional) and select the events you want to subscribe to.
images/Screenshot2025-03-15at8.59.14PM.png

Supported Events

Securing a Webhook

To ensure the security and authenticity of webhook calls, a unique secret can be set when configuring a webhook in Way. This secret is encrypted and transmitted as a special header, named X-Way-Signature, in each webhook request sent to your URL. By encrypting this secret on your end using the same method and comparing it with the X-Way-Signature header, you can verify that the incoming requests are indeed from Way. Node.js Example:
function validateWebhook (request) {
    const hash = crypto.createHmac('sha256', <WEBHOOK-SECRET>)
        .update(JSON.stringify(request.body))
        .digest("base64");
    return hash === request.headers['X-Way-Signature'];
}

Retry Webhooks

When a webhook trigger results in an error response from Way, the system schedules a retry attempt after a specific interval. If this retry also encounters an error, additional retry attempts are made until a maximum limit is reached. These retries occur in batches and follow the sequence in which the webhooks were initially triggered.
  • Retry Interval: The failed webhooks are retried in 10 minute intervals.
  • Retry Threshold: If a webhook retry fails for the third time, then there will not be be any new retries. The webhook log will stay in the failed state.

Viewing Webhook Logs

To help you monitor and debug webhook activity, Way provides a Webhook Logs section in the dashboard. This log captures all webhook requests sent to your configured URLs, including:
  • Delivery Status (Success, Failed, Retried)
  • Timestamps (When the webhook was triggered and delivered)
  • Response Codes (E.g., 200 OK, 500 Internal Server Error)
  • Payload Data (The full JSON payload sent)
To access Webhook Logs:
  1. Go to Way Dashboard > Settings > Developers > Webhooks
  2. Click on a specific webhook to see recent webhook requests
  3. Filter logs by status, event type, or date range to troubleshoot issues
If a webhook fails, check the logs for response errors and ensure your endpoint is reachable.
images/Screenshot2025-03-15at7.42.01PM.png