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★ 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
securityKeyis shown once, in thePOST /v3/subscriptionsresponse. Rotate it withPOST /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
200within 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
- references/overview.md - Payload, events, delivery rules, retries, limits
- references/setup.md - Sandbox, creating a subscription, test notifications, key rot
Установить bill-com-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic