Command Palette

Search for a command to run...

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

ebay-webhooks

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

Receive and verify eBay Notification API webhooks (event notifications, not the Trading API's SOAP Platform Notifications). Use when setting up an eBay…

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

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

eBay Webhooks

When to Use This Skill

  • How do I receive eBay webhooks (notifications)?
  • How do I pass eBay's endpoint challenge validation (challenge_code)?
  • How do I verify the x-ebay-signature header (ECDSA)?
  • How do I use the eBay getPublicKey endpoint and cache the public key?
  • How do I handle MARKETPLACE_ACCOUNT_DELETION (marketplace account deletion / closure) notifications?
  • Why is my eBay signature verification failing?

How eBay Webhooks Differ From Most Providers

eBay does not use HMAC with a shared secret, and does not follow the Standard Webhooks spec. Two distinct mechanisms are involved:

  1. Endpoint challenge (one-time, on save) — When you register or update a destination, eBay sends GET https://<your-endpoint>?challenge_code=.... You must respond HTTP 200 with JSON {"challengeResponse":"<hex>"} where the hex is the SHA-256 hash of exactly `challengeCode + verificationToken
    • endpoint` — in that order. The order is mandatory.
  2. Per-notification signature (ECDSA) — Every notification carries an x-ebay-signature header: a Base64-encoded JSON object whose kid names a public key and whose signature is the Base64 ECDSA signature. Use the kid to fetch the key via getPublicKey (its response gives the algorithm, ECDSA, and digest, SHA1), then verify the signature over the request body. Cache the public key ~1 hour (keyed by kid).

Verification (core)

Endpoint challenge — deterministic SHA-256, no crypto keys needed:

const crypto = require('crypto');

function challengeResponse(challengeCode, verificationToken, endpoint) {
  // ORDER IS MANDATORY: challengeCode + verificationToken + endpoint
  const hash = crypto.createHash('sha256');
  hash.update(challengeCode);
  hash.update(verificationToken);
  hash.update(endpoint);
  return hash.digest('hex'); // return as { challengeResponse: <hex> } with HTTP 200
}

Per-notification signature — ECDSA over the raw body, key fetched by kid:

async function verifyEbaySignature(rawBody, signatureHeader, getPublicKey) {
  if (!signatureHeader) return false;
  let sig;
  try { sig = JSON.parse(Buffer.from(signatureHeader, 'base64').toString('utf8')); }
  catch { return false; }              // decoded JSON carries kid and signature
  if (!sig.kid || !sig.signature) return false;
  const pem = await getPublicKey(sig.kid); // cache ~1h, keyed by kid
  const verifier = crypto.createVerify('sha1'); // eBay signs ECDSA with SHA-1
  verifier.update(rawBody);            // body exactly as received
  verifier.end();
  try { return verifier.verify(pem, sig.signature, 'base64'); }
  catch { return false; }
}

For complete handlers with the challenge route, the getPublicKey fetch + LRU cache, event dispatch, and tests, see:

Official SDK (Node.js): eBay publishes event-notification-nodejs-sdk, which wraps the exact algorithm above (EventNotificationSDK.process(...) for signatures, validateEndpoint(...) for the challenge). The examples use a transparent manual implementation so they are testable offline without the OAuth call that getPublicKey requires — see references/verification.md for the SDK path.

Common Event Types (Topics)

Topic Triggered When
MARKETPLACE_ACCOUNT_DELETION An eBay user closed their account / requested personal-data deletion. All developers must subscribe or opt out.
AUTHORIZATION_REVOCATION A user revoked your app's authorization — stop making API calls on their behalf and clean up stored tokens.
ORDER_CONFIRMATION A buyer completed checkout; sent once per order line item
ITEM_AVAILABILITY A fixed-price item's availability changed
ITEM_PRICE_REVISION An item's price changed (sent to eBay Partner Network partners)
PRIORITY_LISTING_REVISION An item joined or left a Promoted Listings priority campaign (eBay Partner Network partners)

The topic arrives in the payload at metadata.topic. eBay lists every topic, grouped by area, on its notification events page (29 on 2026-11-26), and getTopics returns them with the OAuth scopes needed to subscribe.

Environment Variables

EBAY_VERIFICATION_TOKEN=your_verification_token   # 32-80 chars, [A-Za-z0-9_-] only
EBAY_ENDPOINT=https://your-domain.com/webhooks/ebay  # EXACT public URL eBay calls
EBAY_CLIENT_ID=your_app_id                        # App credentials (getPublicKey OAuth)
EBAY_CLIENT_SECRET=your_cert_id
EBAY_ENV=production
Полный SKILL.md на GitHub

Установить ebay-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/ebay/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

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

Receive and verify eBay Notification API webhooks (event notifications, not the Trading API's SOAP Platform Notifications). Use when setting up an eBay webhook endpoint, passing the endpoint challenge validation, debugging the x-ebay-signature ECDSA verification, fetching the public key with getPublicKey, or handling events like MARKETPLACE_ACCOUNT_DELETION.

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

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

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

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

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

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