How Lemon Squeezy delivers webhooks

Lemon Squeezy retries up to three more times with exponential backoff, then stops. The x-signature HMAC format and a Node verifier.

Delivery behaviour

Read from the vendor's own documentation, last checked 2026-08-06. Where the vendor states no number, this table carries none.

Response budgetnot published by the vendor
RetryUp to 3 more times with exponential backoff (for example 5, 25 and 125 seconds), then stops
Gives upnot published by the vendor

Signature

Verified against a working verifier proven by a test suite, not read from documentation. Last verified 2026-08-20.

AlgorithmHMAC-SHA256
Signed payloadraw body
Encodinghex
Headerx-signature + x-event-name
Tolerancenone enforced

Verify it

The raw request body, byte for byte, before any JSON parsing. Every scheme on this page breaks the moment a framework re-serializes the payload.

const crypto = require("node:crypto");

// hex(HMAC-SHA256(signing secret, raw body)); event name rides x-event-name
const expected = crypto
  .createHmac("sha256", signingSecret)
  .update(rawBody)
  .digest("hex");
const received = Buffer.from(req.headers["x-signature"] ?? "");
const wanted = Buffer.from(expected);
// timingSafeEqual throws on a length mismatch, so check that first.
const valid =
  received.length === wanted.length && crypto.timingSafeEqual(received, wanted);

What bites

Lemon Squeezy retries a failed delivery up to three more times with exponential backoff, for example after 5, 25 and 125 seconds, and then stops. A short outage can use them all, and no timeout or disable behaviour is published. Treat every delivery as possibly the only one, and keep your own log of what arrived.

Read more

AnyHook sits in front of endpoints that receive from Lemon Squeezy: it answers in about a second, retries on its own schedule when your server is down, and keeps every event replayable. Change one URL, keep your code.

How it works →