Verify BigCommerce webhook signatures and protect against replays

domain: developer.bigcommerce.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. When BigCommerce delivers a webhook, extract the `X-BC-Signature` header from the request.
  2. Compute HMAC-SHA256 of the raw request body using your app's client secret as the key.
  3. Compare the computed hash (hex-encoded) to the value in `X-BC-Signature` using a constant-time comparison function to prevent timing attacks.
  4. Reject requests where the signature does not match with a 401 or 403 response before any business logic runs.
  5. Record the timestamp from the webhook payload's `created_at` field and reject payloads older than a configurable window (e.g., 5 minutes) to mitigate replay attacks.
  6. Respond with HTTP 200 immediately after signature validation; BigCommerce marks endpoints as inactive after repeated non-2xx responses and stops delivering events.

Known gotchas

Related routes

Verify Stripe webhook signatures and implement replay-attack protection
docs.stripe.com · 6 steps · unrated
set up and verify bigcommerce webhooks
bigcommerce.com · 6 steps · unrated
set up woocommerce webhooks and verify their signatures
woocommerce.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans