Skip to main content
Verify every Moflay webhook before using the payload. Signature verification protects your backend from requests that did not come from Moflay’s webhook delivery system.

Required headers

Moflay webhooks use Svix-style signing headers:

Verify with Node.js

Verification rules

  • Read the raw request body before parsing JSON.
  • Verify the signature before updating internal records.
  • Return a non-2xx response when verification fails.
  • Store the signing secret in your backend environment variables.

After verification

After the signature is valid:
  1. Check whether you already processed the webhook message.
  2. Inspect the event type.
  3. Update your internal order, invoice, or customer record.
  4. Return a successful response after your handler finishes.