Skip to Content
BlogA vendor renamed a webhook field

A vendor renamed a webhook field. Where should your integration catch it?

Ray Garcia
Ray Garcia
Published December 11, 2026

When a vendor renames or moves a field in a webhook payload, most handlers don’t fail. They return 200 and write an empty value, and you find out from whoever reads the data. Catch it at the boundary: check each webhook against a schema you own before your code uses it, keep the raw payload, and hold anything that fails. Then fix the mapping and re-run the stored webhooks it touched, comparing timestamps so an older event doesn’t overwrite a newer one.

The 200 that hid the problem

Illustrative example. An order webhook used to carry the customer’s email at customer.email. One day the vendor sends it at buyer.email_address instead. Your handler doesn’t throw. It reads customer.email, gets undefined, writes a row with no email, and returns 200. The vendor sees a success. So do you. The person who notices is whoever tries to email that customer.

Why your code didn’t notice

Parsers are forgiving on purpose. Reading a missing key in JavaScript gives you undefined, not an error; most ORMs will happily insert a null. And a 200 only tells the vendor someone answered. It says nothing about whether the data was right.

The old belief: if the handler returns 200, the integration worked.

Own your schema at the boundary

What’s actually true: the only place you can catch a vendor change before it spreads is the moment the webhook arrives. So check every payload against a schema you own, at the door, before your code uses it.

Doing that yourself, without any gateway (illustrative, Node with Ajv):

// Illustrative. Validate the fields your code depends on before using them. import Ajv from 'ajv' const ajv = new Ajv({ allErrors: true }) const order = { type: 'object', required: ['id', 'customer'], properties: { id: { type: 'string' }, customer: { type: 'object', required: ['email'], properties: { email: { type: 'string', minLength: 3 } }, }, }, } const validate = ajv.compile(order) export function accept(rawBody) { const payload = JSON.parse(rawBody) // after signature verification if (!validate(payload)) { holdForReview(rawBody, validate.errors) // store it, don't drop it, alert someone return { status: 200 } // acknowledge so the vendor stops retrying } return process(payload) }

Three habits matter more than the library:

  1. Mark the fields you depend on as required. A schema that allows everything catches nothing.
  2. Store the raw payload, including the ones that fail. You can’t fix history you didn’t keep.
  3. Make failures visible to a person. A held webhook nobody hears about is the same as a lost one.

If the field really is absent from the raw payload, see Why is my webhook data missing fields? for telling “absent” from “empty” from “dropped by my parser”.

Then fix the records it already touched

Catching the next one doesn’t repair the rows written before you noticed. For those you need the original payloads and a way to run them through the fixed mapping:

  1. Fix the mapping (buyer.email_address → your email).
  2. Re-run the stored webhooks from the window when the change landed.
  3. Make the receiver compare timestamps (or versions), so an older event re-run now doesn’t overwrite a newer update that already arrived.

Where Slashbin fits

This is the design Slashbin is built around. You define your Golden Model, the one schema you own for each topic (called a model in the console), and map each vendor’s fields into it; see how the Golden Model works. A webhook that fails validation against your model doesn’t reach your code: it waits in the dead-letter queue, and a daily digest email lists the new ones. A webhook whose payload matches none of your mapped fields lands there too. A required field that is simply missing may instead be omitted or defaulted, depending on how your mapping treats it, so check your model’s required fields and defaults. You fix the model or mapping, then retry from the dead-letter queue. For webhooks that were already delivered with the old mapping, replay re-sends stored webhooks through your latest mapping: one record at a time by ID within 3 days on Free (your model needs a primary key flagged), or a date range over 7 days on Lite and 30 days on Pro. Replay isn’t newest-wins, so step 3 above still applies. For the full procedure, see Replay webhooks after fixing a bug.

FAQ

Will my handler error when a vendor renames a field? Usually not. Reading a missing key returns undefined or null, so the handler keeps returning 200 unless you validate the payload against a schema with required fields.

Should I return an error to the vendor when validation fails? Usually not: a non-2xx makes the vendor retry the same bad payload. Store it, acknowledge it, and alert someone. (Check your vendor’s docs for how it treats non-2xx responses.)

How do I fix data that was already written wrong? Fix the mapping, re-run the stored payloads from the affected window, and have the receiver compare timestamps so older events don’t overwrite newer ones.