A webhook signature verification failure occurs when an affiliate system cannot authenticate a delivery using the sender’s documented signing rules. The conversion payload may look valid, but a readable order ID or commission amount is not evidence that the event came from the network. Until verification succeeds, the delivery should not create or update a conversion, trigger a partner postback, or change a payable balance.
Start by finding the first point where the sender and receiver disagree. The most useful evidence is usually the network’s delivery record, the receiver’s verification failure reason, and a timeline of recent changes to the endpoint, signing secret, or request handling. Together, these can distinguish an authentication problem from a reporting delay.
Identify where the delivery failed
A network dashboard may label a webhook as failed without distinguishing a signature mismatch from a missing header, an expired timestamp, or an application error after verification. Match one network delivery to one receiver request using the delivery ID where available. If the network exposes both an event ID and a delivery ID, keep them separate: the former identifies the business event, while the latter may identify an individual delivery attempt.
Record the endpoint, environment, reception time, and verification result. Useful categories include missing signature, malformed signature, timestamp outside the allowed window, signature mismatch, and verification passed. A specific internal reason makes a difference: an absent header points toward request routing or forwarding, while a mismatch on a well-formed request points toward the signing inputs or key. Keep public responses generic and follow the network’s documented response and retry conventions.
Check whether the rejected request reached the application at all. An edge gateway can deny a request before the verifier runs, and an application can return an error after accepting the signature. If verification passed but the conversion is absent from the dashboard, trace the queue, attribution rules, and reporting pipeline instead. The distinction between batching and reporting latency matters here: a verified event awaiting a scheduled import is a different problem from an event rejected at intake.
Check the inputs to signature verification
Preserve the signed body
Many webhook providers sign the exact request body, not the data structure produced by parsing it. If the receiver parses the JSON and then serialises it again, it may change whitespace, key order, or character escaping. The data still means the same thing to the application, but the bytes sent to the verifier are different. For providers that sign the raw body, make that body available to the verifier before parsing or normalisation.
Review the full path from the public endpoint to the application. A gateway integration might wrap the payload in an envelope, expose it as a base64-encoded field, or pass a parsed object instead of the original bytes. Check the integration’s documented behaviour rather than assuming that the framework’s body field contains the original payload. Test through the deployed route as well as locally: a passing application test does not show that production middleware preserves the signing inputs.
Match the provider’s signing format
Confirm the signature header name, algorithm, signature encoding, and exact message construction. Some providers sign only the body; others include a timestamp or other metadata using a prescribed separator and field order. A receiver expecting a hexadecimal digest will not correctly interpret a base64 signature. Likewise, a version prefix or a header containing multiple signatures needs to be parsed according to the provider’s rules.
Prefer the provider’s maintained verification library where available. For a custom integration, use documented test vectors or a signed test delivery from the provider to check the implementation, and use a constant-time comparison for message authentication codes. If you accept webhooks from several networks, select the verification configuration from the endpoint’s trusted integration settings rather than an unverified account identifier in the payload.
Confirm the endpoint’s signing secret and clock
A webhook signing secret is not necessarily the API credential used to fetch conversion reports. It may be specific to an endpoint, account, or environment. Check which secret version the running receiver actually loaded, not just which version the configuration dashboard displays. If failures are intermittent after a deployment, compare results across receiver instances. A worker that still holds an old secret can make identical-looking attempts succeed or fail depending on where they land.
For providers that sign a timestamp and enforce a tolerance, check clock synchronisation and confirm whether the timestamp is expressed in seconds or milliseconds. Apply the provider’s rules to the signed delivery timestamp, not the order time in the conversion payload. A sale can be reported hours after it occurred and still arrive in a freshly signed webhook. If the provider’s verification model expects checks at receipt, verify before placing the event on an internal queue so processing delays do not consume the acceptance window.
Restore delivery without weakening verification
After correcting the configuration or code, send a provider-generated test event through the affected endpoint. Confirm that the signature passes, the event is durably captured, and the endpoint returns the expected acknowledgement. Also confirm that an invalid test signature is rejected and produces no conversion record. Do not disable verification or widen timestamp tolerances simply to make a backlog move.
If the incident coincides with a secret rotation, establish when the network stopped signing with the previous key and when each receiver started using the replacement. Use overlapping keys only if the provider supports that transition, and remove the retired key when the documented overlap ends. Record key version identifiers in diagnostic logs rather than secret values, and avoid logging full signatures or raw conversion payloads as a routine troubleshooting step.
Recover missing conversions and verify payout impact
Fixing the receiver restores new deliveries; it does not prove that earlier conversions were recovered. Bound the affected interval using the first observed failures and the first confirmed healthy deliveries. Check which failed attempts the network already retried, then use its supported redelivery mechanism or an authenticated reporting API to recover what remains. Do not assume an old captured request can be resubmitted successfully: its original signed timestamp may no longer be valid.
During recovery, deduplicate by the provider’s stable event identifier within the appropriate account or integration scope. Deduplicating by delivery attempt alone can count each retry as a new event. Deduplicating by order ID alone can have the opposite effect: it may discard a valid adjustment or reversal for an order already recorded. Apply the provider’s event and revision semantics so recovered events do not overwrite newer conversion states.
Finally, compare the affected period against the network’s authoritative records. Use network reconciliation checks to match conversion references, approval states, commission amounts, and currencies rather than relying on a recovered event count. Keep authentication failures, recovered events, and unresolved payout differences separate in the incident record. That gives finance and partner operations evidence of what was restored, which balances changed, and which discrepancies still need review.
