Command Palette

Search for a command to run...

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

bill-com-webhooks

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

Receive and verify BILL (Bill.com) webhooks. Use when creating a BILL Connect Events subscription (POST /v3/subscriptions), verifying the x-bill-sha-signature…

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

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

BILL (Bill.com) Webhooks

BILL sends event notifications to your notificationUrl when things change in a BILL organization: bills, vendors, payments, invoices, bank and card accounts and more. You subscribe through the Connect Events API (POST /v3/subscriptions), and BILL returns a one-time securityKey that signs every notification.

When to Use This Skill

  • How do I receive BILL webhooks?
  • How do I verify x-bill-sha-signature?
  • Why do BILL's docs say to "minify" the payload before hashing?
  • How do I send a test notification? (POST /v3/subscriptions/{subscriptionId}/test)
  • Why did BILL stop sending notifications? (retries ran out and the subscription was disabled)

Verification (core)

Part Value
Header x-bill-sha-signature
Value Base64 HMAC-SHA256 (44 characters), no prefix
Key The subscription's securityKey, as UTF-8 text
Signed content The request body, as sent

BILL (webhook security): "BILL uses the HMAC-SHA256 algorithm to sign all event notifications sent to your notificationUrl with the securityKey. The output format of the generated hash value is base64."

const crypto = require('crypto');

function verifyBillSignature(rawBody, signature, securityKey) {   // rawBody: exact bytes
  const value = String(signature || '').trim();
  if (!securityKey || !/^[A-Za-z0-9+/]{43}=$/.test(value)) return false;
  const expected = crypto.createHmac('sha256', securityKey).update(rawBody).digest();
  return crypto.timingSafeEqual(Buffer.from(value, 'base64'), expected);
}
  • About "minified". BILL's guide verifies against "the unformatted (minified) version" of the payload. It does that because its walkthrough copies the body from webhook.site, which pretty-prints JSON. BILL stores the payload as a compact JSON string and sends it as is, so the raw body is already minified. HMAC the raw bytes as received, and never re-serialise them. BILL publishes no verification code and doesn't say "raw body" outright, so if a real delivery fails, check that nothing in front of your handler reformatted the body.
  • The securityKey is shown once, in the POST /v3/subscriptions response. Rotate it with POST /v3/subscriptions/{subscriptionId}/security-key, which returns a new one. BILL recommends rotating after you've pasted the key into an online tool for testing.
  • Return 200. BILL treats anything other than HTTP 200 within 10 seconds as a failure.
  • Bad or missing signature: 401. Key not set: 500.

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Python uses hmac.new(key.encode(), raw_body, hashlib.sha256), base64.b64decode and hmac.compare_digest. See references/verification.md.

Hookdeck: the Bill.com source type (BILL_COM) verifies x-bill-sha-signature. Paste the securityKey as-is. In production, BILL only delivers to notification URLs it has allowlisted.

Payload

The test notification body, as BILL documents it:

{"metadata":{"eventId":"963507c4-8e6b-48f0-ae72-ea9c9371qw369","subscriptionId":"y2c96930-e3e2-4509-be37-4dbda29ews9q","organizationId":"00802DEVKGROHKDIY4zyx","eventType":"test","version":"1"},"payload":{"createdDate":"2026-12-15T23:15:27.127+00:00"}}
Field Meaning
metadata.eventId The notification's unique ID: dedupe on it
metadata.subscriptionId The subscription that matched
metadata.organizationId The BILL organization
metadata.eventType / metadata.version The event, for example bill.created version 1
payload The event's object. Its shape depends on the event

Event Types

Get the full catalog with GET /v3/events/catalog. BILL's examples use bill.created, bill.updated and bill.archived. Payload docs cover vendors, vendor auto-pay, AP bills, AP payments, bank accounts, card accounts, AR invoices and risk verification. Spend & Expense events need an apiToken header on the subscription request. A test notification has eventType test.

Environment Variables

BILL_WEBHOOK_SECURITY_KEY=your-security-key   # from POST /v3/subscriptions (or the security-key rotation endpoint)

Local Development

# Express / Next.js (use 8000 for FastAPI). No install or account required.
npx hookdeck-cli listen 3000 bill-com --path /webhooks/bill-com

Create a sandbox subscription with the printed URL as notificationUrl, then call POST /v3/subscriptions/{subscriptionId}/test. See references/setup.md.

Reference Materials

Полный SKILL.md на GitHub

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

FAQ

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

Receive and verify BILL (Bill.com) webhooks. Use when creating a BILL Connect Events subscription (POST /v3/subscriptions), verifying the x-bill-sha-signature header (base64 HMAC-SHA256 of the raw body keyed with the subscription's securityKey), sending a test notification with POST /v3/subscriptions/{id}/test, rotating the security key, debugging signature mismatches or a disabled subscription, or handling events like bill.created, bill.updated and bill.archived.

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

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

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

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

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

Сравнить bill-com-webhooks с