Skip To Content
sounding.Conversations. Context.
Follow-Through.
Connection Evaluation

Test Webhook Schema Changes

A provider adds an optional field, and yesterday’s working receiver starts rejecting events. Another update renames a required field; this time the receiver accepts the request but saves an empty status. Both changes can leave intake staff missing work. Test field compatibility separately from webhook authentication, using a small versioned fixture pack with an expected result for every payload. This guide scopes an evaluation.

Review Webhook Change Handling

Write The Field Contract

Record the provider, event type, account scope, stable event identifier, required fields, allowed types, and permitted status values. Name the receiver mapping version separately from any version supplied by the provider. A payload claiming a newer version should not select an unreviewed mapping. Give each supported mapping an owner and a retirement condition.

Specify absent, null, empty-string, and unknown-value behavior independently. JSON Schema documents that null differs from a missing property, and that required properties and additional-property handling are separate rules. Do not turn a missing status into a successful outcome simply to make validation pass.

Preserve Authentication Before Mapping

Validate the original request with the provider’s supported method before selecting fields for business processing. Twilio warns that webhook parameters can be added without advance notice and recommends its SDK validation helpers. Removing unfamiliar parameters before validation can conflict with that contract. Verify the exact request format your endpoint receives.

After authentication and account checks, allow only reviewed fields to influence records or actions. An accepted optional extension need not become a database column or an instruction. Set size limits and retain only the diagnostic evidence permitted by your data policy.

Build A Versioned Fixture Pack

Save these six fictional JSON bodies with the named files and expected outcomes below. They illustrate mapping tests, not Twilio wire formats or valid signatures. Here, v1 requires a string id and status=open; reviewed v2 replaces status with state. Use an isolated test store and reset it between cases.

  • v1-base.json: {"id":"fixture-01","status":"open"}. Accept one mapped record.
  • v1-added.json: {"id":"fixture-01","status":"open","label":"sample"}. Accept; the approved optional label does not change the record’s meaning.
  • v1-removed.json: {"id":"fixture-01"}. Reject mapping with a missing-status reason; create no business record.
  • v1-null.json: {"id":"fixture-01","status":null}. Reject the wrong type without substituting open.
  • v1-unknown.json: {"id":"fixture-01","status":"paused"}. Hold for an unsupported-value review; never treat it as open.
  • v2-renamed.json: {"id":"fixture-01","state":"open"}. Hold under v1; accept only under the reviewed v2 mapping. Add a conflicting status/state case before enabling a transition alias.

Define Rejection And Recovery

Separate transport receipt from business acceptance. Document which authenticated failures enter a durable exception queue, who reviews them, and how corrected events are replayed. Choose HTTP responses and retry behavior from the exact provider contract; a business-level hold is not a universal instruction to return success. Do not acknowledge work that can disappear before durable handling.

Run the pack against both receiver versions, comparing stored fields, exception reasons, and side-effect counts. Replay an accepted fixture without resetting the store to check duplicate protection. Keep the old mapping until the agreed compatibility tests pass, and preserve a way to identify records processed by each version.

Hypothetical Example

A Rename That Looked Like Success

In this hypothetical test, v2-renamed receives an HTTP acknowledgment from the old receiver, but the saved status is blank. The team fails the test despite the successful response. The reviewed v2 mapper produces one open record; replaying that same fixture leaves one record. The missing, null, and unknown cases remain visible exceptions. No live customer event or outbound message is needed to demonstrate the distinction.

Your Action Checklist

  • Version the field contract and fixture expectations.
  • Keep authentication separate from field selection.
  • Make rejected and held events visible.
  • Check stored meaning and replay counts before rollout.

Questions Teams Ask

Should Every Unknown Field Be Rejected?

Follow the reviewed compatibility policy. Harmless additions can be tolerated without granting them operational meaning. Missing required fields, unsupported values, and conflicting aliases need explicit handling rather than silent defaults.

Sources And Further Reading

Put The Guide To Work.

Bring a fictional fixture pack to a Sounding audit discussion to scope event compatibility, exception ownership, and evidence needed for a proposed connection.

Review Webhook Change Handling
Useful Guidance, With Clear Boundaries

Sounding guides are operational frameworks, not legal advice or a promise of results. Examples are hypothetical. Product fit, source access, and available connections are confirmed for each deployment. Read Our Editorial Approach.