Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

walmart-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and authenticate Walmart Marketplace webhooks (notifications). Use when setting up Walmart webhook handlers, protecting the endpoint with the…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

Walmart Webhooks

When to Use This Skill

  • How do I receive Walmart Marketplace webhooks (notifications)?
  • How do I authenticate Walmart webhook requests?
  • How do I handle ORDER_UPDATES, BUY_BOX_CHANGED or OFFER_UNPUBLISHED?
  • How do I migrate off the legacy PO_CREATED event?
  • Why does my Walmart endpoint get retries or a failure email?

Verification (core)

Walmart doesn't sign notification payloads. Each subscription can carry optional authDetails, and Walmart sends the credential you chose in the header you name as authHeaderName (Walmart's examples use Authorization):

authMethod What Walmart sends in the authHeaderName header
BASIC_AUTH The Base64 of userName:password (Walmart's supplier docs show Basic <base64(username:password)>)
OAUTH Bearer <access_token>, a token Walmart first gets from your authUrl with the client-credentials grant
HMAC An HMAC-SHA256 "of the complete response" keyed with clientSecret. Walmart doesn't publish the encoding, so test it before relying on it

A subscription without authDetails is delivered with no credential. Walmart can also send static custom headers you set on the subscription.

Check BASIC_AUTH (Node):

const crypto = require('crypto');

function verifyWalmartBasicAuth(headerValue, user, pass) {
  if (!user || !pass) return null; // not configured: fail closed
  if (typeof headerValue !== 'string' || headerValue === '') return false;
  const expected = Buffer.from(`${user}:${pass}`).toString('base64');
  const value = headerValue.replace(/^basic\s+/i, '').trim(); // with or without "Basic "
  const a = Buffer.from(value);
  const b = Buffer.from(expected);
  return a.length === b.length && crypto.timingSafeEqual(a, b);
}

Python:

import base64, hmac, re

def verify_walmart_basic_auth(header_value, user, password):
    if not user or not password:
        return None  # not configured: fail closed
    if not header_value:
        return False
    expected = base64.b64encode(f"{user}:{password}".encode()).decode()
    value = re.sub(r"^basic\s+", "", header_value, flags=re.IGNORECASE).strip()
    return hmac.compare_digest(value, expected)

Don't look for WM_SEC.SIGNATURE / WM_SEC.TIMESTAMP headers: no current Walmart page documents them on deliveries. And don't confuse any of this with WM_SEC.ACCESS_TOKEN or the legacy WM_SEC.AUTH_SIGNATURE RSA scheme: those authenticate your API calls to Walmart.

For complete handlers with route wiring, event routing, and tests, see:

Delivery format

Every notification is a JSON POST with two top-level objects:

{
  "source": { "eventType": "...", "eventTime": "ISO 8601 UTC", "eventId": "..." },
  "payload": { }
}

Route on source.eventType. Three types carry a sub-type:

  • ORDER_UPDATES: payload.meta.subEventType in Walmart's examples (its prose says payload.subEventType, so read both): PO_CREATED, PO_LINE_AUTOCANCELLED, INTENT_TO_CANCEL, FRAUD_CANCEL
  • SELLER_PERFORMANCE_NOTIFICATIONS: payload.notificationType, ALARMS or REPORT
  • MCS_RETURN_ORDER_STATUS_UPDATE: payload.header.eventName

Walmart says to dedupe on source.eventId, but its own examples reuse one eventId across different events, so key on eventId + eventType + sub-type. Ignore unknown fields and event types.

Common Event Types

eventType resourceName Triggered when
ORDER_UPDATES ORDER An order is created, auto-cancelled, cancel-requested or fraud-cancelled (sub-event)
PO_CREATED, PO_LINE_AUTOCANCELLED, INTENT_TO_CANCEL ORDER Legacy standalone order events, removed December 15, 2026: use ORDER_UPDATES
DRIVER_STATUS ORDER A last-mile delivery driver reaches a new status
INVENTORY_OOS INVENTORY An item goes out of stock
OFFER_PUBLISHED / OFFER_UNPUBLISHED ITEM An offer is published or unpublished
BUY_BOX_CHANGED PRICE The Buy Box winner or price changes
RETURN_CREATED / RETURN_DELIVERED / RETURN_INVOICED ReturnsAndRefunds A return is created, delivered or invoiced
REPORT_STATUS REPORTS A requested report is ready or fails
SELLER_PERFORMANCE_NOTIFICATIONS FEEDS Shipping alarms or the weekly KPI report

Available types vary by account: call Get event types and subscribe with exactly what it returns. See references/overview.md for the full list, including Multichannel Solutions events.

Delivery behaviour

  • Respond 2xx within 3 seconds; Walmart times out slower responses.
  • Retries: 5 minutes, then 15 minutes after the first retry, then 45 minutes after the second.
  • Repeated failures can mark
Полный SKILL.md на GitHub

Установить walmart-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/walmart/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл walmart-webhooks?

Receive and authenticate Walmart Marketplace webhooks (notifications). Use when setting up Walmart webhook handlers, protecting the endpoint with the subscription's authDetails credentials, routing on source.eventType, or handling events like ORDER_UPDATES, BUY_BOX_CHANGED, OFFER_UNPUBLISHED and SELLER_PERFORMANCE_NOTIFICATIONS.

Как установить скилл walmart-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл walmart-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить walmart-webhooks с