InstaTunnel
Toggle navigation menu
API
10 min read
17 views

Walmart's ORDER\_UPDATES Webhook: Testing subEventType Routing on Localhost Before December 15

Walmart's ORDER_UPDATES webhook replaces legacy PO_CREATED events from Dec 15, 2026. Learn subEventType routing and test it on localhost with a tunnel.

IT
InstaTunnel Team
Published by the InstaTunnel team | Editorial policy
Walmart's ORDER\_UPDATES Webhook: Testing subEventType Routing on Localhost Before December 15

Quick answer

Walmart ORDER_UPDATES Webhook Dec 15: Test on Localhost: webhook testing answer

For local webhook testing, run your app locally, expose it with a public HTTPS tunnel, and paste the stable callback URL into the provider dashboard.

How do I test webhooks on localhost?

Start your local server, open a public HTTPS tunnel to that port, configure the provider webhook URL, and inspect events in your local logs.

Why does a stable webhook URL matter?

Stable URLs prevent provider dashboards from needing manual callback updates every time you restart a tunnel.

If your Walmart Marketplace integration listens for PO_CREATED, PO_LINE_AUTOCANCELLED or INTENT_TO_CANCEL, you have a deadline. Walmart has moved order notifications into a single ORDER_UPDATES webhook, and the three standalone events are scheduled to go away on December 15, 2026. That is fifteen days from today.

This is not a generic “version 1 to version 2” migration. The new payload has a different shape, a different discriminator field, different timestamp formats, and one brand-new sub-event with no legacy equivalent. This guide covers what changed, how to build and test a subEventType router on your own machine, and where Walmart’s documentation leaves questions you should settle before cutover.

What Walmart changed, and what the December 15 date means

Walmart announced the change on February 11, 2026. The new event is ORDER_UPDATES (event version V1, resource ORDER). Instead of one webhook per status, you subscribe once and route on payload.meta.subEventType. Four sub-events exist today:

Legacy standalone event ORDER_UPDATES sub-event Typical use
PO_CREATED PO_CREATED Start acknowledgment and fulfillment
PO_LINE_AUTOCANCELLED PO_LINE_AUTOCANCELLED Update inventory, notify customer, refund if needed
INTENT_TO_CANCEL INTENT_TO_CANCEL Pause fulfillment or confirm cancellation
(none) FRAUD_CANCEL Block shipment; reconcile payment and inventory

Walmart says the design is extensible, so more sub-events will likely follow.

Read the deprecation wording carefully

Walmart’s announcement page describes the legacy events inconsistently. One bullet says they will continue to work but be deprecated on December 15. The migration section says they will be deprecated and removed on that date. The heading says removal.

Walmart’s API deprecation guide separates “deprecated” (still available for a limited time) from “sunset” (retired, requests may fail). It does not list these webhook events in its status table, and the legacy event reference pages I read carry no deprecation banner. So the documentation does not settle whether deliveries stop on the 15th or merely lose support.

Plan for the stricter reading: deliveries may stop on December 15. Walmart also gives no time of day or time zone, so do not schedule your cutover for that day. If your business depends on a precise answer, ask your Walmart contact or Solution Provider support in writing.

The payload is not the same payload

Switching the event name in your router is not enough. Compare the legacy PO_CREATED page with the new order management event guide:

Concern Legacy standalone event ORDER_UPDATES
Event discriminator source.eventType is PO_CREATED etc. source.eventType is always ORDER_UPDATES; read payload.meta.subEventType
Order data Flat under payload Nested under payload.order
Line items orderLines is an array orderLines.orderLine is an array
Line quantity quantity.unitOfMeasure, quantity.measurementValue orderLineQuantity.unitOfMeasurement, orderLineQuantity.amount
Line status status string on the line orderLineStatuses.orderLineStatus[] with statusQuantity
Order and status dates ISO 8601 strings Epoch milliseconds (only source.eventTime stays ISO 8601)
Shipping method shippingMethod on the line fulfillment.shipMethod
Fulfillment node shipNodeType: SellerFulfilled, WFSFulfilled, 3PLFulfilled shipNode object with id and type (examples: SellerFulfilled, Store, FC)

Three details deserve extra attention.

Cancellation reasons. The legacy INTENT_TO_CANCEL payload includes cancellationReason and cancelSubReasonCodeDescription. Neither appears in the new guide’s field table or samples. If your customer-support flow reads them, verify against real deliveries before you remove the legacy path.

More customer data. The new payload carries customerEmailId (masked or relay) and a full shippingInfo.postalAddress with recipient name. Treat fixtures and logs as personal data.

Unreliable fields. The field table lists partnerId, but the published samples omit it. Do not build logic on it until you see it in a real delivery.

Subscribing once, and why the URL must be stable

You create the subscription with POST /v3/webhooks/subscriptions, using eventType: "ORDER_UPDATES", eventVersion: "V1", resourceName: "ORDER", an eventUrl, and authDetails. Check the Create subscription reference for the exact request wrapper, since subscribing to several events in one call is supported.

Walmart supports three authMethod values:

  • BASIC_AUTH: Walmart sends a header (named by authHeaderName) containing Base64 userName:password.
  • HMAC: Walmart sends an HMAC-SHA256 of the request body, keyed with your clientSecret. The pages I read do not state whether the signature is hex or Base64, so capture a real delivery and pin the encoding.
  • OAUTH: Walmart first calls your token URL with a client-credentials grant, then sends a bearer token.

There is no separate payload signature to verify beyond the credentials you configured.

A subscription stores your destination. Every time a random tunnel URL changes, you have to PATCH the subscription’s eventUrl, which Walmart does allow. A stable HTTPS subdomain on your tunnel (InstaTunnel’s custom subdomains, for example) lets you register the callback once and keep it across restarts.

One safety rule: do not point a production seller account’s order webhook at your laptop. Order payloads contain live customer names and addresses, and a sleeping laptop means missed events. Use sandbox credentials, or a separate subscription you can set to INACTIVE (PATCH supports ACTIVE and INACTIVE).

A localhost handler that routes on subEventType

This Express handler (Node 20) accepts both envelope shapes, which you will need during migration. It acknowledges first, ignores unknown sub-events, and supports a shadow mode that logs ORDER_UPDATES events without acting on them.

import express from "express";
import crypto from "node:crypto";

const app = express();
const seen = new Map(); // eventId -> time; use durable storage in production
const SHADOW = process.env.SHADOW_ORDER_UPDATES === "1";

// Assumes you set authHeaderName to "Authorization" when subscribing.
function basicAuthOk(header = "") {
  const expected = "Basic " +
    Buffer.from(`${process.env.WM_HOOK_USER}:${process.env.WM_HOOK_PASS}`).toString("base64");
  const a = Buffer.from(header), b = Buffer.from(expected);
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}

function normalize(body) {
  const { source = {}, payload = {} } = body;
  if (source.eventType === "ORDER_UPDATES") {
    return { shape: "order_updates", kind: payload.meta?.subEventType,
             po: payload.order?.purchaseOrderId, eventId: source.eventId };
  }
  return { shape: "legacy", kind: source.eventType,
           po: payload.purchaseOrderId, eventId: source.eventId };
}

const handlers = {
  PO_CREATED: (e) => console.log("start fulfillment", e.po),
  PO_LINE_AUTOCANCELLED: (e) => console.log("release inventory", e.po),
  INTENT_TO_CANCEL: (e) => console.log("pause fulfillment", e.po),
  FRAUD_CANCEL: (e) => console.log("halt shipment", e.po),
};

app.post("/webhooks/walmart", express.raw({ type: "*/*", limit: "1mb" }), (req, res) => {
  if (!basicAuthOk(req.get("authorization"))) return res.sendStatus(401);
  let body;
  try { body = JSON.parse(req.body.toString("utf8")); }
  catch { return res.sendStatus(400); }

  const evt = normalize(body);
  if (evt.eventId && seen.has(evt.eventId)) return res.sendStatus(200);
  if (evt.eventId) seen.set(evt.eventId, Date.now());

  res.sendStatus(200); // acknowledge first; queue durably before this in production

  if (SHADOW && evt.shape === "order_updates") {
    return console.log("shadow", evt.kind, evt.po);
  }
  const fn = handlers[evt.kind];
  if (!fn) return console.warn("unrecognized event", evt.shape, evt.kind);
  setImmediate(() => fn(evt));
});

app.listen(3000);

Two design choices matter here. The eventId guard is skipped when the ID is missing, so a payload without one is still processed rather than dropped. And unknown kinds still return 200, because Walmart has said new sub-events can appear and told integrators to ignore unrecognized fields. Returning an error for an unfamiliar sub-event would trigger retries for something you cannot process anyway.

Start your tunnel pointing at port 3000 and register the stable HTTPS URL as the eventUrl.

A localhost test plan

1. Validate the URL and credentials

Walmart’s Test Notification API (POST /v3/webhooks/test) sends a test event to your eventUrl with the auth method you specify. When your endpoint returns 200, it confirms the URL was validated. Walmart’s example uses OFFER_UNPUBLISHED, not an order event, so this proves reachability and authentication, not your router. Your handler should log it as an unrecognized kind and still return 200. That is a useful accidental test of the unknown-event path.

2. Replay one fixture per sub-event

Copy a sample from the order management guide into fixtures/order_updates.base.json, then generate one file per sub-event:

for k in PO_CREATED PO_LINE_AUTOCANCELLED INTENT_TO_CANCEL FRAUD_CANCEL; do
  jq --arg k "$k" '.payload.meta.subEventType = $k | .source.eventId = ($k + "-001")' \
    fixtures/order_updates.base.json > "fixtures/order_updates.$k.json"
done

curl -i https://YOUR-STABLE-SUBDOMAIN/webhooks/walmart \
  -u "$WM_HOOK_USER:$WM_HOOK_PASS" \
  -H "Content-Type: application/json" \
  --data @fixtures/order_updates.FRAUD_CANCEL.json

Walmart’s published samples are copies of each other. All four share the same eventId and identical line data (every line shows a CANCELLED status, even in the PO_CREATED sample). Use them to test parsing and routing, not state transitions. For state logic, write fixtures that reflect real order states.

3. Test the paths that fail

  • Unknown sub-event: set subEventType to a made-up value. Expect 200 and a warning, no crash.
  • Bad credentials: expect 401, and confirm nothing was processed.
  • Duplicate delivery: send the same fixture twice and confirm side effects run once.
  • Extra and missing fields: delete partnerId-style fields and add unknown ones. Your parser should shrug.

4. Check retry behavior

Walmart expects a 200 acknowledgment. Its documentation describes retries two ways: one page says three attempts in total; another says three retries at 5, 15 and 45 minutes from the previous attempt. On the second reading, a handler that stays down for about an hour gets no further deliveries. Return a 500 once on purpose and check in your logs whether the retry carries the same eventId, since Walmart says to use eventId as the idempotency key.

A third-party guide recommends answering within three seconds. I could not find a stated timeout on Walmart’s own pages, but it is a sensible target, so acknowledge first and work later.

If your laptop sleeps past the retry window, the event is gone. Walmart’s notification guidance is explicit that events are lightweight and do not replace read requests, so keep a reconciliation poll against the Orders API running.

Shadow mode: running legacy and new side by side

For a few days, keep your legacy subscriptions active and add an ORDER_UPDATES subscription alongside them. Run the handler with SHADOW_ORDER_UPDATES=1: the legacy path keeps acting while the new path only logs (subEventType, purchaseOrderId). Then compare the two sets.

Why shadow instead of acting on both? A single purchase order will arrive twice, once per envelope, and the two envelopes may not share an eventId. I could not confirm that either way. Deduplicating on (purchaseOrderId, kind) is risky too, because a purchase order can legitimately produce several PO_LINE_AUTOCANCELLED events for different lines. Shadowing sidesteps both problems. When the sets match, unset the flag and set the old subscriptions to INACTIVE instead of deleting them, so you can roll back.

If Walmart will not accept two subscriptions on one URL, use two paths on the same tunnel.

FRAUD_CANCEL: the handler you have never written

FRAUD_CANCEL has no legacy counterpart, so no existing code covers it. Walmart positions it as a real-time signal from fraud review to stop fulfillment, avoid seller-fault metrics and trigger the right customer and refund flows. At minimum, your handler should stop any pick, pack or label step for the order, release reserved inventory, and flag the order so an in-flight shipment is not created. Test it as its own fixture, not as a variation of INTENT_TO_CANCEL.

Cutover checklist for the next 15 days

  • Subscribe to ORDER_UPDATES in sandbox and replay all four sub-events.
  • Confirm real deliveries against your fixtures, especially auth header and HMAC encoding.
  • Check whether you rely on cancellationReason anywhere.
  • Convert epoch-millisecond dates before they reach your database.
  • Run shadow mode and compare event sets.
  • Make downstream actions idempotent by order state, not by event count.
  • Put a reconciliation poll in place.
  • Switch production on a day with margin, well before the 15th.
  • Deactivate legacy subscriptions only after the new path has handled live traffic.

A different webhook system: don’t confuse it with MCS

Walmart also introduced Multichannel Solutions webhooks on September 28, 2026, with events such as ORDER_STATUS_UPDATE, ORDER_SHIPMENT_UPDATE and MCS_RETURN_ORDER_STATUS_UPDATE. These are a separate system for Walmart Multichannel Solutions orders, and nothing I found ties them to the December 15 change.

FAQ

Will the old Walmart webhooks stop working on December 15, 2026? Walmart’s page says both that they keep working and that they are removed on that date. Treat December 15 as the day deliveries may end.

Do I need a new subscription? Yes. ORDER_UPDATES is a different event type, so you create a new subscription with eventType: "ORDER_UPDATES".

Which field do I route on? payload.meta.subEventType. The top-level source.eventType is always ORDER_UPDATES.

Can I test without live orders? Partly. The Test Notification API checks your URL and auth, and fixtures check your router. Walmart advises testing each sub-event in sandbox, but I could not confirm which sub-events the sandbox can trigger.

Sources

Continue from this article into the most relevant product guides and workflows.

Related Topics

#Walmart webhooks#Walmart ORDER_UPDATES#ORDER_UPDATES webhook#Walmart order webhook#Walmart order management webhook#Walmart Marketplace API#Walmart Marketplace webhooks#Walmart developer API#Walmart seller API#Walmart API integration#Walmart webhook migration#Walmart webhook changes December 15#Walmart webhook deprecation#Walmart legacy webhook events#PO_CREATED webhook#PO_LINE_AUTOCANCELLED#INTENT_TO_CANCEL webhook#subEventType#subEventType routing#webhook sub-events#webhook event routing#webhook JSON envelope#webhook payload handling#webhook event types#test webhooks on localhost#localhost webhook testing#webhook testing locally#localhost tunneling#localhost tunnel#expose localhost to internet#ngrok alternative#tunneling tools#local webhook development#webhook debugging#webhook receiver#webhook endpoint#webhook handler#webhook signature verification#webhook retries#webhook idempotency#ecommerce webhooks#marketplace order webhooks#order status webhooks#order update notifications#order fulfillment automation#order management API#ecommerce integration#ecommerce developer#API migration guide#API deprecation#event-driven architecture#REST API webhooks#backend development#developer infrastructure#DevOps#cloud-native#HTTPS tunnel#public URL for localhost#InstaTunnel#Walmart integration tutorial

Keep building with InstaTunnel

Read the docs for implementation details or compare plans before you ship.

Share this article

More InstaTunnel Insights

Discover more tutorials, tips, and updates to help you build better with localhost tunneling.

Browse All Articles